OnCLICK Popup Creation

Discussion in 'HTML & Website Design' started by Stephen Carr, Sep 23, 2015.

  1. #1
    Does anyone know to create an onClick popup tab for mobile and desktop version of site. Similar to how it works on sites that ur propellerads and when you click somewhere on the page it pops up another tab.

    I want to create this for my own site to be able to put in popup tab ads for users that want to purchase off me. Any plugins or can someone create custom one for me?

    Stephen
     
    Stephen Carr, Sep 23, 2015 IP
  2. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #2
    What kind of popup do you want? a whole new window or just a modal window with ads?
     
    webcosmo, Sep 24, 2015 IP
  3. Stephen Carr

    Stephen Carr Member

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    A new window/tab opened on mobile and on desktop. Ad networks like Propellerads use this type of popup
     
    Stephen Carr, Sep 24, 2015 IP
  4. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #4
    It is quite simple to make that behaviour, on the other hand, source of ads, positioning of popups, and logic for triggering them is making the problem much more complex.
    This is simple:
    function open_window(url) {
    window.open(url, "ADS", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,left=200,top=100,x=10,y=10,width=700,height=550");
    }
    Provide url with some query parameters to load the wanted ad. I hope this was useful.
     
    webcosmo, Sep 24, 2015 IP
  5. Stephen Carr

    Stephen Carr Member

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #5
    How would I for example make the popup tab appear with the ad when a user clicks anywhere on the site and then not appear again for 2 days? Could you code something for me? I can pay
     
    Stephen Carr, Sep 24, 2015 IP