How to make your ads very 'sexy'?! Part 2

Discussion in 'AdSense' started by Net virus, Mar 31, 2008.

  1. #1
    Hello!
    After publishing the first part of this series, I will put the second tip in this series. I hope you like it.


    Example:

    [​IMG]

    It's located at the top of the page. And it gives the ability for the visitor to hide the ads also.

    The code is available here:

    <html>
    <head>
    
    
    <script>
    var dir =   "1";  //  Which direction does window come from (0 for top - 1 for left)
    var delay = "1";  //  How long before window appears (seconds)
    
    
    // published by: scripts.tropicalpcsolutions.com
    // Some cross browser code done by js-x.com
    
    var isDOM=document.getElementById?1:0;
    var isIE=document.all?1:0;
    function showWin(){
    	if(isDOM) {document.getElementById("popup").style.display="";}
    	else if(isIE){popup.style.display = ""; }
    }
    function closeWin(){
    	if(isDOM) {document.getElementById("popup").style.display="none"}
    	else if(isIE){popup.style.display = "none";}
    }
    </script>
    
    
    
    </head>
    <body onLoad="setTimeout('showWin()',delay*1000)">
    
    
    
    
    <script>
    if (navigator.appName=="Microsoft Internet Explorer"){
    	if (dir == "0"){document.write('<div id="loc" style="position:relative; top:-300" align="center">');}
    	if (dir == "1"){document.write('<div id="loc" style="position:relative; left:-300">');}
    }
    else document.write('<div id="loc" style="position:relative" align="center">');
    
    </script>
    <table id="popup" cellSpacing="0" cellPadding="0" border="1" bgcolor="white" style="display:none; border-color:black;" width="300" height="300">
    <tr>
    <td align="left" valign="top" bgcolor="white" width="100%" height="10px">
    <font color=black size=2 face=arial><b>
    <!--################### Your page title goes here  -->
    This website is sponsored by
    </b></font>
    </td>
    <td width="10px" height="10px" bgcolor="blue" align="right">
    <font color="white" size="3" face="arial"><span onclick="closeWin()" style="cursor:hand" title="Click here to close this window"><b>X</b></span></font>
    </td></tr>
    <tr>
    <td colspan="2">
    <font color=black size=2 face=arial><b><center>
    <!--################### Your window content here goes  -->
    
    Adsense code goes here
    
    </center></b></font>
    
    
    <!--################### End content here -->
    </td></tr></table>
    </div>
    <script>
    function slide(dir){
    	if (dir == "1" && loc.style.pixelLeft < (screen.width-300)/2){
    		loc.style.pixelLeft+=5; 
    		move=setTimeout("slide(dir)",50);
            }
    	if (dir == "0" && loc.style.pixelTop < (screen.height-300)/2){
    		loc.style.pixelTop+=5; 
    		move=setTimeout("slide(dir)",50);
            }
    }
    if (navigator.appName=="Microsoft Internet Explorer") slide(dir);
    </script>
    
    Content
    Goes 
    Here
    !
    
    
    </body></html>
    PHP:


    It looks pretty cool. Catch you then, In the third part of this series.

    Thanks
     
    Net virus, Mar 31, 2008 IP
  2. rejv66

    rejv66 Peon

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Simple, Against TOS.
     
    rejv66, Mar 31, 2008 IP
  3. nspstudio

    nspstudio Peon

    Messages:
    203
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you keep posting black hat tips

    just stop... Your helping people get banned I doubt they want that
     
    nspstudio, Mar 31, 2008 IP
  4. rejv66

    rejv66 Peon

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There are not black hat tips. Those are ilegall moves.
     
    rejv66, Mar 31, 2008 IP
  5. Net virus

    Net virus Guest

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't know what to say!
     
    Net virus, Mar 31, 2008 IP
  6. nethelp

    nethelp Peon

    Messages:
    389
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You posted your adsense code, good luck if your account is not reported as SPAM and you will end up banned :p
     
    nethelp, Mar 31, 2008 IP
  7. Net virus

    Net virus Guest

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If it's blackhat tips, Learn it only for educational purposes.!
     
    Net virus, Mar 31, 2008 IP
  8. nspstudio

    nspstudio Peon

    Messages:
    203
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    he did post his code lol :p

    this guy really know what he is talking about :confused:
     
    nspstudio, Mar 31, 2008 IP
  9. Net virus

    Net virus Guest

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    K!
    First,I didn't know that it's illegal to share the adsense code
    Second, I removed it
    Third, Thanks for saying that!
     
    Net virus, Mar 31, 2008 IP
  10. jpl691

    jpl691 Well-Known Member

    Messages:
    348
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    113
    #10
    4th close thread :)
     
    jpl691, Mar 31, 2008 IP