A "panic Button" ?

Discussion in 'JavaScript' started by Giorgi, Sep 19, 2007.

  1. #1
    Hello fellow DPians... :)

    I have seen this on several sites, you click on PANIC BUTTON and site dissappears...

    anyone have seen this script?

    thank you in advance
     
    Giorgi, Sep 19, 2007 IP
  2. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    what do you mean the site "disappears"? as in the window closes? if so, window.close() should do that. if not, maybe you want to give us a link to a sample site that has this "panic" button
     
    phper, Sep 19, 2007 IP
  3. Giorgi

    Giorgi Well-Known Member

    Messages:
    234
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Giorgi, Sep 20, 2007 IP
  4. Diablos

    Diablos Guest

    Messages:
    563
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can actually get hardware for this too, search the gadgets and gizmos sites
     
    Diablos, Sep 20, 2007 IP
  5. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #5
    This is really great.. i think its some kinda code... ;)
     
    pratik, Sep 20, 2007 IP
  6. Pauline

    Pauline Peon

    Messages:
    639
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    neat code.
     
    Pauline, Sep 20, 2007 IP
  7. KatieK

    KatieK Active Member

    Messages:
    116
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Interesting effect. The basic 'hide' effect is done using "div.style.display = 'none';. Then the pink line contains the content of the site, and Google is displayed in an iframe.

    Check out the turnOffNT() function in the source code.
     
    KatieK, Sep 20, 2007 IP
  8. meetgs

    meetgs Active Member

    Messages:
    957
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    70
    #8
    just as katiek said...

    document.getElementById('div_id').style.display = 'none';
     
    meetgs, Sep 21, 2007 IP