Are you trying to eliminate the flicker that sometimes happens when a CSS rollover is rolled over? I've heard of using Javascript to pre-load the images, but I'm not sure if those are cached. You could always create a div with the "display:none" property set & have it have the same background image as the rollovers. I think that'll work.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
pickle wrote:Are you trying to eliminate the flicker that sometimes happens when a CSS rollover is rolled over? I've heard of using Javascript to pre-load the images, but I'm not sure if those are cached. You could always create a div with the "display:none" property set & have it have the same background image as the rollovers. I think that'll work.
*Ahem* visibility:hidden would likely be a better choice.
Perhaps. I'm pretty sure Firefox doesn't load resources in hidden elements until they become visible. It may also have that behaviour with display:none - but I haven't experienced it.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Also, a good way to do what you're after is to put both parts of the rollover in the same image, and then move the background image on rollover. This has become very popular, so finding an example is easy. Go to Digg and look at their main logo rollover.