A few Javascript popup box questions

Discussion in 'JavaScript' started by nodnil, Dec 4, 2008.

  1. #1
    Hey,

    This is my site in its current state, not much to look at, but I want this pop up working. The popup opens when the site has been viewed after 5 seconds or so.

    http://nodnil.freehostia.com/SampleCode/Test.html
    Code (markup):
    What I would really like is a lightbox (I think that is what it is called). It is where when the pop up loads, the whole website dims and becomes unusable apart from the pop up.

    Does anyone have any ideas on what I can do to achieve this?

    Thanks, nodnil.
     
    nodnil, Dec 4, 2008 IP
  2. lordofthelake

    lordofthelake Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are a couple of js libraries for achieving this effect. Maybe ThickBox or SimpleModal can work for you? Anyway, on the net there are plenty of these libraries... try to Google "javascript modal dialog" or "lightbox alternative" or like. You'll find lots of this stuff.
     
    lordofthelake, Dec 7, 2008 IP
  3. tobydawson13

    tobydawson13 Active Member

    Messages:
    645
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I reccomend Thickbox :)
     
    tobydawson13, Dec 7, 2008 IP
  4. budster

    budster Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    budster, Dec 9, 2008 IP
  5. blogsabout

    blogsabout Active Member

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    nodnil @

    Do you have the code to that pop up?
    Similar to you I also want to use to to offer a newsletter, so it would be nice if it's dhtml.
    Looks good btw
     
    blogsabout, Dec 30, 2008 IP