PDA

View Full Version : Script for Password Prompt on Hotspot



dmweber
02-06-2005, 02:29 AM
Hi All,

I have an image that is located on the index page. On this image I've
created a hotspot called registration, this hotspot is linked to
another page that contains a registration form. My client wants the
user to be prompted for a password when they click on the hotspot
before they are taken to the registration form. Is there a script a way to
have a password prompt pop up when a user clicks on the hotspot?

Is there a script that I can use to do this? I'm using FrontPage 2002, if that makes any difference.

Thank you.

FPit
02-06-2005, 12:54 PM
Adding password field directly on the top of the registration form will probably be more efficient. This way you can validate the whole form (together with password) at one go.
You may also use JS prompt, similar to this code:


<SCRIPT language="JavaScript">
<!--hide
var yourname= prompt('Please enter your name, so you can get a special greeting', ' ');
if ( (yourname==' ') || (yourname==null) )
{
yourname="Dude";
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT language="JavaScript">
<!--hide
document.write("<CENTER><H1>Hello, " + yourname + " ! Welcome to My Page! <\/H1><\/CENTER>");
//-->
</SCRIPT>
</BODY>