Jump to content

click ads on webpage using a button

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
evilhackerz

evilhackerz

    Newbie

  • Members
  • Pip
  • 4 posts
plz tell me that how to open this ads function using a button in new window.

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

Edited by WingedPanther, 20 May 2009 - 07:39 AM.
add code tags (the # button)


#2
hkp

hkp

    Learning Programmer

  • Members
  • PipPipPip
  • 37 posts
You can do that usinging JavaScript....

onclick="javascript:window.close()"

If it is an html button. But, if it's a .Net button Contol, for the code behind in the page_load event....

myButtonName.Attributes("OnClick") = "javascript:window.close();"

#3
evilhackerz

evilhackerz

    Newbie

  • Members
  • Pip
  • 4 posts
plz write full html code with given example (ads acript),bcoz i dont understand.... plzzzz n thank u very much.

#4
evilhackerz

evilhackerz

    Newbie

  • Members
  • Pip
  • 4 posts
Okay .... Plz any programmer help me with full code
with regards:
Admin: Www[dot]evilhackerz[dot]tk

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Probably with the target property.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
It might not be so straightforward, considering the fact that Google generates its advert code dynamically with JavaScript.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums