View Full Version : Cross browser Marquee II but want a horizontal version

11-13-2011, 09:00 PM
1) Script Title: Cross browser Marquee II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm

3) Describe problem: is there way to change something in the code so that the words scroll from the right to the left (rather than bottom to top)?

upon searching it seemed like the option was to use the Marquee tag :confused: I really don't want to go that deprecated way.

11-13-2011, 09:53 PM



11-13-2011, 11:26 PM
oh wow am I blind :eek:


11-16-2011, 06:54 PM
I tried a test page here using the code:

Is there a way to slow it down a bit more? I have the var marqueespeed=1
When I changed 1 to .5 it didn't work. :confused:

11-16-2011, 07:41 PM
I thought you said you wanted a horizontal version. In any case, I would advise against using that vertical marquee script because it has a gap between the last item and the first and because it doesn't work in Opera.

That said, to slow it down even more, find this line in the script:

setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)

See that red 30? That's the number of milliseconds between each incremental movement. Increase that number to 40 or 50 to slow it down even more.

I would suggest however, if you want to do a vertical marquee like that, use:


Use your browser's "view source" to get the code. It doesn't have the problems I just mentioned.

It will probably be too fast as well though. But it has a similar line:


increase that number to like 30 or 40 to slow it down.