Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/10/2006, 06:17
Avatar de Lord of freaks
Lord of freaks
 
Fecha de Ingreso: octubre-2004
Ubicación: Madrid
Mensajes: 334
Antigüedad: 22 años
Puntos: 2
Yo haría algo como esto

Código PHP:
codigo HTML
<input type="text" id="caja" onBlur="ponCero('caja')" />

Javascript
function ponCero (campo){

    
sitio = document.getElementById(campo);
    
valor = "0".toString + sitio.value;
    
sitio.value = valor;

} 
__________________
Una vez un elemental de rayos mató una tribu entera de tritones.

¡¡ El sólo quería darse un baño !!

http://www.frikilandia.com

Neither Fu Nor Fa