First off this provides like Zero security. Anyone can look at the source code and see the destinations and navigate directly to them.
But to answer your question, you need to make all but the first if else if:
Code:
//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==134603040)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
window.location="http://www.google.com"}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
else if(passcode==13017371870)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
window.location="http://www.yahoo.com"}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
else if(passcode==132088320)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
window.location="http://www.ebay.com"}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
else if(passcode==1327620)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
window.location="http://www.hotmail.com"}
else{
alert("EITHER: Passcode incorrect.")}
}
Bookmarks