Java Scrip Expresiones Regulares
La utilizaremos Parrafo Rellenar ONU Campo Estafadores ano determinadas numeros De reglas
mostradas en el inicio de Sesión.
Ya Que Si no lo rellenamos correctamente nos arrogara sin error.
Rellenado Correctamente:
Rellenado Incorrectamente:
Codigo Fuente:
<html><head>
<style type="text/css">
header {
Fondo: anaranjado;
Altura: 300px;
ancho: 200px;
position: absolute;
top: 30px;
Izquierda: 565px;
padding: 25px;
border-radius: 15px;
}
pastel de page {
Fondo: blanco;
Fronteriza: Sólido 10px naranja;
margin-top: 215px;
ancho: 20%;
position: absolute;
top: 250px;
Izquierda: 100px;
}
</ Style>
<script type="text/javascript">
Función Borrar () {
UNO var = document.getElementById ("nuevoid") de valor.;
Regla var = / ^ [AZ] {4} [0-9] {1,6} [az] {3} $ / ;/ / reglas a Seguir
si (regla.test (ONU))
alert ("CAMPOS LLENADOS CORRECTAMENTA");
Más
alert ("VERIFIQUE LOS CAMPOS NO HAS SIDO LLENADO CORRECTAMENTE");
}
Función de verificar () {
var a = document.getElementById ("id") de valor.;
var b = document.getElementById ("pass") de valor.;
if (a.length! = 0 && b.length! = 0) {
alert ("VERIFICANDO ...")
return true;
} Else {
alert ("incompletos CAMPOS!")
return false;
}
}
</ Script>
<title> 5entrada </ title>
</ Head>
<body background="f.jpg">
<center>
<header>
<font face="Papyrus"> <br> Ingrese DATOS <br> </ font>
<form id="formulario" Acción ="index.php" method="post" onsubmit="return verificar()"> <BR>
<font color="blue" face="Papyrus"> INICIO </ font>
<br>
<h6> <font color="white" face="Papyrus"> NOMBRE </ font>
<input id="nuevoid" name = "campo1" type="text">
<br>
<font color="white" face="Papyrus"> CONTRASEÑA </ font>
<input id="psw1" name="psw" type="password">
<br> </ h6>
<input id="b1" name="boton" type="submit" value="Entrar" onclick="borrar()">
<input id="rse" name="reset" type="reset">
<br>
</ Form>
</ Header> </ center>
<footer> INSTRUCCIONES! <br>
-Su Nombre parrafo debe ingresar Contener: <br>
> 4 mayusculas de la AZ <br>
> 1 a 6 numeros 0-9 <br>
> 3 letras Minúsculas <br>
(En Este Orden)
</ Pie de Página>
</ Body>
</ Html>
********************************** FIN *************** *************************


No hay comentarios:
Publicar un comentario