July 20th, 2003, 04:57 PM
Hia all.. Hope someone can help me here!?
On my webpage, when a user hovers over a table it changes color... I also need to be able to do this from a hyperlink...
IE, I want Table1 to change color when the user hovers over hyperlink1, and table2 to change color when the user hovers over hyperlink2...
Anyone got any ideas?
Thanx in advance to all that can help!
July 20th, 2003, 06:41 PM
Give your table an id attribute, e.g.:
The following will change the color from white to red and back:
(Works in modern browsers, not in NS4)
<a href="whatever" onmouseover='document.getElementById("mytable1").style.backgroundColor="red"' onmouseout='document.getElementById("mytable1").style.backgroundColor="white"'>linktext</a>
Hope this helps,