469,627 Members | 953 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,627 developers. It's quick & easy.

password simple fix help

I know that this is going to be so simple to fix, but I have been pulling my
hair out trying to see the forest through the trees......

What I want to do is change the onMouseOver so that when you click on
'ENTER', it goes to the gatekeeper, not just by running the mouse over it.

Thanks,
<HEAD>
<!-- Begin
var nifty_little_window = null;
function gateKeeper() {
nifty_little_window = window.open('gatekeep.html', 'theKeeper',
'width=350,height=200,resizable=1');
}
// End -->
</SCRIPT>
</HEAD>

<body>
<td width="70">
<p align="center"><A HREF="" onMouseOver="gateKeeper()"
class="navgreen">ENTER</A></td>

</body>

Nov 13 '06 #1
3 1291
prophet said the following on 11/13/2006 5:22 PM:
I know that this is going to be so simple to fix, but I have been pulling my
hair out trying to see the forest through the trees......
Would the forest be starting a new thread to ask the same question
again? I answered your question in the other thread.
What I want to do is change the onMouseOver so that when you click on
'ENTER', it goes to the gatekeeper, not just by running the mouse over it.
Change it from onmouseover to onclick="gateKeeper();return false"

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 13 '06 #2

"Randy Webb" <Hi************@aol.comwrote in message
news:xP********************@telcove.net...
prophet said the following on 11/13/2006 5:22 PM:
>I know that this is going to be so simple to fix, but I have been pulling
my
hair out trying to see the forest through the trees......

Would the forest be starting a new thread to ask the same question again?
I answered your question in the other thread.
>What I want to do is change the onMouseOver so that when you click on
'ENTER', it goes to the gatekeeper, not just by running the mouse over
it.

Change it from onmouseover to onclick="gateKeeper();return false"

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/
Thank you - yes I did change threads as I thought I would get an answer as I
find sometimes people ignore some of the older threads.

Thanks again as you helped greatly!!!


Nov 14 '06 #3
so hopefully only one more question about this.....

so i have a webpage using frames. I have a header and a colum down the
left, and the main body (all of which have different htmls but are brought
together under index.html.
From the header frame i have a list of different options which when clicked
change the the body of the page, leaving the header page the same. I have
added a page which uses a 'gatekeeper' to loosly password protect one of the
pages to be displayed in the main body. The only problem is that with the
current code it is not the body that changes, but rather the header.

How can i adjust this???

Attatched 1st is what sends it to the gatekeeper, second is the 'gatekeeper'
code

Any advice?

1.

<HEAD>
<!-- Begin
var nifty_little_window = null;
function gateKeeper() {
nifty_little_window = window.open('gatekeep.html', 'theKeeper',
'width=350,height=200,resizable=1');
}
// End -->
</SCRIPT>
</HEAD>

<body>
<td width="70">
<p align="center"><A HREF="" onMouseOver="gateKeeper()"
class="navgreen">ENTER</A></td>

</body>

2.

<HEAD>

<base target="index">

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

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=ye s,location=yes,status=yes,menubar=yes,scrollbars=y es,resizable=yes,copyhistory=no');
root.location.href = location;
} else {
opener.location.href = location;
}
}
// End -->
</SCRIPT>

<BODY onLoad="top.window.focus()" BACKGROUND="images/background.jpg">
<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>For Members only.<br>
Please enter the password.<br>
</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)">
<P></FONT>
</FORM>
</CENTER>
</TABLE>
Nov 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by arktikturtle | last post: by
7 posts views Thread by Mike | last post: by
2 posts views Thread by Marek Szarafiński junior | last post: by
10 posts views Thread by Fred | last post: by
3 posts views Thread by TylerB | last post: by
reply views Thread by Adam Carpenter | last post: by
1 post views Thread by Newbie! | last post: by
1 post views Thread by dan.cawthorne | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.