How to annoy a little bit less to our visitors (And still show ads)

Discussion in 'Pay Per Click Advertising' started by AltIvan, Jan 8, 2010.

  1. #1
    How to annoy a little bit less to our visitors (And still show ads); well; making a little option to close; for example if you have a big adsense ad and you want the users to be able to erase the ad, here is the code:


    <script   type="text/javascript">
    function lclean()
    
    {
       document.getElementById("clean").innerHTML="";
       document.getElementById("closebtn").innerHTML="";
    }
    
    </script>
    
    <a  onClick="clean()" id="closebtn">[CLOSE] </a>
    <div id="[B]clean[/B]"></div>
    Code (markup):
    Inside the DIV with ID Clean must be the content to be erased (the ad)

    You can look my example at www.jraw.net (click on any blog entry)
    Easy trick!
     
    Last edited: Jan 8, 2010
    AltIvan, Jan 8, 2010 IP
  2. Mr. M

    Mr. M Peon

    Messages:
    566
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thanks but where will I put the ad code?
     
    Mr. M, Jan 8, 2010 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    Not all networks allow ads to be put in floating banners i guess
     
    Bohra, Jan 8, 2010 IP
  4. Mr. M

    Mr. M Peon

    Messages:
    566
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This code does work on mine... where will i put the ad code?
     
    Mr. M, Jan 9, 2010 IP
  5. AltIvan

    AltIvan Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Example:

    Current Ad code
    [COLOR="DarkOrange"]<div>google_ad_client = "pub-9286332797346108"; 
    /* 728x90, created 12/24/09 */ 
    google_ad_slot = "4731117427";
    google_ad_width = 728; 
    google_ad_height = 90; 
    r</div>[/COLOR]
    Code (markup):
    Modificated version with close button

    <script   type="text/javascript">
    function clean()
    
    {
       document.getElementById("clean").innerHTML="";
       document.getElementById("closebtn").innerHTML="";
    }
    
    </script>
    
    <a  onClick="clean()" id="closebtn">[CLOSE] </a>
    <div id="clean">
    
    [COLOR="DarkOrange"]<div>google_ad_client = "pub-9286332797346108"; 
    /* 728x90, created 12/24/09 */ 
    google_ad_slot = "4731117427";
    google_ad_width = 728; 
    google_ad_height = 90; 
    r</div>[/COLOR]
    
    </div>
    
    Code (markup):
    Simple
     
    AltIvan, Jan 9, 2010 IP
  6. taiko78

    taiko78 Greenhorn

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    Good trick.. Is it legal?? Will google allow it??
     
    taiko78, Jan 9, 2010 IP
  7. AltIvan

    AltIvan Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You are just giving the option to hide it, what could be ilegal about that?
     
    AltIvan, Jan 9, 2010 IP
  8. Mr. M

    Mr. M Peon

    Messages:
    566
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I tried this but it doesnt work on adbrite... The close button is not clickable
     
    Mr. M, Jan 9, 2010 IP
  9. AltIvan

    AltIvan Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Mmmm... it works for me in adsense; and also with an affiliaton script from jlist.com
     
    AltIvan, Jan 9, 2010 IP