[thelist] Image preload problem NN6
Peter-Paul Koch
gassinaumasis at hotmail.com
Fri Jul 27 11:50:09 CDT 2001
>Reference: http://www.huntacpa.com/
>
>Any idea why this .js script does not appear to be preloading the images
>for
>Netscape 6? Works fine for IE4 and IE5.01. (File is called in
><head></head>.)
>
>images = new Array;
I think it's because you call your array 'images'. The array
document.images[] already exists: it's the array with all the images in the
page. When you declare your own array, the browser becomes terribly confused
and tries to add a .src property to the images[] you have declared. Of
course, nothing happens.
Solution: change the name of the array.
ppk
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
More information about the thelist
mailing list