Java Slideshow breakage
-
I’m trying to include a slide show in one of my posts- the show comes up but isn’t changing pics. Wondered if someone could take a look at the code and see what the problem might be? any help is greatly appreciated. thanks.
this is the page the slide show is on- http://www.twowithspirit.com
this is the generator I used- http://www.cmg02.com/webmasters/slide.htm
and this is the output code:
<script language="javascript"><!--start
var x = 0;function rotate(num){
x=num%document.slideForm.slide.length;
if(x<0){x=document.slideForm.slide.length-1};
document.images.show.src=document.slideForm.slide.options[x].value;
document.slideForm.slide.selectedIndex=x;
}function apRotate() {
if(document.slideForm.slidebutton.value == "Stop"){
rotate(++x);window.setTimeout("apRotate()", 3000);}
}
//end --></script><form name="slideForm">
<table cellspacing=1 cellpadding=4 style="border:1px black solid; border-collapse:collapse">
<tr><td align=center>
<b>Tracker/Scene</b>
</td></tr><tr><td align=center width=380 height=285>
<img src="http://www.2withspirit.com/wp-content/images/tracker/AIMAGE001.JPG" name="show">
</td></tr><tr><td align=center style="border:1px black solid;">
<select name="slide" onChange="rotate(this.selectedIndex);">
<option value="http://www.2withspirit.com/wp-content/images/tracker/AIMAGE001.JPG" selected>Tracker 01
<option value="http://www.2withspirit.com/wp-content/images/tracker/BIMAGE001.JPG">Tracker 02
<option value="http://www.2withspirit.com/wp-content/images/tracker/CIMAGE001.JPG">Tracker 03
<option value="http://www.2withspirit.com/wp-content/images/tracker/IMAGE002.JPG">Tracker 04
<option value="http://www.2withspirit.com/wp-content/images/tracker/IMAGE003.JPG">Tracker 05
<option value="http://www.2withspirit.com/wp-content/images/tracker/IMAGE004.JPG">Tracker 06
<option value="http://www.2withspirit.com/wp-content/images/tracker/IMAGE005.JPG">Tracker 07
<option value="http://www.2withspirit.com/wp-content/images/tracker/IMAGE006.JPG">Tracker 08
<option value="http://www.2withspirit.com/wp-content/images/tracker/IMAGE007.JPG">Tracker 09
<option value="http://www.2withspirit.com/wp-content/images/tracker/IMAGE009.JPG">Tracker 10
</select>
</td></tr><tr><td align=center style="border:1px black solid;">
<input type=button onclick="rotate(0);" value="|<<" title="Jump to beginning" style="border:1px black solid;">
<input type=button onclick="rotate(x-1);" value="<<" title="Last Picture" style="border:1px black solid;">
<input type=button name="slidebutton" onClick="this.value=((this.value=='Stop')?'Start':'Stop');apRotate();" value="Start" title="Autoplay" style="width:75px; border:1px black solid;">
<input type=button onclick="rotate(x+1);" value=">>" title="Next Picture" style="border:1px black solid;">
<input type=button onclick="rotate(this.form.slide.length-1);" value=">>|" title="Jump to end" style="border:1px black solid;">
</td></tr></table></form>
The topic ‘Java Slideshow breakage’ is closed to new replies.