[thelist] onmouseover color change for <tr>

david braun david.braun at centralnet.ch
Sat Sep 8 15:44:35 CDT 2001


[08.09.2001 - 19:45 Uhr]
Mark Kennedy wrote:

> 
> What I'd do if I wanted to make all of the cells in a row a certain colour,
> would be:
> 
> <tr class="monkeyface1">
>   <td>...</td>
>   ...
> </tr>
> 
> and then in my stylesheet put
> 
> tr.monkeyface1 td {
>   background-color: #ff6600;
> }
> 
> If I wanted a rollover effect for the whole row, I'd make another class
> (monkeyface2) and then change the class name of the tr for the rollover:
> 
> onmouseover="this.className = 'monkeyface2'"
> 
> Hope I'm not patronising anybody - I may have misunderstood the question.
> 
> Regards
> 

 Mark

If I interpret this right, the only thing missing here would then be a class-association of the <TD> in question:

<tr class="monkeyface1">
    <td class="nClass">...</td>
    ...
</tr>

 onmouseover="this.className = 'monkeyface2'; swaptheCell's-class()"

you know...

but I of course may be completely off-target.

david




More information about the thelist mailing list