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 adImages = new Array("banner1.gif","banner2.gif","banner3.gif") var thisAd = 0 function cycle() { if (document.images) { if (document.adBanner.complete) { thisAd++ if (thisAd == 3) { thisAd = 0 } document.adBanner.src=adImages[thisAd] } setTimeout("cycle()", 3 * 1000) } } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE onload="cycle()"> <CENTER><IMG SRC="banner1.gif" WIDTH="400" HEIGHT="75" NAME="adBanner"> </CENTER> </BODY> </HTML>