I've asked this question in an other way, but thought I would try again differently. You HELP is appreciated.
My rotating banner code works fantastic within the advertising box. But when I use the same code within a widget (static HTML) or Forum Block (HTML), I get nothing.
Why does it work in the advertising box, but not in a Widget or Forum Block.
This is an example of the code and it works in the advertising blocks:
<HTML><HEAD>
<TITLE>Rotating banners with links</TITLE>
<script type="text/javascript"><!--
//Javascript
//store the quotations in arrays
images = new Array(2);
images[0] = "<div align='center'><a href='http://www.flyengravity.com'target='_blank'><img src='http://www.mycockpit.org/advertising/FLYengravity/FlyEngravity-r.png' border='0' alt='' /></a></div>";
images[1] = "<div align='center'><a href='http://www.cockpitsonicusa.com' target='_blank'><img src='http://www.mycockpit.org/advertising/CockpitsonicUSA/CockpitsonicUSA-r.png' border='0' alt='' /></a></div>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
//done
// --></script>
</BODY>
</HTML>
|