Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Image Test</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from old browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. var myPix = new Array("pathfinder.gif","surveyor.gif","surveyor98.gif") var thisPic = 0 function processPrevious() { if (document.images && thisPic > 0) { thisPic-- document.myPicture.src=myPix[thisPic] } } function processNext() { if (document.images && thisPic < 2) { thisPic++ document.myPicture.src=myPix[thisPic] } } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR="WHITE"> <CENTER> <H1>US Missions to Mars<p> <IMG SRC="pathfinder.gif" NAME="myPicture"><p> <A HREF=javascript:processPrevious()>Previous</A> <A HREF=javascript:processNext()>Next</A> </H1> </CENTER> </BODY> </HTML>