OK, I've got the code below to run a continuous loop slideshow, however, even though it runs I get an error in the status bar of Netscape 4.5 (haven't tested anything else yet). How do I get rid of the error? Also, how can I get the last picture, gp9.gif, to stay a little longer (like a general 5 times longer?) before the loop starts over? <br>
<br>
Interestingly enough, I've got the same script running only four graphics on an Intranet site, and there's no problems with it.<br>
<br>
So, Here's the code for the page:<br>
<html><br>
<br>
<head><br>
<title>Grebo Productions - Web Development, Consulting, and Production</title><br>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0"><br>
<script language="JavaScript"><br>
<!-- Hiding the code from non-java enabled browsers<br>
if(navigator.appVersion.substring(0,1) >=3) {<br>
grebo1 = new Image ();<br>
grebo1.src = "images/gp1.gif"; <br>
grebo2 = new Image ();<br>
grebo2.src = "images/gp2.gif";<br>
grebo3 = new Image ();<br>
grebo3.src = "images/gp3.gif";<br>
grebo4 = new Image ();<br>
grebo4.src = "images/gp4.gif";<br>
grebo5 = new Image ();<br>
grebo5.src = "images/gp5.gif";<br>
grebo6 = new Image ();<br>
grebo6.src = "images/gp6.gif";<br>
grebo7 = new Image ();<br>
grebo7.src = "images/gp7.gif";<br>
grebo8 = new Image ();<br>
grebo8.src = "images/gp8.gif";<br>
grebo9 = new Image ();<br>
grebo9.src = "images/gp9.gif";<br>
<br>
}<br>
<br>
slides = 9<br>
rotations = 100<br>
speed = 500 //in milliseconds<br>
<br>
function runit() {<br>
for (x=1, y=0 ; x < (slides*rotations); x=x+slides, y=0) {<br>
setTimeout("document.slideshow.src = grebo1.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo2.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo3.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo4.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo5.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo6.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo7.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo8.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo9.src",((x + y) * speed))<br>
<br>
}<br>
}<br>
// End of hiding --><br>
</script><br>
</head><br>
<br>
<body onload="runit()"><br>
<br>
<p align="center"><a href="next.htm"><img src="images/gp1.gif" name="slideshow"<br>
width="552" height="457" border="0"></a></p><br>
</body><br>
</html><br>
<br>
<br>
I should have it posted this evening at
<br>
Interestingly enough, I've got the same script running only four graphics on an Intranet site, and there's no problems with it.<br>
<br>
So, Here's the code for the page:<br>
<html><br>
<br>
<head><br>
<title>Grebo Productions - Web Development, Consulting, and Production</title><br>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0"><br>
<script language="JavaScript"><br>
<!-- Hiding the code from non-java enabled browsers<br>
if(navigator.appVersion.substring(0,1) >=3) {<br>
grebo1 = new Image ();<br>
grebo1.src = "images/gp1.gif"; <br>
grebo2 = new Image ();<br>
grebo2.src = "images/gp2.gif";<br>
grebo3 = new Image ();<br>
grebo3.src = "images/gp3.gif";<br>
grebo4 = new Image ();<br>
grebo4.src = "images/gp4.gif";<br>
grebo5 = new Image ();<br>
grebo5.src = "images/gp5.gif";<br>
grebo6 = new Image ();<br>
grebo6.src = "images/gp6.gif";<br>
grebo7 = new Image ();<br>
grebo7.src = "images/gp7.gif";<br>
grebo8 = new Image ();<br>
grebo8.src = "images/gp8.gif";<br>
grebo9 = new Image ();<br>
grebo9.src = "images/gp9.gif";<br>
<br>
}<br>
<br>
slides = 9<br>
rotations = 100<br>
speed = 500 //in milliseconds<br>
<br>
function runit() {<br>
for (x=1, y=0 ; x < (slides*rotations); x=x+slides, y=0) {<br>
setTimeout("document.slideshow.src = grebo1.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo2.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo3.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo4.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo5.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo6.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo7.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo8.src",((x + y) * speed))<br>
y++; setTimeout("document.slideshow.src = grebo9.src",((x + y) * speed))<br>
<br>
}<br>
}<br>
// End of hiding --><br>
</script><br>
</head><br>
<br>
<body onload="runit()"><br>
<br>
<p align="center"><a href="next.htm"><img src="images/gp1.gif" name="slideshow"<br>
width="552" height="457" border="0"></a></p><br>
</body><br>
</html><br>
<br>
<br>
I should have it posted this evening at