Re: Rollover-image Property

> (1) Allowing the "content" property to take a url() of an image as an 
> argument, and also allowing it to apply to any element, instead of just 
> the before and after pseudos. Anything in the "content" property would 
> completely replace the regular content of the element; OR

a#foo:before { content: url(normal.gif); }
a#foo:before:hover { content: url(hover.gif); }

<a id="foo"></a>

Does pretty much what you want.  It's not exactly backwards-compatible
with non-css browsers, but neither are any ofthe other suggestions being
considered.  (As a note, it does _not_ work in current Mozilla,
apparently due to a bug; just in case you decide to test it).

Boris
-----------------
God does not play dice with the universe: he plays an
ineffable game of his own devising, which might be
compared, from the perspective of any of the other
players, to being involved in an obscure and complex
version of poker in a pitch-dark room, with blank
cards, for infinite stakes, with a dealer who won't
tell you the rules, and who smiles all the time.

Received on Thursday, 20 June 2002 17:05:10 UTC