Javascript Reference
Categories: MARQUEE

javascript MARQUEE loop

@June 27, 2008, 3:32 p.m.
loop Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  



Sets the number of times the element scrolls its content. After the final scroll, the content remains in a fixed position. Constant animation can sometimes be distracting to page visitors, so if you have the marquee turn itself off after a few scrolls, you may be doing your visitors a favor.

document.getElementById("myBanner").loop = 3;

Any positive integer if you want the scrolling to stop after that number of times. Otherwise, set the value to -1.



Powered by Linode.