On Apr 10, 2:09*am, "rf" <r...@z.invalid> wrote:
> JakeBarnes wrote:
> > I know I can do this:
>
> > document.getElementById("id").style.property="valu e"
>
> > but how can I find all the styles that have been loaded?
>
> > Onload, I want to loop through every rule defined in the style sheets
> > of a page, and find every hover pseudo class, and preload all the
> > images defined therein.
>
> http://wellstyled.com/css-nopreload-rollovers.html
>
> Be sure to follow the "example" link.
>
> No preloading required. No messy traversal of stylesheets required.
No, that doesn't work. The designer working on this project used that
trick where it was appropriate (nav bar, some rollovers) but we are
now dealing with situations where that trick can not easily be used.
In particular, some items of clothing have the price appear on
rollover, the rollover is an image that has text added dynamically by
PHP, and she's using the replace-the-whole-damn-image approach to deal
with the problem IE 6 has with transparent pngs.
But thanks.