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") adURL = new Array("negrino.com","sun.com","microsoft.com") 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) } } function newLocation() { document.location.href = "http://www." + adURL[thisAd] } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE onLoad="rotate()"> <CENTER> <A HREF="javascript:newLocation()"><IMG SRC="images/banner1.gif" WIDTH=400 HEIGHT=75 NAME="adBanner" BORDER=0></A> </CENTER> </BODY> </HTML>