i need help, i'm trying to make a scroller like the one on Msn.com (where they have the rotating info), can anyone point me in the right direction?
MSN.com Scroller
Collapse
X
-
You need to have a set of div elements with the content. Hide all but one by setting the display CSS property to "none". To show, set it to "block". Then use setInterval for timing, so that every few seconds it rotates through the div elements one by one. To set one to show:
Alternatively, you can use classes and set the className.Code:elem.style.display = "block";
Comment