Full version: jsB@nk » Security » Encryption » Login and Password script
URL: https://www.javascriptbank.com/login-and-password-script.html
This is another script that requires both a login and password to gain entry to the protected page, with an incorrect set taking the user to a 'failure' page instead.
Full version: jsB@nk » Security » Encryption » Login and Password script
URL: https://www.javascriptbank.com/login-and-password-script.html
<SCRIPT LANGUAGE="JavaScript">function pass(){var user1="test1"//replace this with your own namevar user2="test2"//replace this with your own passwordvar pass1=document.myform.password.valuevar user10=document.myform.user.valueif (pass1 == user2&&user10==user1){alert("Access Granted")document.write("<HTML>")document.write("<body bgcolor='black'>")document.write("<center><p><font size='6'color='darkblue'>Welcome to Member Page!!</p>")document.write("<p><a href='http://www.starkingdoms.com'>StarKingdoms</a><br>")document.write("</html>")}else{alert("Access Denied")}}function change(){document.bgColor=('red')}function pass6(){var user11="test1"//replace this with your own namevar pass11="test2"//replace this with your own passwordvar usern=document.myform2.muser.valuevar userp=document.myform2.mpass.valueif(usern==user11&&userp==pass11){alert("Access Granted")//Replace this with your own textdocument.write("<HTML>")document.write("<body bgcolor='black'>")document.write("<center><p><font size='6'color='darkblue'>Welcome to Master Page!!</p>")document.write("<font size='4'><a href='/westwood/redalert/ra95.exe'>Command & Conquer:Red Alert</a><br>")document.write("<font size='4'><a href='/westwood/redalert/edwin.exe'>Command & Conquer:Terrain Editor</a><br>")document.write("<font size='4'><a href='/programfiles/starcraft/starcraft.exe'>StarCraft</a><br>")document.write("<font size='4'><a href='/programfiles/starcraft/staredit.exe'>StarCraft:Map Editor</a>")document.write("<p><font color='darkblue'>When the download thing comes up select the run this program from current location then click ok</p>")document.write("</html>")}else{alert("Access Denied")}}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<FORM name="myform"><h3>Member Login</h3>User Name:<INPUT TYPE="text" name="user"><br>Password:<input type="password" name="password"><br><input type="button" Value="Login" onClick="pass()"><input type="button" value="Reset"></form><form name="myform2"><h3>Master Login</h3>Master Name:<input type="text" name="muser"><br>Master Password:<input type="password" name="mpass"><br><input type="button" value="Login" onClick="pass6()"><input type="reset" value="Reset"></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->