<style type="text/css"> table {border-collapse:collapse;border:1px solid maroon;margin-left:80px} td {border:1px solid maroon;width:30px;text-align:center} </style> <script type="text/javascript"> <!-- function ini() { tab=document.getElementById('tabla'); for (i=0; ele=tab.getElementsByTagName('td')[i]; i++) { ele.onmouseover = function() {iluminar(this,true)} ele.onmouseout = function() {iluminar(this,false)} } } function iluminar(obj,valor) { fila = obj.parentNode; for (i=0; ele = fila.getElementsByTagName('td')[i]; i++) ele.style.background = (valor) ? '#B9F8F8' : ''; } --> </script> </head> <body onload="ini()"> <p> </p> <table id="tabla" border="1"> <tr> <td>1.1</td><td>1.2</td><td>1.3</td> </tr> <tr> <td>2.1</td><td>2.2</td><td>2.3</td> </tr> <tr> <td>3.1</td><td>3.2</td><td>3.3</td> </tr> </table> </body>