Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/08/2002, 10:06
Avatar de TheRock
TheRock
 
Fecha de Ingreso: mayo-2002
Ubicación: Sucre - Bolivia
Mensajes: 189
Antigüedad: 22 años
Puntos: 0
Re: CHECKBOX y Encender una FILA

Hola.

Tendrías que aplicar si gustas al TR o TD los eventos siguientes:

<tr onmouseover="setPointer(this, '#CCFFCC')" onmouseout="setPointer(this, '#CCCCCC')">......... etc.


y debes crear una función en javscript:

function setPointer(theRow, thePointerColor)
{
if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
return false;
}
if (typeof(document.getElementsByTagName) != 'undefined') {
var theCells = theRow.getElementsByTagName('td');
}
else if (typeof(theRow.cells) != 'undefined') {
var theCells = theRow.cells;
}
else {
return false;
}

var rowCellsCnt = theCells.length;
for (var c = 0; c < rowCellsCnt; c++) {
theCells[c].style.backgroundColor = thePointerColor;
}

return true;
} // end of the 'setPointer()' function


lo saque de phpMyAdmin. :)

espero te sea útil.

saludos

<center><img src="http://www.usfx.edu.bo/usfxnet/TheRock/TheRock/rock.gif"><br>El poder es PHP</center><hr>TheRock. webmaster UsfxNet Bolivia <a href="http://www.usfx.edu.bo/usfxnet/">Universidad San Francisco Xavier</a>.