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/pathfinder.gif","images/surveyor.gif","images/surveyor98.gif") thisPic = 0 imgCt = myPix.length - 1 function processPrevious() { if (document.images && thisPic > 0) { thisPic-- document.myPicture.src=myPix[thisPic] } } function processNext() { if (document.images && thisPic < imgCt) { thisPic++ document.myPicture.src=myPix[thisPic] } } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <H1 ALIGN=CENTER>US Missions to Mars <P><IMG SRC="images/pathfinder.gif" NAME="myPicture" WIDTH=201 HEIGHT=155> <P><A HREF="javascript:processPrevious()"><< Previous</A> <A HREF="javascript:processNext()">Next >></A> </H1> </BODY> </HTML>