<body>
<script>
function overIt()
{
var the_obj = event.srcElement;
if(the_obj.tagName.toLowerCase() == "td")
{
the_obj=the_obj.parentElement;
the_obj.oBgc=the_obj.currentStyle.backgroundColor;
the_obj.oFc=the_obj.currentStyle.color;
the_obj.style.backgroundColor='#444444';
}
}
function outIt()
{
var the_obj = event.srcElement;
if(the_obj.tagName.toLowerCase() == "td")
{
the_obj=the_obj.parentElement;
the_obj.style.backgroundColor=the_obj.oBgc;
the_obj.style.color=the_obj.oFc;
the_obj.style.textDecoration='';
}
}
</script>
<table width="200" border="1" οnmοuseοver="overIt()" οnmοuseοut="outIt()">
<tr>
<td >123</td>
<td >123</td>
<td >123</td>
</tr>
<tr>
<td >123</td>
<td >123</td>
<td >123</td>
</tr>
<tr>
<td >123</td>
<td >123</td>
<td >123</td>
</tr>
</table>
</body>
<script>
function overIt()
{
var the_obj = event.srcElement;
if(the_obj.tagName.toLowerCase() == "td")
{
the_obj=the_obj.parentElement;
the_obj.oBgc=the_obj.currentStyle.backgroundColor;
the_obj.oFc=the_obj.currentStyle.color;
the_obj.style.backgroundColor='#444444';
}
}
function outIt()
{
var the_obj = event.srcElement;
if(the_obj.tagName.toLowerCase() == "td")
{
the_obj=the_obj.parentElement;
the_obj.style.backgroundColor=the_obj.oBgc;
the_obj.style.color=the_obj.oFc;
the_obj.style.textDecoration='';
}
}
</script>
<table width="200" border="1" οnmοuseοver="overIt()" οnmοuseοut="outIt()">
<tr>
<td >123</td>
<td >123</td>
<td >123</td>
</tr>
<tr>
<td >123</td>
<td >123</td>
<td >123</td>
</tr>
<tr>
<td >123</td>
<td >123</td>
<td >123</td>
</tr>
</table>
</body>