[thelist] TD's and dynamic style sheets

danielEthan daniel at ionize.net
Wed Jul 31 14:30:00 CDT 2002


>I have a bunch of table rows and I want to add a little dynamic CSS to
>help highlight various rows when I mouse over a text link in the row.
>For the life of me I can't remember how to do this.  I basically want to
>do: onmouseover change background to different color.  Nothing fancy.

Try:

<td class="Off" onMouseOver="this.className='On'" onMouseOut="this.className='Off'">
    <a href="page.html">data</a>
</td>

Ofcourse, it has the bad behavior of giving visual cues that
by clicking you would go somewhere... when you don't unless
you're right over the data. Perhaps divs or display changes
would improve the interface?

Hope that helps,
=D



More information about the thelist mailing list