Back to Scripts page
Click in the text area below, select all and copy to grab the script
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Rotating Banners</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="#FFFFFF" onload="rotate()"> <center> <a href="javascript:newLocation()"><img src="images/banner1.gif" width="400" height="75" name="adBanner" border="0" alt="ad banner" /></a> </center> </body> </html>
Images:
(Some scripts do not have associated images)