Thunder Lizard JavaScript Conference |
thisSlide = 0 function newSlide(direction) { thisSlide = thisSlide + direction if (thisSlide < 0) { thisSlide = 33 } if (thisSlide > 33) { thisSlide = 0 } document.slider.src = "WBO/images/stock" + thisSlide + ".jpg" }
<a href="javascript:newSlide(-1)"><img src="images/red_bak.gif" border=0></a> <img src="WBO/images/stock0.jpg" width=438 height=95 name="slider"> <a href="javascript:newSlide(1)"><img src="images/red_fwd.gif" border=0></a>