HTML (tabla.htm):
Código HTML:
Ver original
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <table width="400" cellspacing="0" cellpadding="2" border="1" bordercolor="#CCCCCC" frame="box" rules="rows"> <tr height="26" align="center" valign="middle" bgcolor="#CCCCCC" style="border-bottom:#CCCCCC"> </tr> <tr height="28" align="center" valign="middle" onmouseover="subrayar_over(this)" onmouseout="subrayar_out(this)"> </tr> <tr height="28" align="center" valign="middle" onmouseover="subrayar_over(this)" onmouseout="subrayar_out(this)"> </tr> <tr height="28" align="center" valign="middle" onmouseover="subrayar_over(this)" onmouseout="subrayar_out(this)"> </tr> <tr height="28" align="center" valign="middle" onmouseover="subrayar_over(this)" onmouseout="subrayar_out(this)"> </tr> <tr height="28" align="center" valign="middle" onmouseover="subrayar_over(this)" onmouseout="subrayar_out(this)"> </tr> <tr height="28" align="center" valign="middle" onmouseover="subrayar_over(this)" onmouseout="subrayar_out(this)"> </tr> </table> </body> </html>
JavaScript (subrayar.js):
Código Javascript:
Ver original
function subrayar_over(fila){ fila.style.borderBottom="solid 1px #09F"; fila.style.borderRight="solid 1px #09F"; fila.style.borderLeft="solid 1px #09F"; } function subrayar_out(fila){ fila.style.borderBottom="solid 1px #CCC"; fila.style.borderRight="solid 1px #CCC"; fila.style.borderLeft="solid 1px #CCC"; }
Bueno si alguien me puede dar una mano se lo agradezco. Saludos.