>You could always preload images before hand (no need to use CSS
>tricks).
>
>http://www.texotela.co.uk/code/jquery/preload/

I would recommend using new Image() to preload images--it's going to use a
little less overhead (which can be important if you're preloading lots of
images.)

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

More information on Image():
http://www.devguru.com/Technologies/ecmascript/quickref/image.html

- Dan

Reply via email to