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

click ads on webpage using a button

Discussion in 'Web Design, HTML And CSS' started by evilhackerz, May 20, 2009.

  1. evilhackerz

    evilhackerz New Member

    Joined:
    May 20, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    plz tell me that how to open this ads function using a button in new window.

    Code:

    Code:
    function ads()
    {
    <script type="text/javascript"><!--
    google_ad_client = "pub-6044026340890176";
    /* 468x60, created 3/17/08 */
    google_ad_slot = "3105157606";
    google_ad_width = 468;
    google_ad_height = 60;
    //-->
    </script>
    <script type="text/javascript"
    src="(URL address blocked: See forum rules)">
    </script>
    }
    
    <input type="button" value="Show Me" onClick="ads()" >
    I DON'T WANNA PUBLISH ADS ON NEW PAGE,I WANT CLICK ON AD WITH BUTTON...PLZ HELP

    plz mail me the solution : evil.hackerz.999[at]gmail[dot]com
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    The way it should be done is have them as an invisible div and on the click of a button make them visible or second option is to use the innerHTML of the div to be injected with the code
     
  3. evilhackerz

    evilhackerz New Member

    Joined:
    May 20, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    plz post full code using given ads script
     

Share This Page