Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>Image Slideshow</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers myPix = new Array("images/callisto.jpg","images/europa.jpg","images/io.jpg","images/ganymede.jpg") thisPic = 0 imgCt = myPix.length - 1 function chgSlide(direction) { if (document.images) { thisPic = thisPic + direction if (thisPic > imgCt) { thisPic = 0 } if (thisPic < 0) { thisPic = imgCt } document.myPicture.src=myPix[thisPic] } } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <H1 ALIGN=CENTER>Jupiter's Moons <P><IMG SRC="images/callisto.jpg" NAME="myPicture" WIDTH=262 HEIGHT=262> <P><A HREF="javascript:chgSlide(-1)"><< Previous</A> <A HREF="javascript:chgSlide(1)">Next >></A> </H1> </BODY> </HTML>