home *** CD-ROM | disk | FTP | other *** search
- #newformat
- _title:Gatekeeper Login
- _author:Professional Web Design
- _description:This gets the password and opens protected page. The password is the location + the extention (.htm/.html)
-
- _url:Gatekeeper background image (See Xtras)
- _message:Message asking for the password
-
- _insert-in:inhead
- <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
- <!-- Begin
-
- // Get your very own Gate Keeper from Professional Web Design
- // http://junior.apk.net/~jbarta/weblinks/gate_keeper/
-
- function goForit() {
- var location;
- var password;
- password=this.document.testform.inputbox.value
- location=password + ".html"
- fetch(location)
- theKeeper=window.close()
- }
- function fetch(location) {
- var root;
- if (opener.closed) {
- root=window.open('','theKeepersGopher','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
- root.location.href = location;
- } else {
- opener.location.href = location;
- }
- }
- // End -->
- </SCRIPT>
- _end-insert:
-
- _insert-in:inbodytag
- background="¤url_object$(1)¤"
- _end-insert:
-
- _insert-in:inbody
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR>
- <TD ROWSPAN=2 WIDTH=50%>
- <TD WIDTH=50% ALIGN=CENTER VALIGN=MIDDLE>
- <FONT FACE="ARIAL" SIZE=2><B>¤message_object$(1)¤</B></FONT><BR>
- <TR>
- <TD WIDTH=50% ALIGN=CENTER VALIGN=BOTTOM>
- <CENTER>
- <FORM NAME="testform">
- <INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>
- <INPUT TYPE="button" NAME="button" Value="Submit Password" onClick="goForit(this.form)">
- </FORM>
- </CENTER>
- </TABLE>
-
- _end-insert: