JavaScript - Challenge Help
Hi, my friend made a page designed to test me - with no javascript skills at all - and I cant get past his stage 2. Could you guys help?
Code: <!-- // try figuring out the password, without just jumping pages // You'll need to look 'Closer' // ~Stewie var password, i; password=prompt("Please enter password!",""); if (password=="window.location == /lvl2/index.php?user=admin&password=lolreally?123!+") { location="grats.html" i=4; } else { alert("Wrong!") location="authfail.php" } //-->[/] This is where I supposedly find the password. here is the actual page. stewie390.info/lvl2/ Similar Tutorialsi take an google suggestions code. view source... i hope that is the best "ajax google suggestions" code created... and try to understand it. someone can help to understand that javascript ? write remarks... formated code file attached + : Link1 First of please bear with me i am beginner. I am trying to validate the form with the code below. What I want is "Only positive whole numbers from 0 to 9 in the username field to be validated". for example 125087 without comas,slashes,floats points etc. I just want positive digits from 0 to 9. can any body help me. I would really appreciate it. Thanks Code: <html> <head> <script type="text/javascript> funtion validateForm() { var x=document.forms["loginForm"]["user"].value if (x==null || x=="") { alert("Username must be filled out"); return false; } } </script> </head> <body> <form action="" name="loginForm" onsubmit="return validateForm()" method="post"> Username:<input type="text" name="user" /> <input type="submit" value="submit" /> </form> </body> </html> New to this stuff. I am using an HV Menu and want to be able to overlap the parent menu over the background image used for the menus. Each menu item has a background image and I would like the menu to open overlapping this image. Not sure how to do this but am pretty sure it is in the menu_com.js file. Thanks for any help.
|