Someone plz send to DHTML.
code:
<html>
<head>
<script language="javascript">
// just keep adding images in the same format
// Image 0 should be the same image that you start
// with in the Image tag
imgs[0] = "image1.gif";
imgs[1] = "image2.gif";
imgs[2] = "image3.gif";
imgs[3] = "image4.gif";
imgs[4] = "image5.gif";
imgs[5] = "image6.gif";
imgs[6] = "image7.gif";
imgs[7] = "image8.gif";
// ...etc..
// Set the number of seconds you want to delay here
// Nothing from here down needs to change
delay = 20;
function init() {
delay = delay * 1000;
count = 0;
slideshow();
}
function slideshow() {
count++;
if (count == imgs.length) count = 0;
document.images['slide'].src = imgs[count];
setTimeout('slideshow()',delay);
}
</script>
</head>
<body onLoad="init()">
<img name="slide" src="image1.gif">
</body>
</html>
.:[ Never resist a perfect moment ]:.