Page 1 of 1

showing total amount of clicks

Posted: Fri Apr 08, 2005 5:13 pm
by Herman
is there a way I can show the total amount of clicks on one of my pages?

I got a games site and I want to show my visitors how many games have been played all together.

Posted: Fri Apr 08, 2005 6:32 pm
by Klemen
Hi,

Try using this file:
http://www.phpjunkyard.com/extras/total_clicks.zip


USAGE:

Add this code where you want the total to be displayed (change the URL to your total_clicks.php url!):

Code: Select all

<script language="javascript" src="http://www.yourdomain.com/ccount/total_clicks.php"><!--
//-->
</script>
Regards

Posted: Sat Apr 09, 2005 1:48 pm
by Herman
sweet that works :D

thanks a lot :D great script btw :)

Posted: Mon Feb 04, 2008 12:30 am
by dg-zg
Well, it is not working with 1.2

Any help ?

Regards,

DG

Posted: Mon Feb 04, 2008 12:47 am
by dg-zg
But this does.
<script language="Javascript">
var all = ccount_link[1]+ccount_link[2]+ccount_link[3];
document.write(all);
</script>

Posted: Mon Feb 04, 2008 7:09 pm
by Klemen
Yeh, the code has changed a bit since 1.1. I've updated the download file, should work now:
http://www.phpjunkyard.com/extras/total_clicks.zip