W3C home > Mailing lists > Public > www-style@w3.org > June 2002

Re: Rollover-image Property

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 20 Jun 2002 16:56:06 -0400
Message-Id: <200206202056.QAA12392@nerd-xing.mit.edu>
To: Stuart Ballard <sballard@netreach.com>
cc: Manos Batsis <m.batsis@bsnet.gr>, Nicholas Atkinson <nik@casawana.com>, www-style@w3.org

> (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).

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:02 UTC