I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« on: Nov 21, 2005, 10:25:39 PM »
Hi all,
I've just found this forum, and till now it's the only one (that I have found) with a Chitika 'group' in it.
Anyway.. I've been with Chitika for about 2 months now, and I must say that till now I'm happy with it. (I'm doing about 60.000 unique impressions per day)
On some of my sites I also have Adsense, and with it I have a small 'click' tracking script (no I did not modify the Adsense code) The script looks like this:
Code:
<script type="text/javascript"><!-- function hit() { window.focus(); if (window.status){ img = new Image(); img.src = 'log.cfm?ref=' + escape(document.location) + '&link=' + escape(window.status); }; }; document.getElementById("google_ads_frame").onfocus = hit; //--></script>
(note that this is only a small part of the code. The log.cfm does the rest.)
If I look at the mm.js code from Chitika, it looks like it does 'onfocus' on 'ch_ad', so I changed the: document.getElementById("google_ads_frame").onfocus = hit;
to
document.getElementById("ch_ad").onfocus = hit;
Guess what.. It does not work :-( Error I get is a: Error: 'document.getElementById(...)' is null or not an object
Are there any good 'javascript' coders here who can maybe help me with this problem?
Thank you...
« Last Edit: Nov 21, 2005, 10:34:41 PM by wifi »
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7942
40601 credits Members referred : 3
« Reply #1 on: Nov 22, 2005, 09:19:55 AM »
First of all welcome to our small community
Javascript is not an area that I am good, but I think that the phpAdsNew script can handle chitika ads (it has a javascript that do the same thing that your script does).
Propably you should take it from there.
Or maybe put your ad into a <div> and call the function for the click in the div. This could propably work.
Javascript is not an area that I am good, but I think that the phpAdsNew script can handle chitika ads (it has a javascript that do the same thing that your script does).
Propably you should take it from there.
Or maybe put your ad into a <div> and call the function for the click in the div. This could propably work.
Hope I might helped you
Hi Nikolas,
Thank you for the welcome. You will be seeing me more here :-)
re: phpAdsNew script. Nice script.. I did not know about this one. I'm going to give it a go later today.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7942
40601 credits Members referred : 3
« Reply #3 on: Nov 22, 2005, 10:44:26 AM »
It is a very good one.
I use it for all my sites(except this). It needs some time to learn how to use it (as everything else does) but it worths it.