var timeDelay = 5; var Pix = new Array ("images/foto_top2.jpg" ,"images/foto_top3.jpg" ,"images/foto_top4.jpg" ,"images/foto_top5.jpg" ,"images/foto_top6.jpg" ,"images/foto_top7.jpg" ,"images/foto_top8.jpg" ,"images/foto_top.jpg" ); var howMany = Pix.length; timeDelay *= 1000; var PicCurrentNum = 0; var PicCurrent = new Image(); PicCurrent.src = Pix[PicCurrentNum]; function startPix() { setInterval("slideshow()", timeDelay); } function slideshow() { PicCurrentNum++; if (PicCurrentNum == howMany) { PicCurrentNum = 0; } PicCurrent.src = Pix[PicCurrentNum]; document["ChangingPix"].src = PicCurrent.src; }