Unstoppable Domains

How do I make a counter?

Spacemail by SpaceshipSpacemail by Spaceship
Watch

Trickac14

Established Member
Impact
7
I want to make a counter that goes up randomly, not a counter that counts hits to a website just a counter that starts at 1 and then say after 5 seconds goes to 2 and then after 12 seconds goes to 3 and just randomly goes up. Any help is appreciated thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Um, for what language/platform? Is this a website? Is it a .NET application? Windows, Linux? Java? I mean, we need more details...
 
0
•••
Yes that I can put on a website to show users. Its just like the counter that was on the apple homepage that was going up showing how many apps were downloaded until they reached a billion downloads, which was fake. I need one just like that.
 
0
•••
You'll want to use Javascript. Google "Javascript counter" and "javascript random numbers" and you'll come up with a lot. :)
 
0
•••
I've done that but I've yet to find what I need. They are all like date counters and stuff.
 
0
•••
Look into using a Javascript timer to shoot off after a random amount of seconds then increase a number by 1 each time, it's really easy. You may want to use the setTimeout() function. with a random interval. And here's how to generate a random number: Generating a random number in JavaScript

Google won't find exact copy+paste code snippets for you. Sometimes you just have to program a little yourself.
 
0
•••
K I think I got it. Thanks a lot
 
0
•••
deleted by self
 
0
•••
<?php
$counter = rand(1,100000);
echo $counter;
?>

If you want a static counter that is random.
 
Last edited:
0
•••
There are so many free counters are there, that can be installed on each individual pages of the website too, to know the number of visitors in that particular page. Use it with Google analytics too to get very good results.
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back