[Javascript] image preloading.

Antillon Reyes Rafael Martin - EXT ExtRAntil at vto.com
Fri Mar 30 10:43:05 CST 2001


Hello everyone:

My problem is this: When i get to a part of the code, 
ie opening a window, i gotta be sure the image contained 
in that new window´s been already preloaded. I use something 
like this:

var preLoadImg = new Image();
preLoadImg.src = "http://www.whatever.com/blah.jpg"

So i think when it goes to the next instruction it SHOULD have 
the image preloaded. But it doesn´t. What´s wrong??? 
any suggestion??

Thanx in advance, hope you answer me soon.






More information about the Javascript mailing list