[Javascript] content preloader

Hakan M. hakan at backbase.com
Mon Jan 19 03:38:37 CST 2004


There is a (probaby several) way, but they all include running over all 
the images with JavaScript and manually add 
onload(moz)/onreadystatechange(ie) to them and then have a lookup array 
(or something) with the images to be changed to when the 
onload/readystate fires. This would be easier if you're dynamically 
adding the images to the document instead of having them in the markup 
up start.

The good old trick with lowsrc only works in Explorer and Netscape 4 I'm 
afraid.

Regards,
Hakan

Brian Gordon wrote:
> Is there any way to display a "loading" graphic in the place of the real 
> graphic while the real graphic is preloading? Also, are there any JS 
> image manipulation tools/functions?
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 
> .
> 




More information about the Javascript mailing list