Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/08/2005, 06:50
Avatar de crcbad
crcbad
 
Fecha de Ingreso: enero-2005
Mensajes: 302
Antigüedad: 20 años, 2 meses
Puntos: 0
Toma, el ejemplo funcionando:

Código HTML:
<html>
<head>
<script>
 function MiraNota() 
{
  if(document.form1.nota.value < 5)
  {
	document.write("Suspenso"); return false;
  }

  else if(document.form1.nota.value < 7)
  {
	document.write("Aprobado"); return false;
  }

  else if(document.form1.nota.value < 9)
  {
	document.write("Notable"); return false;
  }

  else
  {
	document.write("Sobresaliente"); return false;
  }


}
</script>
</head>

<body>
<form name="form1" method="post" action="">
  <p> 
    <input name="nota" type="text" id="nota" maxlength="4">
    <input name="Submit" type="button" onClick="MiraNota()" value="Consultar">
  </p>
  </form>
</body>
</html> 
__________________

:cool: [ http://eruben.sytes.net ] :cool:


Las dos frases que te ayudarán a salir adelante:
  • No hay mujer fea, solo copas de menos. :borracho:
  • Ante la duda, siempre coge la más tetuda. :arriba: