pop up..

Discussion in 'JavaScript' started by yuri1992, Apr 9, 2008.

  1. #1
    hello
    i tired to do popup that will open on size 700,350 with scroll only to up and down ?

    how i do that ?
     
    yuri1992, Apr 9, 2008 IP
  2. ramadivi

    ramadivi Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can try out this code:

    <a href="#" onClick="window.open ('terms.php', 'newwindow', config='height=500, width=400, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no')">[Read the terms and conditions]</a>

    terms.php file will not contain any code except the php tags and text to display in the pop up window.

    Good luck.

    Ram
     
    ramadivi, Apr 10, 2008 IP
  3. temp2

    temp2 Well-Known Member

    Messages:
    1,231
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    2
    #3
    temp2, Apr 11, 2008 IP
  4. budster

    budster Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi Yuri

    If you did want to consider CSS popups, take a look at
    http://www.astral-consultancy.co.uk/cgi-bin/hunbug/doco.cgi?11540

    Hope this helps
     
    budster, Apr 15, 2008 IP
  5. nullptr

    nullptr Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That was a great like.. I loved it. That is the perfect kind of pop-up i want to create..

    I wonder do you think I can put a timer on it to make it come up ever 15 seconds?
     
    nullptr, Apr 15, 2008 IP
  6. budster

    budster Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi Nullptr, If you want to call the procedure that opens the pop-up every 15 seconds, you can call it using the setInterval function. This continuely repeats the call to the function after the duration you specify.
    Hope this helps.
     
    budster, Apr 16, 2008 IP