home *** CD-ROM | disk | FTP | other *** search
- <ccResource>
- <ccTitle>
- Site Password
- </ccTitle>
- <ccCategory>
- Browser
- </ccCategory>
- <ccDescription>
- A simple login and password script
- </ccDescription>
- <ccInstructions>
- The code goes only inside the BODY tags. You can change the items below to suit your needs.
- </ccInstructions>
- <ccHeadContent>
-
- </ccHeadContent>
- <ccBodyContent>
-
- <script language="javascript">
- <!--//
- /*This Script allows people to enter by using a form that asks for a
- UserID and Password*/
- function pasuser(form) {
- if (form.id.value=="JavaScript") {
- if (form.pass.value=="Kit") {
- location="page2.html"
- } else {
- alert("Invalid Password")
- }
- } else { alert("Invalid UserID")
- }
- }
- //-->
- </script>
-
- <center>
- <table bgcolor="white" cellpadding="12" border="1">
- <tr><td colspan="2"><center><h1><i><b>Login
- Area</b></i></h1></center></td></tr>
- <tr><td><h1><i><b>UserID:</b></i></h1></td><td><form name="login"><input
- name="id" type="text"></td></tr>
- <tr><td><h1><i><b>Password:</b></i></h1></td><td><input name="pass"
- type="password"></td></tr>
- <tr><td><center><input type="button" value="Login"
- onClick="pasuser(this.form)"></center></td><td><center><br><input
- type="Reset"></form></td></tr></table></center>
-
- </ccBodyContent>
- <ccElementContent>
-
- <ccElementName></ccElementName>
- <ccElementAction></ccElementAction>
-
- </ccElementContent>
- <ccExtraData>
-
- </ccExtraData>
- </ccResource>
-