<table border="1">
<tr>
<td>asd
</td>
<td>asd
</td>
</tr>
</table>
<script language=javascript>
var objs=document.getElementsByTagName("td")
for(var i=0;i<objs.length;i++)
{
   objs[i].onmouseover=function()
   {
       alert(this.parentNode.rowIndex+parseInt(1))
       alert(this.cellIndex+parseInt(1))
    }
}
</script>