home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Archived / Internet / jvscript116beta / JvScript / !JvScript / Resources / Scripts / Password / 4 < prev   
Encoding:
Text File  |  1999-09-15  |  1.5 KB  |  57 lines

  1. #newformat
  2. _title:Gatekeeper Login
  3. _author:Professional Web Design
  4. _description:This gets the password and opens protected page.  The password is the location + the extention (.htm/.html)
  5.  
  6. _url:Gatekeeper background image (See Xtras)
  7. _message:Message asking for the password
  8.  
  9. _insert-in:inhead
  10. <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
  11. <!-- Begin
  12.  
  13. //  Get your very own Gate Keeper from Professional Web Design  
  14. //  http://junior.apk.net/~jbarta/weblinks/gate_keeper/         
  15.  
  16. function goForit() {
  17. var location;
  18. var password;
  19. password=this.document.testform.inputbox.value
  20. location=password + ".html"
  21. fetch(location)
  22. theKeeper=window.close()
  23. }
  24. function fetch(location) {
  25. var root;
  26. if (opener.closed) {
  27. root=window.open('','theKeepersGopher','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
  28. root.location.href = location;
  29. } else {
  30. opener.location.href = location;
  31.    }
  32. }
  33. // End -->
  34. </SCRIPT>
  35. _end-insert:
  36.  
  37. _insert-in:inbodytag
  38. background="¤url_object$(1)¤"
  39. _end-insert:
  40.  
  41. _insert-in:inbody
  42. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  43. <TR>
  44. <TD ROWSPAN=2 WIDTH=50%>
  45. <TD WIDTH=50% ALIGN=CENTER VALIGN=MIDDLE>
  46. <FONT FACE="ARIAL" SIZE=2><B>¤message_object$(1)¤</B></FONT><BR>
  47. <TR>
  48. <TD WIDTH=50% ALIGN=CENTER VALIGN=BOTTOM>
  49. <CENTER>
  50. <FORM NAME="testform">
  51. <INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>
  52. <INPUT TYPE="button" NAME="button" Value="Submit Password" onClick="goForit(this.form)">
  53. </FORM>
  54. </CENTER>
  55. </TABLE>
  56.  
  57. _end-insert: