popup box when open page

Discussion in 'Programming' started by fgsg, Sep 22, 2011.

  1. #1
    fgsg, Sep 22, 2011 IP
  2. SEOPACK

    SEOPACK Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ok i have the code but i think posting codes is against DP TOS, so you can PM me i will mail u this code...
     
    SEOPACK, Sep 22, 2011 IP
  3. toymaker

    toymaker Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try something like,

     
    toymaker, Sep 22, 2011 IP
  4. fgsg

    fgsg Well-Known Member

    Messages:
    275
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    where i need add this ?
     
    fgsg, Sep 23, 2011 IP
  5. KsNitro

    KsNitro Greenhorn

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #5
    There is a line that looks like this from the link you provided:

    $("#button").click(function()

    This makes it so when you click the button your popup happens. Remove the click event code so that your centerPopUp and loadPopUp functions execute without waiting for a button click. Just remove the button click code above and its corresponding braces. This should all appear inside your $(document).ready function.

    Also, is it against the TOS to post code here? I assumed it was ok to post code.
     
    KsNitro, Sep 23, 2011 IP
  6. fgsg

    fgsg Well-Known Member

    Messages:
    275
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #6
    work thx but i cant add javascript code there when i add then i cant open popup ?
     
    fgsg, Sep 24, 2011 IP
  7. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #7
    You can add Javascript code anywhere on a page.
     
    Rukbat, Sep 25, 2011 IP