Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/01/2009, 14:26
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 16 años, 8 meses
Puntos: 2
Pregunta Optimizacion onmouseover/onmouseout

Saludos,
tengo el siguiente codigo, quisiera por favor me podrian ayudar como optimizarlo con respecto al onmouseover/onmouseout del ultimo tag <tr> de la tabla:
Código php:
Ver original
  1. <!-- <?php
  2. ?>
  3. <html>
  4. <head>
  5. <title>TOP DE USUARIO</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. </head>
  8.  
  9. <body link="#FFFF00" vlink="#FFFFFF" bgcolor="#f2f2f2">
  10. <table border="0" width="100%" height="100%" align="center" cellspacing="0">
  11. <tr>
  12.     <td colspan="7" align="right" valign="top" height="25"></td>
  13.     <td colspan="2" width="62%" align="right" valign="bottom" class="tit"><?php echo "Bienvenido [".$_SESSION['username']."]"; ?></td>
  14. </tr>
  15. <tr>
  16.     <td colspan="7" height="8"></td>
  17.     <td colspan="2" height="8"></td>
  18. </tr>
  19. <tr bgcolor="#727272" class="prod">             /////EN ESTE TAG ESTAN onmouseover/onmouseout
  20.     <td width="14%" align="center" onmouseover='this.style.background="red"' onmouseout='this.style.background="#727272"'><a href="portada.php" style="text-decoration: none;" onmouseover="this.style.color='white';this.style.textDecoration='underline'" onmouseout="this.style.color='';this.style.textDecoration='none'" target="mainFrame">Principal</a></td>
  21.     <td width="1%" height="28" bgcolor="#F2F2F2"></td>
  22.     <td width="14%" align="center" onmouseover='this.style.background="red"' onmouseout='this.style.background="#727272"'><a href="catalogo.php" style="text-decoration: none;" onmouseover="this.style.color='white';this.style.textDecoration='underline'" onmouseout="this.style.color='';this.style.textDecoration='none'" target="mainFrame">Catálogo</a></td>
  23.     <td width="1%" height="28" bgcolor="#F2F2F2"></td>
  24.     <td width="14%" align="center" onmouseover='this.style.background="red"' onmouseout='this.style.background="#727272"'><a href="miOrden.php" style="text-decoration: none;" onmouseover="this.style.color='white';this.style.textDecoration='underline'" onmouseout="this.style.color='';this.style.textDecoration='none'" target="mainFrame">Mis Ordenes</a></td>
  25.     <td width="1%" height="28" bgcolor="#F2F2F2"></td>
  26.     <td width="14%" align="center" onmouseover='this.style.background="red"' onmouseout='this.style.background="#727272"'><a href="miCuenta.php" style="text-decoration: none;" onmouseover="this.style.color='white';this.style.textDecoration='underline'" onmouseout="this.style.color='';this.style.textDecoration='none'" target="mainFrame">Mi Cuenta</a></td>
  27.     <td width="28%" bgcolor="#F2F2F2" align="right" valign="top" class="tit2"><a href="fin.php" target="_top" style="text-decoration:none;color:black" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" onclick="return confirma();">Cerrar Sesión</a></td>
  28. </tr>
  29. </table>
  30. </body>
  31. </html> -->

Gracias