[thelist] JS: Preload images problem

Tyme nopun at bellsouth.net
Thu Mar 21 15:27:01 CST 2002


Any idea why NN6.2 loads images so slowly with the script below?  Seems as
though it is not preloading at all. (Seems fine with IE5.5)
http://www.huntacpa.com/


<script>
/*
Preload images script
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/

var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

preloadimages("photo1.jpg","photo2.jpg","photo3.jpg","photo4.jpg")

</script>






More information about the thelist mailing list