click ads on webpage using a button

evilhackerz's Avatar
Newbie 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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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
0
evilhackerz's Avatar
Newbie Member
plz post full code using given ads script