multiple users prompt source




JavaScript Source Code 3000: Password Protection: Multiple Users Prompt (In)
























Multiple Users Prompt (In)







So, you got in, eh? You entered the correct username/password pair, good job! :-) This script is just like the previous Multiple Users script, but uses a totally different interface. Use whichever would better suit your site!








JavaScript Source Code 3000: Password Protection: Multiple Users Prompt
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!




    





<!-- TWO STEPS TO INSTALL MULTIPLE USERS PROMPT:

1. Add the first code into the HEAD of your HTML document
2. Copy the last coding into the BODY of your HTML document -->

<!-- STEP ONE: Add code to HEAD of login HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<! >
<! >

<!-- Begin
function LogIn(){
loggedin=false;
username="";
password="";
username=prompt("Username:","");
username=username.toLowerCase();
password=prompt("Password:","");
password=password.toLowerCase();
if (username=="guest" && password=="login") {
loggedin=true;
window.location="home-page.html";
}
if (username=="guest2" && password=="login2") {
loggedin=true;
window.location="home-page2.html";
}
if (loggedin==false) {
alert("Invalid login!");
}
}
// End -->
</SCRIPT>

<!-- STEP TWO: Put this code in BODY of your HTML document -->

<BODY>

<center>
<form><input type=button value="Login!" onClick="LogIn()"></form>
</center>



<!-- Script Size: 1.29 KB -->






















Wyszukiwarka

Podobne podstrony:
multiple users prompt
multiple users source
multiple users
prompter?esigner?s source
prompter?s source
source30
MultipleComponentProfileHolder
Matrix3?pp source
Thread?pp source
arm biquad ?scade ?1 ?st q31? source
arm conv ?2? source
arm mat mult q15? source
Multiple Choice
Resource 8inl source
arm fir lattice init q31? source

więcej podobnych podstron