Previous Message
Next Message

Preloading Background Images

Sent by Kevin Cannon on 13 December 2005 15:03


Hey all,

I've got a website with CSS Tabs. When a user click on a tab it changes the
body class, and using that rule change it hides/shows the approproate div.
Each tab has a different background image, and there is a delay after clicking
each tab while the image loads.

Is it possible to preload the images in anyway, via CSS or Javascript?

I'm not that keen on combining the 6 images into 1 large one and changing the
background position, as that would mean the homepage would take too long to
appear.


I've searched thorugh the archive but not found a definitive answer, can
anyone help?

Thanks very much,

- Kevin
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: