Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/03/2005, 09:25
ElBajo
 
Fecha de Ingreso: agosto-2003
Ubicación: Culishi Town
Mensajes: 13
Antigüedad: 20 años, 8 meses
Puntos: 0
Ayuda con OnMouseOver y OnClick

Estoy utilizando este codigo:
<table width="750" height="25" border="1" cellspacing="0" cellpadding="0" bordercolor="#336699" bgcolor="#336699">
<tr>
<td onMouseOver="style.backgroundColor='#EAEAEA', style.cursor='hand'" onMouseOut="style.backgroundColor='#FFFFFF'" onClick="x.location='index.html '"><center>INICIO</center></td>
<td width="5"><font color="#336699"><center>|</center></font></td>
<td onMouseOver="style.backgroundColor='#EAEAEA', style.cursor='hand'" onMouseOut="style.backgroundColor='#FFFFFF'" onClick="x.location='index.html '"><center>PROMOCIONES</center></td>
<td width="5"><font color="#336699"><center>|</center></font></td>
<td onMouseOver="style.backgroundColor='#EAEAEA', style.cursor='hand'" onMouseOut="style.backgroundColor='#FFFFFF'" onClick="x.location='index.html '"><center>LIQUIDACION</center></td>
<td width="5"><font color="#336699"><center>|</center></font></td>
<td onMouseOver="style.backgroundColor='#EAEAEA', style.cursor='hand'" onMouseOut="style.backgroundColor='#FFFFFF'" onClick="x.location='index.html '"><center>ACERCA DE SM+C</center></td>
</tr>
</table>

pero quiciera saber si hay alguna forma de crear alguna funcion que realize: onMouseOver="style.backgroundColor='#EAEAEA', style.cursor='hand'" onMouseOut="style.backgroundColor='#FFFFFF'" onClick="x.location='index.html '"

y que no mas la mande llamar en vez de tener que escribir todo el codigo en cada celda