MediaWiki:Common.js: Difference between revisions
Jump to navigation
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
count = 0; | |||
function slideshow() { | |||
slides = ['one','two','three','four']; | |||
document.getElementById('slideshow').innerHTML = slides[count]; | |||
count++; | |||
if (count == slides.length) | |||
{ | |||
count = 0; | |||
} | |||
setInterval(slideshow(), 1000); | |||
} | |||
slideshow(); | |||
Revision as of 20:15, 25 April 2011
count = 0; function slideshow() { slides = ['one','two','three','four']; document.getElementById('slideshow').innerHTML = slides[count]; count++; if (count == slides.length) { count = 0; } setInterval(slideshow(), 1000); } slideshow();