Search engine

Question by – Frozenwind -:
How to make a combination lock javascript script?

Okay, I have asked this question before, but now I need it modified..

I want it to be like this.
3 pull down menus. when the right combination is guessed, the user is sent a webpage, when the combination is guessed wrong, they are sent to a different page. Thanks to ElectroMan for the first script.

Code
—————–







——————————————

Answer by Chris B
First of all, you have 4 drop-downs. I am not sure if that is a type where you stated “3 pull down menus”.
If you want to change the page when the person is either right or wrong, use:
location = URL;
So like this:
//enter whatever message you want
alert(“okay move on”);
//change URL to the site you want to go to
window.open(“http://www.YOURSITEHERE.… location=1, directories=1, status=1, menubar=1, scrollbars=1, resizable=1, width=600px, height=350px, top=50px, left=100px”);
} else {
//change your NO ACCESS message
alert(“sorry no access, try again”);

You could change it to:
//enter whatever message you want
alert(“okay move on”);
//change URL to the site you want to go to
location = http://www.YOURSITEHERE.com/continue.html;
} else {
//change your NO ACCESS message
alert(“sorry no access, try again”);
location = http://www.YOURSITEHERE.com/fail.html

Good Luck!

If you need further help/assistance, feel free to E-mail me.

——————————————
What do you think? Answer below!