I have programmed the following function, that allows me to call and create a simple slideshow on this page: http://www.ideacycling.com/html/portfolio.htm
function show_slideshow(slide1, slide2, slide3){
var timer, slide_no=1;
function change_slide(){
clearTimeout(timer); // tiden udloeb jo, så vi sætter den til 0 igen.
switch(slide_no){
case 1:
$("#nedrehoejre").toggleClass(slide1);
slide_no=2;
break;
case 2:
$("#nedrehoejre").toggleClass(slide2);
slide_no=3;
break;
case 3:
$("#nedrehoejre").toggleClass(slide3);
slide_no=1;
break;
}
timer = setTimeout(change_slide, 3500); //
}
change_slide();
};
After the third slide only the background is shown for a short time, before restarting the slideshow. (Background turns blue)
How can this be?
And how do I work around it?
Thanks in advance.