WintersMystic
Programmer
can somone tell me why this errors out after the second banner is shown and it tries to load the next? all images are in the images dir. the first two banners show, then after the second it errors.
error msg: line 1 char 1 object expected.
error msg: line 1 char 1 object expected.
Code:
<script language="JavaScript">
var bannerArray = new Array();
var myCount=0;
bannerArray[0] = "<A HREF=[URL unfurl="true"]http://www.americanexpress.com/homepage/mt_personal.shtml><IMG[/URL] SRC=/images/amex3.gif border=0></A>";
bannerArray[1] = "<A HREF=[URL unfurl="true"]http://www.rmhc.com><IMG[/URL] SRC=/images/rmh.gif border=0></A>";
bannerArray[2] = "<A HREF=[URL unfurl="true"]http://dynowater.com><IMG[/URL] SRC=/images/DynoReg.jpg border=0></A>";
bannerArray[3] = "<A HREF=[URL unfurl="true"]https://www.teamfordracing.com><IMG[/URL] SRC=/images/FordRacing.gif border=0></A>";
bannerArray[4] = "<A HREF=[URL unfurl="true"]http://java.sun.com><IMG[/URL] SRC=[URL unfurl="true"]http://java.sun.com/images/logos/javalogo52x88.gif[/URL] border=0></A>";
bannerArray[5] = "<A HREF=[URL unfurl="true"]http://pbstables.com><IMG[/URL] SRC=images/wookie2.gif border=0></A>";
bannerRotate();
function bannerRotate() {
document.write(bannerArray[myCount]);
setTimeout("bannerRotate()", 3000);
myCount++;
}
</script>