Scrolling text here The scrollAmount property is used here to manipulate the marquee's speed, depending on where the mouse is.-Marquee with start/stop ⦠In order to get the text inside the div to scroll you need to use a inner div, which contains a set of p tags, two of which are spacer tags. I honestly wouldn't use this code. Thanks for your reply! I need to have more than one marquee tags to show oscillating progress bars for my web page. Hi, I'm a newbie here in html. This error occurs in both IE & Firefox. It is fairly painless. This specifies the speed of marquee text. Initialize the Marquee3000 and ⦠i want to use data frm database. Now the overflow-style property can be used to specify that a marquee should be used to display the content (a marquee-line for horizontally scrolling marquees and marquee-block for vertically scrolling marquees). You'll need to call the stop() function to stop it and the startit() function to start it. Have you seen this behavior as well? It sounds like you haven't called the scrollFromSide() function from within the init() function and it is therefore being called from the startit() function. I quickly changed the CSS id styles to classes and and i generalized the script methods to accept div id names. To verify that an element exists in the DOM you just need to use the .length property of a jQuery lookup. Great script :) This can have a value like scroll, slide and alternate. Thanks. In this example, the speed is set as 2: See online demo and code. I know the script of the "function scrollFromBottom()" is calling the function to move up, but I don't know how to change the script to call the function to move down. Lisa, Marquee Speed Speed: Specifies the speed in which the text in the marquee moves. 22/05/2008 - Small bug noticed in the getElementsByTagNames() function due to a encoding typo. The actual speed depends on the user agent and the type of content. This JavaScript code will move a single text string that contains any text you choose through a horizontal marquee space without breaks. The only oddity that I experienced is that when I moved the mouse quickly through the scrolling area, it accelerated the scrolling pace. I must have done something simple wrong?! If the scrolldelay value less then 60 and truespeed mode is on then the value of scrolldelay is not effecting the scrolling. The div tag is also the given two events of on mouse out and on mouse over. Realy a usefull codes for me ..thnx dude.. keepit up. I gut feeling is that that it is something to do with the pseudo-recursion that the function uses. Simulate marquee tag in CSS and Javascript. I have 8 different pictures with 8 titles, on the vertical scrolling script. If it doesn't, or it gets to a certain value and stops then you need to look at the following line of code (from scrollFromBottom() in this case). A top to bottom marquee with slow speed. Only one of them will be shown at a given time. code and is an IT professional working in the North West of the UK. I have seen a lot of this sort of thing, so though I would put together a quick lesson in JavaScript variable scope. You need to call the init() function to get everything started. For this demo, I set the direction in jQuery code. This creates a buffer zone which makes the marquee look more natural, but not only that the height of the elements is worked out with the spacer classes in mind. Not only will the JavaScript be created, but it will also be stuck into that page, so you can see exactly what that ⦠If anyone has any suggestions then I would be more than happy to try them out.