hello i guys i know hw to change a color of a cell on any event, bt not getting the way to chage table bgcolor on any event so plz anyone help me ...
Thanks..
Dheeraj
change background of table onmouseover
Moderator: General Moderators
Re: change background of table onmouseover
Code: Select all
<table id="the_table">
<tr>
<td>
Test<br />test <br />
test test test test test
</td>
</tr>
</table>
<p>
<a href="/" onmouseover="document.getElementById('the_table').style.backgroundColor = 'orange';">Mouse over this</a>
</p>Re: change background of table onmouseover
Hello,
You can do the example above or research changing the className which relates to a class in your stylesheet making your page a little easier to maintain in future.
Thanks.
You can do the example above or research changing the className which relates to a class in your stylesheet making your page a little easier to maintain in future.
Thanks.