View Single Post
Old 06-03-2010, 09:30 AM  
jawanda
Confirmed User
 
Join Date: Feb 2003
Posts: 6,040
Quote:
Originally Posted by BestXXXPorn View Post
in any html element you could add an ajax request for onmouseover and/or onclick... That will fire your tracking script in the same way the flash version does :P
Ok, Found a simple way to do it, still utilizing our hurting text-file-based-tracking

If anyone else is interested, to count Mouse Overs WITHOUT flash, follow the instructions above for creating the php files and text files, but then...

On the page that contains your ad / links, add this javascript above your content:

<script>
function countOver()
//Open your counter in an iframe
{
{
frames[0].location = "count.php";
//if you have more than one frame on your page, this will need to be adjusted to target the new iframe. I'm sure you could target it by name also
}
}
</script>

On the link that you want to track mouseovers for, use this code:

<a href="javascript:void()"onmouseover="countOver()" onClick="location.href='http://www.destinationURL.com'">Your ad or link</a>

Somewhere towards the bottom of your page, create an invisible iframe using code like this:

<iframe width="0" height="0" scrolling="no" frameborder="0"></iframe>

I'm sure that my code is rather shabby again here, but this gets the basic idea working ;)

Last edited by jawanda; 06-03-2010 at 09:31 AM..
jawanda is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote