This is a simple text-based visitor counter. It uses the IIS PageCounter object and only shows the total (non-unique) number of hits. This is as easy as it gets: copy-paste 3 lines of code into your page and you're done.
This example is a simple text based counter that will only show page views, not actual visitors. It uses the File Scripting Object to interact with a text file. It first reads the current number in the file and adds one to it, then displays it as text on the page.
By implementing this code on your site, you can display the number of visitors that are currently browsing your site. It increments a counter every time that a unique session begins on your site and decrements a counter every time that a session ends.
This tutorial and free script download guide you line by line through the process of making a hit counter for your web site. Also download the code and tutorial with each line code commented with pre made counter images.
Counting how many users you currently have viewing your website is a neat thing to add to your site and it's simple. In order to create this script, you must learn about session, application objects and the global.asa file.
With this script, you can retrieve the users screen resolution and color depth. It writes the screen info and the usual visitors' info to an access database. The script only counts unique users.
This example is a simple counter using graphics to display the numbers that will only show page views, not actual visitors. It uses the File Scripting Object to interact with a text file.