Creating popup in center of screen

Discussion in 'JavaScript' started by wvcaudill2, Nov 28, 2009.

  1. #1
    Hello, im trying to make a popup appear in the center of the viewers screen when a button is clicked.

    It works fine so far if you dont scroll down, but if you do, thne the popup stays at the top and you never see it.

    You can see what I mean here: http://www.newtuts.com.
    (You have to click on the little red (!) icon.)

    How can I fix this?
     
    wvcaudill2, Nov 28, 2009 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    you can use jquery for doing this.. it has features to sort out this things very easily..

    use jquery growl library for sorting out this problem.
     
    mastermunj, Nov 29, 2009 IP