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

Floating banner that shows once per visitor

Discussion in 'White Hat SEO' started by bigvito21, Nov 13, 2011.

  1. bigvito21

    bigvito21 BANNED BANNED

    Joined:
    Jun 17, 2011
    Messages:
    272
    Likes Received:
    8
    I have this floating banner code and I want to show it once per visitor. How could I have it to show once per visitor?





    <style>
    #floating_banner_bottom {
    text-align: left;
    width: 00%;
    bottom: 00px;
    margin-bottom: 0px;
    height: 50px;
    position: fixed;
    z-index: 50;
    left: 0px;
    </style>


    <div id="floating_banner_bottom">
    <!-- Button to Close Banner -->



    <a style="display:scroll;position:fixed;bottom:50px;left:0px">

    banner code

    <br />

    <div class="close">
    <a href="#" onclick="document.getElementById('floating_banner_bottom').style.display='none';return false;">


    <i style="font-family: Georgia,"Times New Roman",serif;"><span style="background-color: #999999; color: white; font-size: small;"></span></i>

    <center>
    <img border="0" width="20" height="20" src="http://lh5.ggpht.com/_9vgJ1nwu_xA/S1jSp2ZhA7I/AAAAAAAAB8A/2AEBd4mR9qA/x.png" />
    </center>
    </a>
    </div>

    <a/>
    </a></a></div>
    <!-- End Here -->
     
  2. the_demon

    the_demon Jr. Executive VIP

    Joined:
    Nov 23, 2008
    Messages:
    3,177
    Likes Received:
    1,563
    Occupation:
    Search Engine Marketing
    Location:
    The Internet
    Code:
    <?php
    # 24 hour cookie
    if (isset($_COOKIE["ad_shown"]))
      echo ""; //do nothing
    else
      echo "YOUR HTML AD CODE HERE";
    $expire=time()+60*60*24*1;
    setcookie("ad_shown", "1", $expire);
    ?>
    
     
    • Thanks Thanks x 2
    Last edited: Nov 13, 2011
  3. bigvito21

    bigvito21 BANNED BANNED

    Joined:
    Jun 17, 2011
    Messages:
    272
    Likes Received:
    8
    How could I use for html for blogger?
     
  4. bigvito21

    bigvito21 BANNED BANNED

    Joined:
    Jun 17, 2011
    Messages:
    272
    Likes Received:
    8


    How would I imply that inside the code?