NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page How do I make a counter?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Reply
 
LinkBack Thread Tools
Old 05-23-2009, 12:58 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
Trickac14's Avatar
Join Date: Feb 2008
Location: TEXAS
Posts: 462
Trickac14 will become famous soon enoughTrickac14 will become famous soon enough
 



How do I make a counter?


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.
Trickac14 is offline   Reply With Quote
Old 05-23-2009, 01:50 PM   #2 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Um, for what language/platform? Is this a website? Is it a .NET application? Windows, Linux? Java? I mean, we need more details...
mholt is offline   Reply With Quote
Old 05-23-2009, 01:52 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
Trickac14's Avatar
Join Date: Feb 2008
Location: TEXAS
Posts: 462
Trickac14 will become famous soon enoughTrickac14 will become famous soon enough
 



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.
Trickac14 is offline   Reply With Quote
Old 05-23-2009, 02:13 PM   #4 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
You'll want to use Javascript. Google "Javascript counter" and "javascript random numbers" and you'll come up with a lot.
mholt is offline   Reply With Quote
Old 05-23-2009, 03:42 PM THREAD STARTER               #5 (permalink)
NamePros Regular
 
Trickac14's Avatar
Join Date: Feb 2008
Location: TEXAS
Posts: 462
Trickac14 will become famous soon enoughTrickac14 will become famous soon enough
 



I've done that but I've yet to find what I need. They are all like date counters and stuff.
Trickac14 is offline   Reply With Quote
Old 05-23-2009, 05:00 PM   #6 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
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.
mholt is offline   Reply With Quote
Old 05-23-2009, 05:31 PM THREAD STARTER               #7 (permalink)
NamePros Regular
 
Trickac14's Avatar
Join Date: Feb 2008
Location: TEXAS
Posts: 462
Trickac14 will become famous soon enoughTrickac14 will become famous soon enough
 



K I think I got it. Thanks a lot
Trickac14 is offline   Reply With Quote
Old 06-04-2009, 12:38 AM   #8 (permalink)
Account Closed
Join Date: Dec 2008
Location: Boston, Ma
Posts: 650
CrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to all
 



Marrow Donor Program Animal Rescue Autism Autism
deleted by self
CrackFeed.Com is offline   Reply With Quote
Old 06-07-2009, 01:36 AM   #9 (permalink)
I'll do it
 
-Nick-'s Avatar
Join Date: Dec 2005
Location: India
Posts: 6,927
-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness
 


Member of the Month
September 2007
Adoption
<?php
$counter = rand(1,100000);
echo $counter;
?>

If you want a static counter that is random.
Last edited by -Nick-; 06-07-2009 at 01:48 AM.
-Nick- is offline   Reply With Quote
Old 06-11-2009, 06:44 PM   #10 (permalink)
Account Closed
Join Date: Jun 2009
Posts: 6
ADAIR is an unknown quantity at this point
 



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.
ADAIR is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Poker domain. With 44 other extensions taken. Any value? yapzhanyang Domain Appraisals 2 06-27-2008 04:14 AM
636 .tv's - Looking for offers, trades, & deals RPK .TV Marketplace 171 01-02-2008 12:29 AM
25 New Mobi Names vikrantjain22 Dot MOBI 9 04-14-2007 05:34 AM
One and Two Word .us/.cc Domains (and a few others) Brad|E ccTLD Domains For Sale 4 03-26-2007 09:02 AM
Big sale of .info & .biz one-word domains.Bulk discounts bruno Domains For Sale - Make Offer 0 06-03-2003 02:47 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 03:06 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger