Stap 1: De code:
< html >
< head >
< script >
functie Login(form) {username = new Array ("gebruikersnaam gaat hier"); wachtwoord = nieuw Array ("wachtwoord gaat hier"); pagina = "Naam van het HTML-bestand te openen als je log pushed goes hier" + ".html"; als (form.username.value == gebruikersnaam [0] & & form.password.value == wachtwoord [0] || form.username.value == gebruikersnaam [1] & & form.password.value == wachtwoord [1] ||
Form.username.Value == gebruikersnaam [2] & & form.password.value == wachtwoord [2] || Form.username.Value == gebruikersnaam [3] & & form.password.value == wachtwoord [3] ||
Form.username.Value == gebruikersnaam [4] & & form.password.value == wachtwoord [4] || Form.username.Value == gebruikersnaam [5] & & form.password.value == wachtwoord [5] ||
Form.username.Value == gebruikersnaam [6] & & form.password.value == wachtwoord [6] || Form.username.Value == gebruikersnaam [7] & & form.password.value == wachtwoord [7] ||
Form.username.Value == gebruikersnaam [8] & & form.password.value == wachtwoord [8] || Form.username.Value == gebruikersnaam [9] & & form.password.value == password[9]) {self.location.href = pagina;} anders {alert ("ofwel de gebruikersnaam of het ingevoerde wachtwoord is onjuist. \nPlease probeer het opnieuw."); form.username.focus();} terug waar; }
< / script >< / head >< body bgcolor = "#eeeeee" >< vorm >< br >< center >< h5 > gebruikersnaam: < input type = "text" name = 'gebruikersnaam' stijl = "achtergrond: #bfbfbf; kleur: #212121; border-color: #212121;" onFocus="this.style.background ="#ffffff";"
onBlur="this.style.background = '#bfbfbf';" >< Br > wachtwoord: < input type = "password" naam = "wachtwoord" style = "achtergrond: #bfbfbf; kleur: #212121; border-color: #212121;" onFocus="this.style.background ="#ffffff";"
onBlur="this.style.background = '#bfbfbf';" >< br >< input type = "button" value = "Login" onClick="Login(this.form);" style = "achtergrond: #bfbfbf; kleur: #000000; border-color: #212121;" onMouseOver="this.style.color =
"#404040';" onMouseOut="this.style.color = '#000000'; ' onFocusr="this.style.color = '#404040'; ' onBlur="this.style.color = '#000000';" >< / h5 >< / center >< / form >< / body >< / html >