View Full Version : How can i make a Counter in Java Script?
DJAISI
03-08-2004, 04:48 PM
How can i make a Counter in Java Script?
But i need a counter who uses the minimal resurces!
Thx!
Nightfire
03-08-2004, 04:58 PM
You can't do one with javascript. You need a serverside language.
weronpc
03-08-2004, 05:01 PM
wrong language you are trying to use for counter. Try use php, jsp, or asp because they are server side language. JavaScript is client side.
I use php, just create a cookie when visitor visit you site, use cookie as a flag.
If visitor contains your counter cookie, then do nothing
If user doesn't contain your counter cookie, then add 1 to your counter and create a cookie.
I don't think you can use JavaScript to do counter, but not 100% sure.
sad69
03-09-2004, 01:25 AM
Before we bash DJAISI for wanting to use Javascript, first we should find out is wanting to be counted!
So, DJAISI, what are you trying to count?
Sadiq.
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.