Hi!
This does not seem to work:
function cacheimage(sour ce){
myimg=new Image()
myimg.src=sourc e
}
cacheimage('clo sed1.jpg')
Is this because the myimg object is destroyed as soon as the function
returns, or for some other reason? Does anyone have a simple, one argument,
void returning function with where you can give the url of an image and have
it precahed like this?
Any answer must work in IE5+.
Thanks!
This does not seem to work:
function cacheimage(sour ce){
myimg=new Image()
myimg.src=sourc e
}
cacheimage('clo sed1.jpg')
Is this because the myimg object is destroyed as soon as the function
returns, or for some other reason? Does anyone have a simple, one argument,
void returning function with where you can give the url of an image and have
it precahed like this?
Any answer must work in IE5+.
Thanks!
Comment