You could use javascript to preload images.
<head>
<script>
preload_image = new Image();
preload_image.src="http://mydomain.com/image.gif";
</script>
</head>
This will put the image in cache as the page loads.
harrierdh
Junior Poster in Training
62 posts since Dec 2009
Reputation Points: 10
Solved Threads: 13
alteration to harrierdh's technically correct answer
put the preload script between
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
often these images are better with transparent text (gif or png)
instead of loading a second image for the hover state, you change the background color
.thisstyle {background:url('image.url') #000ff no-repeat; }
.thisstyle:hover {background:url('image.url') #0ff00 no-repeat; }
the selected background color shows as the text color through the transparent text.
Not a big deal for one background image, a big deal for 100 background images and four possible states
element
element:active
element:hover
element:visited
it also keeps the css short, only a single td style needs to be defined
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376