tags:

views:

37

answers:

1
+3  Q: 

Image precaching.

Hi, at the website I'm working on euroworker.no, I have a ton of CSS rollovers, that only load when rolled over, is there a way to force load these onLoad so that they don't flash when rolled over the first time? It makes the site look broken. I could use a <body onLoad...> but am not sure how to implement it.

Thanks.

+3  A: 

Sure, just use image sprites. In short, this means you put both states of an image (default and hover) in one image file. Upon hover, you then shift the background-position of the element in question.

Mathias Bynens
Oh yes, I should do that, I have done this before, stupid me for forgetting it :P Thanks!
Kyle Sevenoaks