Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: open
I've a table with some different background-coloured cells (td) whose colour I want to change to white when the mouse is over and then revert each one to its previous colour when mouse is out.
Could anybody lend me a helping hand or put me in the right direction.
Thanks a lot in advance
PS. I try to be xhmtl 1.1 compliant (and up to now, I've been succesful)
<td width="20%" bgcolor="#6699ff" valign="top" onMouseover="this.bgColor='#e7efff'"onMouseout="this.bgColor='#6699ff'" align="center"><font size="2"><a style="font-family: tahoma; font-size: 10pt; color: #000000; text-decoration: none" title="Widgets" href="example.htm" target="main">Buy a Widget</a></font></td>
Or am I missing the point. :)
The idea is that when the user passes the mouse over a non-printable colour, all non printable colours turn white, and when the mouse goes "out", they revert to their previous colour. So the user can learn the difference between them.
As I said, I think this can be achieved altering a class attributes. But I just know how to change an element with an "id='joe'" not a "class='joe'".
Any idea, please :)