Click to See Complete Forum and Search --> : Hover function that just works for text


foolishtiger
02-13-2006, 04:44 PM
Okay here's my problem:

I have a cell that has both an image and text as a link (to the same place).

When hover over text, the background-color changes. I don't want the background color to change when hovering the image.

Is there a way I can get hovering the image to change the background-color of the text (but leave the background-color of the image alone)?
Is there a style that only applies to text?
Or would I need a javascript in here? If so which one?

Thanks

Kravvitz
02-13-2006, 05:00 PM
You could put a <span> around the text and apply the background color to it when it's hovered over.

IE(4 through 6)/Win only support :hover on <a> elements.
Three ways to simulate :hover in IE:
http://dean.edwards.name/IE7/
http://www.htmldog.com/articles/suckerfish/
whatever:hover (http://www.xs4all.nl/~peterned/csshover.html)