PDA

View Full Version : Changing a table cell colour.


malhyp
04-26-2006, 11:01 AM
Changing a table cell colour.

Hi there, can you change the colour of a cell in a table when your mouse hovers over it?

Mally

davidj
04-26-2006, 11:35 AM
css-bg is the name of your css class (bg color)..
you will also need an onMouseOut as well to change it back

example...
<td onmouseover="this.className='css-bg';" >content</td>

malhyp
04-27-2006, 11:31 AM
Hmmm, I will try that.

Thanks David.