Forum Moderators: open
I am using a .js script (below) to animate some jpeg images. work fine in NN 6.+ IE 5.+ but I get a "document.images.PicRoll has no properties." error in NN4.7. I know I probably missing a ; or something but it all looks the same after a few hours.
TIA Scotty
<script language="JavaScript1.2" type="text/javascript"> function animate() { \\\\\\\\\\\\\\\\\\later in page////////////////// <a href="oi/products.html"><img name='PicRoll' src="images/rolover1/Fursys_indivi.jpg" width="294" height="254" border="0" alt="Case goods, panel systems, seating, ergonomic products"><br><span class="hd2">Office Interior Products</span></a> [1][edited by: papabaer at 11:09 pm (utc) on June 9, 2002]
<!-- Jpeg Rollover
var c = 0
var ImgRoll = new Array()
ImgRoll[0] = new Image
ImgRoll[0].src = 'images/rolover1/Fursys_indivi.jpg'
ImgRoll= new Image
ImgRoll[1].src = 'images/rolover1/AIS_mwall.jpg'
ImgRoll[2] = new Image
ImgRoll[2].src = 'images/rolover1/Allseating_fluid.jpg'
ImgRoll[3] = new Image
ImgRoll[3].src = 'images/rolover1/Signature_trenton.jpg'
ImgRoll[4] = new Image
ImgRoll[4].src = 'images/rolover1/Tayco_cosmo.jpg'
ImgRoll[5] = new Image
ImgRoll[5].src = 'images/rolover1/Greatlakes_c10.jpg'
ImgRoll[6] = new Image
ImgRoll[6].src = 'images/rolover1/Riviera_quantum.jpg'
if (c > 6) c = 0
document.images['PicRoll'].src=ImgRoll[c].src;
setTimeout('animate()', 3200)
c = c + 1
}
// -->
</script>
</head>
<body onLoad="animate()">
[edited by: scotttyz at 11:39 pm (utc) on June 9, 2002]
Please review the terms of service regarding posts & urls. Our policy does not allow posting affiliated links. Posting code, as you have, is a good way to provide an example to illustrate a coding issue or concept. Have you also tested using the Opera browser? Did your script function there as well?
Once again, we're glad to have you with us...
- papabaer
I don't have an answer for the NN4.7 error, though I am sure one of our other members will be long to offer some insight. Older versions of Netscape used propriety scripting methods that are not compatible with the DOM as referenced by modern browsers. While I cannot say for certain, this may be the issue.