Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/03/2002, 21:26
Gastón
 
Fecha de Ingreso: febrero-2002
Mensajes: 681
Antigüedad: 22 años, 3 meses
Puntos: 0
Re: Ayudenme!!Cambio de color de las Celdas

Hola AgusPlanet!

Bienvenido al foro!

Aquí tenes el código que buscas:

Entre <head> y </head>

<script>
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}
</script>


Y entre <body> y < /body >


<table cellspacing="0" cellpadding="0">
<tr>
<td onclick="mClk(this);" onmouseout="mOut(this,'#FF0000');" onmouseover="mOvr(this,'#FFFF00');" vAlign="center" width="121" style="border-bottom: 1px solid rgb(0,0,0); padding-left: 6; padding-top: 1; padding-bottom: 1" bgcolor="#FF0000" height="12"><a style="COLOR: rgb(255,255,255); TEXT-DECORATION: none" href="http://www.google.com"><font face="Arial" size="2">Google</font></a></td>
</tr>
</table>

Suerte, Un Abrazo! ;)