[thelist] cycling banner

Chris Price chris.price at stl.org
Tue Jan 29 03:19:00 CST 2002


	Here's the script in a condensed form:

	<script language=javascript type="text/javascript">
<!--
	
	arrayCount=9
	imgCount=0
	
	imageArray=new Array(arrayCount);
	
	imageArray[0]= new Image
	imageArray[0].src="image1.gif"
	
	etc.,etc...

	
	urlArray=new Array(arrayCount);
	
	urlArray[0]="page1.html"
	
	etc.,etc...
	
	
	
	function rotate()
	{
		if (imgCount<arrayCount)
		{
			document.bannerAd.src=imageArray[imgCount].src
			urlCount=imgCount
			imgCount++
			if (imgCount==arrayCount) {imgCount=0}
		}
		setTimeout("rotate()", 2000)	
	}
	
	
	function newURL()
	{
	if (urlCount>2 || urlCount<8)
		{ newWin=window.open('http://www.gartmorehouse.com') }
	else
		{ document.location.href = urlArray[urlCount] }
	}

// -->
</script>

</head>

<body onLoad="rotate()">

<a href="javascript:newURL()"><img
src="/Merchandiser/catalog/templates/images/nivDandelion1.gif"
name="bannerAd" border="0"></a>



> > After clicking thru and then hitting the back button my javascript
> banner goes all-to-pot, its out of sequence and races from image to image.
>
> > Any solutions?
>
> Without a URL or code snippet, it's very difficult to guess. ...?
--
Chris Price

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/



More information about the thelist mailing list