1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

click ads on webpage using a button

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

  1. evilhackerz

    evilhackerz New Member

    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

    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

    plz post full code using given ads script
     

Share This Page