View Single Post
  #2 (permalink)  
Old Jan 2nd, 2007, 22:27
Ryan Fait's Avatar
Ryan Fait Ryan Fait is offline
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: preload isn't working

The background switch CSS method is much better than using JavaScript to preload images. Create a single image with both the off state stacked on top of the on state. Then use something like this in your CSS:

Code: Select all
#imagetabred a {
    background: #f00 url("tab.gif") no-repeat 0 0;
}
#imagetabred a:hover {
    background-position: 0 100%;
}
That way you don't need to preload anything at all.
Reply With Quote