G
Guest
I am trying to make graphics rotate, such as in a banner ad. The following code works when I preview it on my computer, but will not work on the web site. I sure will appreciate getting pointed in the right direction
<html><head><meta name="GENERATOR" content="Microsoft FrontPage 6.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Rotating Graphics</title><SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"><!-- Hide script from old browser
adImages = new Array("banners/image1.gif","banners/image2.gif","banners/image3.gif")
thisAd = 0
imgCt = adImages.length
function rotate()
if (document.images)
thisAd++
if (thisAd == imgCt)
thisAd = 0
document.adBanner.src=adImages[thisAd]
setTimeout("rotate()", 3 * 1000)
// End hiding script from old browsers --></SCRIPT><meta name="Microsoft Theme" content="fixmedicare 1011, default"><meta name="Microsoft Border" content="tb, default"></head><body onLoad="rotate()"><IMG SRC="banners/image1.gif" WIDTH="400" HEIGHT="75" NAME="adBanner" ALT="Ad Banner"> </body></html>
<html><head><meta name="GENERATOR" content="Microsoft FrontPage 6.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Rotating Graphics</title><SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"><!-- Hide script from old browser
adImages = new Array("banners/image1.gif","banners/image2.gif","banners/image3.gif")
thisAd = 0
imgCt = adImages.length
function rotate()
if (document.images)
thisAd++
if (thisAd == imgCt)
thisAd = 0
document.adBanner.src=adImages[thisAd]
setTimeout("rotate()", 3 * 1000)
// End hiding script from old browsers --></SCRIPT><meta name="Microsoft Theme" content="fixmedicare 1011, default"><meta name="Microsoft Border" content="tb, default"></head><body onLoad="rotate()"><IMG SRC="banners/image1.gif" WIDTH="400" HEIGHT="75" NAME="adBanner" ALT="Ad Banner"> </body></html>