Log in

View Full Version : Changing Table Background with a link



hollaamic
08-25-2005, 07:24 PM
Hello
I have a table named Table1 and I would like to change its background with an "onmouseover" on a link.
I tried some things with the classes, each class having a background, but I'm unable to call the classes with my link. How can I do ? Was it the right way ?
Please :confused:

Twey
08-25-2005, 07:38 PM
Set its id to "table1", then use:
<a href="..." onmouseover="document.getElementById('table1').style.backgroundColor = 'black';">Link</a>