Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/04/2007, 03:34
Capi666
 
Fecha de Ingreso: febrero-2007
Ubicación: Valencia
Mensajes: 457
Antigüedad: 17 años, 2 meses
Puntos: 0
Re: Cambiar el style de un input

Ok, lo he probado y me funcion a la perfeccion;););).

Código:
var passw;
function limpiarpass(caja) {
    passw=document.createElement("input");
    passw.setAttribute("type","password");
    passw.setAttribute("name",caja.name);
    passw.setAttribute("value","");
    passw.setAttribute("size",caja.size);
    passw.style.fontSize="11px";
    document.logpass.getElementsByTagName('li')[1].replaceChild(passw,caja);	
    setTimeout("passw.focus();",100);
}
El Patrón. mira a ver que lo tengas igual, porque a mi si que me funciona. Te dejo tambien el input:
Código:
<input type="text" style="font-size:11px" name="password" onfocus="limpiarpass(this)" value="PASSWORD" size="15">
Muchas gracias,