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...
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...