View Full Version : Resolved What is the best way to preload images?

10-30-2008, 02:49 PM
What is the best way to preload images? CSS or Javascript?
I am assuming that Jscript is enabled. I have looked around but I am still undecided.:confused:

Any help gratefully received.:D


10-30-2008, 03:19 PM

What are your intentions for the images? If they're meant to be part of an image gallery you click through without leaving a particular page, then you're probably using Javascript to achieve that functionality anyway, so js would be the way to go.

If you're interested in preloading images to swap as backgrounds for rollover buttons (using CSS), the best way is to avoid the preload issue altogether and use this method (http://www.wellstyled.com/css-nopreload-rollovers.html).

10-30-2008, 03:59 PM

I have discovered that I already have a program.
My 83 yr old RAM (memory - very random!) has just remembered where it was. This is it (http://exitfegs.co.uk/AGallery.html).

Thanks for your input.