467,116 Members | 1,161 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,116 developers. It's quick & easy.


html on wheels
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
  • viewed: 1012
5 Replies
Expert 4TB
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
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 4TB
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
Speaking of nobody "gives a crap", IE works just fine on my computer, thank you.
Mar 2 '08 #5
Expert 4TB
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.

Similar topics

4 posts views Thread by Shane | last post: by
16 posts views Thread by Paul Rubin | last post: by
7 posts views Thread by JellyON | last post: by
reply views Thread by Earl Anderson | last post: by
7 posts views Thread by mistral | last post: by
reply views Thread by Trevor L. | last post: by
12 posts views Thread by devospice | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.