Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>Image Array</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers adImages = new Array("images/banner1.gif","images/banner2.gif","images/banner3.gif") thisAd = 0 imgCt = adImages.length function rotate() { if (document.images) { if (document.adBanner.complete) { thisAd++ if (thisAd == imgCt) { thisAd = 0 } document.adBanner.src=adImages[thisAd] } setTimeout("rotate()", 3 * 1000) } } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE onLoad="rotate()"> <CENTER> <IMG SRC="images/banner1.gif" WIDTH=400 HEIGHT=75 NAME="adBanner"> </CENTER> </BODY> </HTML>