Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Javasript show/hide with password

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37308
    Al3ks
    Participant

    Hi everyone,

    I have a basic java script code to show and hide a div element. What I want to do is to make the element hide only when a password is entered.

    Here’s what I am aiming to do: Basically I want to cover my website with a div element 100% width and height, with a message saying the website is in development. And I want to set a pass code which can be entered to hide the div element and be able to use the website.

    Ok, so the code I have is:

    Click here

    Now you see me


    From: http://www.javascriptkit.com/javatutors/dom3.shtml

    I’d be grateful if anyone can help me.
    Thanks
    Aleksander

    #99808
    Al3ks
    Participant

    >>Besides, JS could be off in the browser and it wouldn’t work. <<
    true, forgot about that.

    I’m not very good in php, how to use the isset function?

    #99864
    Al3ks
    Participant

    Ok, thanks will try this AJAX and PHP method. If I’m lost or confused I’ll come back here…lol

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.