reidgivens
Technical User
I was hoping someone could tell me why this doesn't work. It is a banner rotater.
----
<html>
<head><title>whats up</title>
<script LANGUAGE='JAVASCRIPT'>
<!-- Hide form old browsers
var banners = new Array(" var links = new Array(" var bnrCntr = 2;
function bancycle () {
bnrCntr = bnrCntr + 1;
if (bnrCntr == 3){
bnrCntr = 0;
}
document.banner.src = banners[bnrCntr];
document.link.href = links[bnrCntr];
setTimeout("bancycle()",3000);
}
//-->
</SCRIPT>
</head>
<body onload="setTimeout('bancycle()',3000)">
<a href=" name="link"><img src=" name="banner"></a>
</body>
</html>
----
any ideas?
Reid Givens
Webdeveloper
----
<html>
<head><title>whats up</title>
<script LANGUAGE='JAVASCRIPT'>
<!-- Hide form old browsers
var banners = new Array(" var links = new Array(" var bnrCntr = 2;
function bancycle () {
bnrCntr = bnrCntr + 1;
if (bnrCntr == 3){
bnrCntr = 0;
}
document.banner.src = banners[bnrCntr];
document.link.href = links[bnrCntr];
setTimeout("bancycle()",3000);
}
//-->
</SCRIPT>
</head>
<body onload="setTimeout('bancycle()',3000)">
<a href=" name="link"><img src=" name="banner"></a>
</body>
</html>
----
any ideas?
Reid Givens
Webdeveloper