Hola de nuevo.
Echa un vistazo a este código:
Código PHP:
<script type="text/javascript">
function cambia(obj,cla) {
document.getElementById(obj).className = cla;
}
</script>
</head>
<body>
<table>
<tr>
<td id="t1" class="row1" onmouseover="cambia('t2','row1'); this.innerHTML='rehola'"
onmouseout="cambia('t2','row2'); this.innerHTML='hola'">hola</td>
<td id="t2" class="row2" onmouseover="cambia('t1','row2'); this.innerHTML='hola'"
onmouseout="cambia('t1','row1'); this.innerHTML='rehola'">rehola</td>
</tr>
</table>
Saludos,