![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
03/07/2007, 13:16
|
![Avatar de Adler](http://static.forosdelweb.com/customavatars/avatar163014_6.gif) | Colaborador | | Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 1 mes Puntos: 126 | |
Re: duda con funcion onblur Hola prueba así
Código:
<input type="text" onblur = "this.style.color = (parseInt(this.value) < 40) ? 'red' : 'black';if(this.value.indexOf('.') == -1) this.value = this.value.split('').join('.')" />
Suerte |