Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   click ads on webpage using a button (http://www.go4expert.com/forums/click-ads-webpage-using-button-t17620/)

evilhackerz 20May2009 11:20

click ads on webpage using a button
 
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

shabbir 20May2009 11:37

Re: click ads on webpage using a button
 
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

evilhackerz 20May2009 11:40

Re: click ads on webpage using a button
 
plz post full code using given ads script


All times are GMT +5.5. The time now is 17:33.