PDA

View Full Version : my array anim not working in IE ; ;



hpb
Sep 14th, 2007, 06:28 PM
<script src="/catalog/skin1_original/common.js" language="JavaScript" type="text/javascript"></script>
<script language="javascript">
adImages = new Array("images/apparel.jpg","images/press.jpg","images/custom.jpg", "images/2007.jpg")
adURL = new Array("catalog/home.php?cat=375","catalog/home.php?cat=250","catalog/product.php?productid=16738&cat=358&page=1", "catalog/home.php?cat=376")
thisAd = 0
imgCt = adImages.length

function rotate() {
if (document.images) {
if (document.adBanner.complete) {
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}
document.adBanner.src=adImages[thisAd]
}
setTimeout("rotate()", 6 * 1000)
}
}

function newLocation() {
document.location.href = "http://www.boo-zwearhouse.com/" + adURL[thisAd]
}

</script>

I'm sry I'm not the best javascript guy but I need help.

This little animation used to work in IE but does not any longer, it works fine in firefox though. I think maybe something might have been deleted, it's hard to say. Again, I'm a javascript newbie.

The website is http://www.boo-zwearhouse.com

hope someone can help.

thanks,
hpb