By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,400 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,400 IT Pros & Developers. It's quick & easy.

MSN.com Scroller

P: 1
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?
Apr 13 '09 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
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:
Expand|Select|Wrap|Line Numbers
  1. elem.style.display = "block";
Alternatively, you can use classes and set the className.
Apr 14 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.