...

View Full Version : onFocus() in Firefox, Opera?



masterjguscius
01-30-2009, 10:27 PM
Hey,

I'm trying to implement google adsense click tracking script, but the problem is that I cannot use onFocus trigger in firefox and opera. Maybe there are any other ways to acomplish this? Right now I'm using onMouseOver in additional div, which isn't what I want...



<script type='text/javascript'>
function logClick() {
window.focus();
bug = new Image();
bug.src = 'trackerScript.php?pg=' + escape(document.title) + '&advertisement=' + escape(window.status);
}
</script>

<div onMouseOver='logClick();' style='width: 468px; height: 60px;'>
<iframe src='googleadsensecode.html' frameborder='0' width='468px' height='60px'>
</iframe>
</div>


I'd like to use something that really triggers script during iframe click...

masterjguscius
02-05-2009, 12:48 PM
Maybe it is possible with addeventlistener or something? because i'm really noobie with event listener creation...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum