I set up a slide show (Slideshow()) using setTimeout, and it works fine. I need to limit the slide show to 3 repeats, but when I add a while loop (Count()) it it prints Test 1 and stalls
function SlideShow()
{
setTimeout("document.write('Test 1')", 1500);
setTimeout("document.write('Test 2')", 3000);
setTimeout("document.write('Test 3')", 4500);
}
function Count()
{
var i=0;
do
{
SlideShow();
i++;
}
while (i<=3);
}