I'm not sure if you know this or not, but this is not very secure. Anyone can look at the source code and see the links and navigate directly to them.
However, to make the script work, get rid of the highlighted and change the red:
Code:
<script>
//Encrypted Password script- By Rob Heslop
//Script featured on Dynamic Drive
//Visit http://www.dynamicdrive.com
<script>
//Encrypted Password script- By Rob Heslop
//Script featured on Dynamic Drive
//Visit http://www.dynamicdrive.com
<script>
//Encrypted Password script- By Rob Heslop
//Script featured on Dynamic Drive
//Visit http://www.dynamicdrive.com
function submitentry(){
password = document.password1.password2.value.toLowerCase()
passcode = 1
for(i = 0; i < password.length; i++) {
passcode *= password.charCodeAt(i);
}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
if(passcode==350859600)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
open("http://www.hotmail.com", "_new");}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
else if(passcode==393120000)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
open("http://www.yahoo.com", "_new");}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
else if(passcode==371101500)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
open("http://www.ebay.co.uk", "_new");}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
else if(passcode==344362200)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
open("http://www.google.co.uk", "_new");}
else{
alert("wrong try again.")}
}
</script>
<form name="password1">
<input type="password" name="password2" size="15">
<input type="button" value="Search" onClick="submitentry()">
</form>
Bookmarks