By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,203 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.


html on wheels
P: 35
I built a web site for my father using html and he has repeatedly asked my for a counter so that he will know how many people have visited his site.

Does anyone have any idea where I can get the code for a counter? or if I can even put in a counter considering I am doing the site strictly with html?
Mar 1 '08 #1
Share this Question
Share on Google+
5 Replies

Expert 2.5K+
P: 4,258
If you want to use counters with strictly HTML, it is not possible. That is because you need (a) a file or a db to store the info and the counters and (b) some logic to collect the data, such as (I assume) date/time, ip address, browser, page visited, etc.

Your server provider may keep details on visitors as a service. But if you want to collect, store and display the visitor's data yourself, you have to use some server-side language, like ASP, PHP.

Mar 1 '08 #2

html on wheels
P: 35
I just copied some code and put it on the web site and we have a counter now, but I had to erase a hyperlink (Link to Buy) which was showing up beneath the counter itself.

I just hope the people who view our site aren't going to be antagonized by the website from which I copied the free counter code.
Mar 1 '08 #3

Expert 5K+
P: 7,435
They'll be more antagonized by the counter because nobody cares. Displaying visitor counters is oh so 1990s.
Mar 1 '08 #4

html on wheels
P: 35
Speaking of nobody "gives a crap", IE works just fine on my computer, thank you.
Mar 2 '08 #5

Expert 5K+
P: 7,435
IE works fine on everybody's Windows computer. It just doesn't work fine on the web. It's 10 years behind web standards and is the bain of every web developer's work. Use a modern browser. Don't use IE.
Mar 2 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.