Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    2,280
    Tokens
    1,075

    Latest Awards:

    Default Password Protect

    basically i need a javascript password protection area. All i want is a pasword box which will, when the correct password is inputed, redirect to another page.

    Before you all go on i know its a rubbish way of protecting somthing but it's just for a harmless bit of fun!

    Thanks.

    http://www.stupidian.com
    (contains mild swearing)

  2. #2
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    This is nice and easy just change the user name a password and is pretty effective!
    <script language="JavaScript">
    <!--

    var username = prompt("Enter Username In the Box Below","")
    var password = prompt("Enter Password In the Box Below","")

    if (username !="<!--Username HERE-->" || password !="<!--Password Here-->")

    { top.location="about:Bad Username and/or Password" }
    //-->
    </script>


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  3. #3
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    2,280
    Tokens
    1,075

    Latest Awards:

    Default

    thanks, thats i big help...i think lemmi test it out!

    [EDIT] - I need it so that it's only a text box...
    Last edited by -JT-; 22-02-2005 at 10:09 PM.

    http://www.stupidian.com
    (contains mild swearing)

  4. #4
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,119
    Tokens
    1,371

    Latest Awards:

    Default

    You can get one at Bravenet!


  5. #5
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by <James>
    thanks, thats i big help...i think lemmi test it out!

    [EDIT] - I need it so that it's only a text box...
    text box on the page?

    heres on of htmlgoodies

    http://www.htmlgoodies.com/JSBook/pw33.html


    (i think u have to login to get the script )

  6. #6
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,119
    Tokens
    1,371

    Latest Awards:

    Default

    Good job mentor!
    *applause*


  7. #7
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    2,280
    Tokens
    1,075

    Latest Awards:

    Default

    thanks, i will try and adapts that one but what i need is JUST a password box so as people can type an answer to a question in it.

    http://www.stupidian.com
    (contains mild swearing)

Posting Permissions

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