Warning Script - Similar to Adult Warning Scripts

Discussion in 'HTML & Website Design' started by AskTheTrainer, Sep 1, 2009.

  1. #1
    Hello,

    I need a script which will pop up a Warning in the middle of the screen and ask yes or no to proceed or not

    I want it exactly like the one on this site NSFW ww.Videobox.com for the first time visitors and after it doens't pop up any more

    Links please.. JS right?
     
    Last edited: Sep 1, 2009
    AskTheTrainer, Sep 1, 2009 IP
  2. Exa

    Exa Active Member

    Messages:
    471
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    85
    #2
    Google 'lightbox' or something similar.

    Then use cookies to store visitor information so it doesn't show up on their next visit.
     
    Exa, Sep 1, 2009 IP
  3. AdscendJeremy

    AdscendJeremy Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You'll need to set a cookie for it to not display more than once.
    You might take Exa's advice on using Lightbox as a base, if you know Javascript well.
    Essentially you just need to have a layer with 100% width/height (take Lightbox's GetPageSize functions) and a display:none attribute. Check for the cookie and if it's not there, set display:block. Include an Agree link that drops the cookie and sets display:none again.
     
    AdscendJeremy, Sep 2, 2009 IP