Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/07/2005, 08:43
Avatar de SiR.CARAJ0DIDA
SiR.CARAJ0DIDA
 
Fecha de Ingreso: junio-2004
Ubicación: Acá
Mensajes: 1.166
Antigüedad: 20 años, 8 meses
Puntos: 4
a ver asi:

Código PHP:
<head>
    <
script type="text/javascript">
        function 
reemplazar()
        {
            var 
viejo document.getElementById('txt');
            var 
padre viejo.parentNode;
            var 
nuevo document.createElement('input');
            
nuevo.type "password";
            
nuevo.name "txt";
            
nuevo.id "txt";
            
padre.replaceChild(nuevoviejo);
        }
    
</script>

</head>

<body>
<p><input type="text" name="txt" id="txt" value="" onfocus="reemplazar()"></p>
</body>