Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

.js animated jpeg. Script issues w/ nn 4.7

I am animating jpegs using javascript. having problen with error in NN 4.7



10:38 pm on Jun 9, 2002 (gmt 0)

10+ Year Member

long time listener/first time caller..

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">
<!-- 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'

function animate() {
if (c > 6) c = 0
setTimeout('animate()', 3200)
c = c + 1
// -->
<body onLoad="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]

[edited by: scotttyz at 11:39 pm (utc) on June 9, 2002]


11:18 pm on Jun 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Hello Scotty,
Welcome to Webmaster World!

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


11:27 pm on Jun 9, 2002 (gmt 0)

10+ Year Member

thanks Papabaer, sorry I misses the part on posting links.

Yes it works in Opera 6 as well


11:37 pm on Jun 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

No problem Scotttyz! ;)

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.


Featured Threads

Hot Threads This Week

Hot Threads This Month