0

I'm a publisher for an ad network I would like to know if it's possible to make the iframe clickable trough an image, so when some one click on it, the link that the ad network put on the iframe show up like a pop-under, like if some one has clicked on it... I tried with: <span></span> or <div></div> but the image is not clickable...

Kevin
  • 3
  • 5

1 Answers1

0

ya, check out the jquery .click() method.

it would look something like this.

$('img').click(function(){

    $('div.link').show();

};

basically, your applying the click "event handler" to a part of your document, and then triggering a function to occur when it is clicked.

good luck

api.jquery.com - a link for further research.

OneChillDude
  • 7,856
  • 10
  • 40
  • 79
  • I'm completly newbie, so please do you mind to reexplain it, So this the iframe `` so where should I place it in your code, where should I place the image link and what should I do to make it show up like a pop-under when someone click on my page? Also i'm running a blog so I can only use HTML and CSS @bwheeler96 @imakeitpretty – Kevin Jul 19 '12 at 23:22