> jQuery.extend({ > preloadImage: function(imagePath,callback) { > var image = new Image(); > if(jQuery.isFunction(callback)) image.onload = callback; > image.src = "gfx/"+imagePath; > } > > });
Looks good, I'll give it a try. Thanks a lot! Eric
> jQuery.extend({ > preloadImage: function(imagePath,callback) { > var image = new Image(); > if(jQuery.isFunction(callback)) image.onload = callback; > image.src = "gfx/"+imagePath; > } > > });
Looks good, I'll give it a try. Thanks a lot! Eric