Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Find the bug</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from older 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 adImages = new Array("banner1.gif","banner2.gif","banner3.gif") var thisAd = 0 var imgCt = 3 function rotate() { thisAd++ if (thisAd == imgCt) { thisAd = 0 } document.adBanner.src=adImages[thisAd] setTimeout("rotate()", 3 * 1000) } // End hiding script --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE onload="rotate()"> <CENTER><IMG SRC="images/banner1.gif" WIDTH="400" HEIGHT="75" NAME="adBanner"></CENTER> </BODY> </HTML>