on the site I’m currently developing I have a panel on the news page which lists ‘Top Stories’, and a navigation for switching between stories.
But how would I go about automating it so that it cycles through each story automatically?
Please click the following link for an example – http://jsfiddle.net/cyxLw/
Thanks!
I used the setInterval function to run the following function to switch to the next story, after checking one exists.