Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/02/2002, 18:18
Avatar de CHuLoSoY
CHuLoSoY
 
Fecha de Ingreso: febrero-2002
Ubicación: Ribeira (Galicia)
Mensajes: 1.900
Antigüedad: 22 años, 3 meses
Puntos: 29
Re: cambiar color de celdas , ayudenme rapido

<BLOCKQUOTE><font size=1 face=arial>Citando:<hr height=1 noshade>&lt;SCRIPT&gt;
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();
}&lt;/script&gt; [/QUOTE]

luego en la celda pones:

<BLOCKQUOTE><font size=1 face=arial>Citando:<hr height=1 noshade> &lt;td onmouseover='mOvr(this,&quot;ffffff&quot;);'
onclick=mClk(this); onmouseout='mOut(this,&quot;black&quot;);'&gt;&lt;/td&gt; [/QUOTE]

Hasta luego.