Click to See Complete Forum and Search --> : coding problem


metrosoccer12
07-29-2003, 12:23 PM
okay i tryed to use this gatkeeper code and change it to like a redirect thing

this is the part that doesnt work:
password=opener.document.image.hidden.value

i dont know how to do the form value of the opener can anyone help me?

<HTML>
<HEAD>
<TITLE>Gate Keeper</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from tired old browsers that should be put to pasture.

////////////////////////////////////////////////////////////////////
/// 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=opener.document.image.hidden.value
location=password + ".html"
document.location.href = location;

}

// End hiding --->
</SCRIPT>

</HEAD>

<BODY BACKGROUND="keeper.gif">

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD ROWSPAN=2 WIDTH=50%>
&nbsp;&nbsp;

<TD WIDTH=50% ALIGN=CENTER VALIGN=MIDDLE>
<FONT FACE="ARIAL" SIZE=2><B>Hold on there buddy. You'll need a password to get in here. We're tryin' to keep out the riff-raff.</B></FONT><BR>
&nbsp;

<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)">



<!--- You can remove the following link if you want.
I just added it to satisfy my own selfish interests.
Just remove the following line and this comment. --->
<P><FONT SIZE=1 FACE="COMIC SANS MS"><A HREF="http://junior.apk.net/~jbarta/weblinks/gate_keeper/" TARGET="_blank"><B>Gate Keeper</B></A></FONT>



</FORM>
</CENTER>


</TABLE>

</BODY>

</HTML>

Mr J
07-29-2003, 01:27 PM
Try changing the line

password=opener.document.image.hidden.value

to

password=testform.inputbox.value

see if that does it for you