Results 1 to 2 of 2

Thread: Script for Password Prompt on Hotspot

  1. #1
    Join Date
    Feb 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Script for Password Prompt on Hotspot

    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.

  2. #2
    Join Date
    Jan 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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:

    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>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •