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 onError = errWindow function errWindow(errMsg,location,lineNum) { debugWin = window.open("","debugWin","height=200,width=200,resize=yes") debugWin.document.write("<H1>There was an error at line " + lineNum) debugWin.document.write("<br>The error was: " + errMsg) debugWin.document.close() return true } function rotate() { thisAd++ if (thisAd == imgCt) { thisAd = 0 } document.adBanner.src=adImages[thisAd] setTimeout("rotat()", 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>