function modificar_rut()
{
col= (mostrar_rut) ? '#66CC66' : '#DDDDDD';
document.getElementById('celda_rut').style.bgColor =col;
mostrar_rut = !mostrar_rut;
repe_rut=setTimeout('modificar_rut()',500);
}
Por favor ayudarme!!
Gracias!!!


| ||||
Fijate así:
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Documento sin título</title> <script> var mostrar_rut=false; function modificar_rut() { col= (mostrar_rut) ? '#66CC66' : '#DDDDDD'; document.getElementById('celda_rut').bgColor =col; mostrar_rut = !mostrar_rut; repe_rut=setTimeout('modificar_rut()',500); } </script> </head> <body onload="modificar_rut()"> <table width="350" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="celda_rut"> </td> </tr> </table> </body> </html>
__________________ Fast, lightweight, cross-platform framework for building incredible, powerful JavaScript applications |