Hi all,
I had this code working:
bannerQuotes = new Array("img/border_bot_left.gif","img/border_top_left.gif","img/border_top_right.gif","img/border_top_left.gif");
startAt = 0;
totalElements = bannerQuotes.length;
function rotate()
{
if(document.images)
{
startAt++;
if(startAt==totalElements)
{ startAt=0;}
document.adBanner.src=bannerQuotes[startAt];
setTimeout("rotate()",3*1000);
}
}
Fine if included in the head tags of my HTML doc, and calling rotate() from the body onload event.
However, now I've cut it out and placed it externally - it no longer works...
I've got:
<script src="/jscript/amsJScod.js" language="Javascript" type="text/javascript">
</script>
In my header but am having no luck
Thanks
Sched
I had this code working:
bannerQuotes = new Array("img/border_bot_left.gif","img/border_top_left.gif","img/border_top_right.gif","img/border_top_left.gif");
startAt = 0;
totalElements = bannerQuotes.length;
function rotate()
{
if(document.images)
{
startAt++;
if(startAt==totalElements)
{ startAt=0;}
document.adBanner.src=bannerQuotes[startAt];
setTimeout("rotate()",3*1000);
}
}
Fine if included in the head tags of my HTML doc, and calling rotate() from the body onload event.
However, now I've cut it out and placed it externally - it no longer works...
I've got:
<script src="/jscript/amsJScod.js" language="Javascript" type="text/javascript">
</script>
In my header but am having no luck
Thanks
Sched