Benjamin Niemann <pink (AT) odahoda (DOT) de> wrote in news:d4asqs$nhd$1 (AT) online (DOT) de:
Quote:
Marita wrote:
I know that you can change the cell background color on mouseover,
but is there a way with stylesheets that a background image can be
swapped?
In theory you can use :hover pseudo classes on all elements, e.g.
td:hover { background-image: url(/alternate_image.jpeg); }
Unfortunately a certain popular browser supports :hover only on <a
tags... As far as I know, there is now way around using JS to get it
to work in IE. |
The only other option other than using JS (I recommend csshover.htc for
those who go that route) that I have found to work is to use a block
displayed anchor tag. :-/ It's pretty unclean, but I've used it
occassionally for menu's and such to eliminate that extra piece.
--
Arctic Fidelity <spam (AT) sacrificumdeo (DOT) net>
<http://www.sacrificumdeo.net>
"Beware of bugs in the above code; I have only proved it correct, not
tried it." -- Donald Knuth