Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caching background image for stylesheet?

Status
Not open for further replies.

theniteowl

Programmer
May 24, 2005
1,975
US
Hi All,
I am trying to preload images that used in a div controlled by a style sheet.

In other words I use this:
.TabSelLft {
background-image : url('/tabimages/tabsellft.gif');
height : 22px;
width : 4px;
}

I use a span tag with the above class name.
I want to have the images preloaded though and from what I can tell the stylesheet will reload the images every time.

I know for a rollover effect I can preload the images and then just alter the src but is it possible to have the stylesheet use a preloaded image?



Stamp out, eliminate and abolish redundancy!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top