whet code i use for this my admob ads open when user click on my link

Discussion in 'PHP' started by frost46, Jun 6, 2010.

  1. #1
    hi friends can you tel me what code i add in my php site


    when user open ny link in my site like

    dwnload file here

    then my admobs ads pop-up open automatic


    plz help me !
     
    frost46, Jun 6, 2010 IP
  2. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #2
    put in your link a javascript function like
    
    <a href="link" onclick="somefunc();">download file here</a>
    
    or jquery:
    
    <a href="link" onclick="somefunc();" class="dl">download file here</a>
    
    $("a.dl").click(function() {
       somefunc() ;
    });
    function somefunc() {
     // some interesting code here...
    }
    
    Code (markup):
     
    gapz101, Jun 6, 2010 IP