<html> <head> <script type="text/javascript"> var timeDelay = 1; var Pix = new Array ("mon_image_01.jpg", "mon_image_02.jpg", "mon_image_03.jpg", "mon_image_04.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; document["ChangingPix"].alt = PicCurrent.src; } </script> </head> </html>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<noscript> Javascript non activé... </noscript>