Hi
I am trying to change the color of a <tr> background through javascript - ie when the mouse goes over it. How can I do this? I have tried something like this:
I am pretty sure that I am doing something totally wrong.Code:<tr id="cell1" onmouseover="darken(1)"> <td>Hello</td> <td>World</td> </tr> <script type="text/javascript"> function darken(id){ var name = "cell" + id; var cell = document.getElementById(name); cell.bgcolor = "FFFFFF"; } </script>
Thanks




Bookmarks