1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to find a popup script

Discussion in 'General Programming Chat' started by karibo, Jun 13, 2013.

  1. karibo

    karibo Regular Member

    Joined:
    Jan 30, 2010
    Messages:
    279
    Likes Received:
    340
    Location:
    Top of YOUR girlfriend
    Hello,
    I'm trying to find a pop-up script (for ads)
    I've found some myself but none of them do exactly like I want them to do.
    I want them to be able:
    - Show a popup when you click on the page
    - Only show 1 popup / 24 hours

    If anyone knows where to find it, please reply :)

    Thanks in advance!
    -karibo-
     
  2. Xp3r7

    Xp3r7 Regular Member

    Joined:
    Sep 9, 2011
    Messages:
    286
    Likes Received:
    386
    Occupation:
    Freelancer
    Location:
    In the middle of nowhere
    Use a regular pop-up script and save every visitor's IP in the database, so you'll know if he's visited your site in the last 24 hours.

    Code:
    if ($visited == false)
    {
         echo "Pop-up code here";
    }
    
     
  3. karibo

    karibo Regular Member

    Joined:
    Jan 30, 2010
    Messages:
    279
    Likes Received:
    340
    Location:
    Top of YOUR girlfriend
    I'm not 100% sure what you mean.
    My PHP skills are pretty low.

    -karibo-
     
  4. JohnsonDaniel

    JohnsonDaniel Regular Member

    Joined:
    May 16, 2008
    Messages:
    389
    Likes Received:
    1,385
    Location:
    In a bright place---------------------------------
    Best plan would be to setup OpenX.

    Create your popup, add it as an "ad", belonging to an "advertiser", and then set your display options (once per IP every 24 hours, or whatever).

    The advantage of the above is that, when you want to get more involved in advertising, or rotate your popups or ads, it's a full-blown opensource adserver, sitting there, ready to rock and roll!
     
    • Thanks Thanks x 1
  5. Felicita

    Felicita Registered Member

    Joined:
    Apr 15, 2013
    Messages:
    76
    Likes Received:
    7
    Yeah, it'd better to sign up with some ad server, like OpenX or Epom. onRamp (by OpenX) is closed now, it was free. Epom is free for 2 months trial period
     
  6. CodingSquared

    CodingSquared Newbie

    Joined:
    Jun 14, 2013
    Messages:
    5
    Likes Received:
    0
    This should help:

    w3schools --> JavaScript Popup Boxes, It has a live editor, so you can test out the code.

    Sorry can't post links yet.
     
  7. seoways

    seoways Jr. VIP Jr. VIP Premium Member UnGagged Attendee

    Joined:
    Dec 19, 2009
    Messages:
    4,656
    Likes Received:
    724
    Location:
    Behind you!
    Just try this code to get the popup script

    Code:
     <html><head>
    <script>
    function mypopup()
    {
    alert("Hello! I am an alert box!");
    }
    </script>
    </head>
    <body>
    
    
    <input type="button" onclick="mypopup()" value="Show alert box" />
    
    
    </body>
    </html>