Speedy
06-02-2003, 05:58 PM
Hi,
I want a whole line in a table to change background-color
when moving the mouse over a cell in that line.
right now I use this code:
<tr id="index" style="background-color:#FFFFFF;" onMouseOver="this.style.background='#CCCCCC';" onMouseOut="this.style.background='#FFFFFF';">
and it works just fine but now I want it in an .css file that I
include in my page but I can't get it to work.
I tried this:
TR.index
{
background-color: #FFFFFF;
}
TR.index.onMouseOver
{
background-color: #CCCCCC;
}
I also tried with TR.index.hover instead of onMouseOver
but that didn't work either.
Anyone that has a clue what to do?
Thanks in advance
/Speedy
I want a whole line in a table to change background-color
when moving the mouse over a cell in that line.
right now I use this code:
<tr id="index" style="background-color:#FFFFFF;" onMouseOver="this.style.background='#CCCCCC';" onMouseOut="this.style.background='#FFFFFF';">
and it works just fine but now I want it in an .css file that I
include in my page but I can't get it to work.
I tried this:
TR.index
{
background-color: #FFFFFF;
}
TR.index.onMouseOver
{
background-color: #CCCCCC;
}
I also tried with TR.index.hover instead of onMouseOver
but that didn't work either.
Anyone that has a clue what to do?
Thanks in advance
/Speedy