Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/04/2003, 09:52
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes
Puntos: 61
Prueba esto:

Código PHP:
<html>
<
head>
    <
title>Untitled</title>
</
head>

<
body>


<
input type="text"
       
name="valor"
       
size="5"
       
maxlength="5" onBlur='if(isNaN(this.value)||this.value>99){this.value="";this.focus()}'>
<
input type="button"
       
value="pincha"
       
onclick="if(valor.value){a=Math.round(valor.value*4)/4;alert(a)}"
       
>   

</
body>
</
html
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.