Counter is an easy to use counter with the flexibility to make both text and images look how you want it to. It keeps track of the number of 'hits' to your web pages.
For installation instructions, please click here.
The page counter is an easy to use counter with the flexibility to make it look how you want, both in text and image formats. There are three files, plus numeral images, that make up the page counter, they are:
Once you have installed the counter through your site manager, you can immediately begin using the counter by placing the appropriate html on the page you want a counter. Below are two samples and their corresponding HTML code.
Image Counter
Appearance: ![]()
![]()
![]()
![]()
Code: <script language="JavaScript" type="text/javascript" src="/cgi-bin/counter/counter.cgi?display=image&page=index.html&style=odometer"> </script>
Text Counter
Appearance: 3736
Code: <script language="JavaScript" type="text/javascript" src="/cgi-bin/counter/counter.cgi?display=text&page=index.html&style=bigblue"> </script>
NOTE: The numbers displayed above are different because the counter loads, updates the stats.dat file, and then loads again. Normally you will not have the counter displayed twice on a single page so this is not a problem.
There are three variables you need to define when you place the link on a page:
Once you have gotten your first hit on your page, you can edit the "stats.dat" file and change the number of digits shown. It will count up from 1 by default, displaying the 1 character first, then 2 as it passes 10, 3 as it passes 100, and so on. By editing the stats.dat, you can both pad your stats by increasing the number shown to what you wish, as well as add 0's (zero's) to the beginning to change how many digits are shown.
If you don't like the default styles available to you, you can add as many as you want to the config.txt file. Having multiple styles available also means that you can display your counter differently on different pages.
To add a new image style, edit the config.txt file and enter two lines:
Sample Image Style:
![]()
![]()
![]()
![]()
[odometer]
odometer.gif
To add a new text style, edit the config.txt file and enter two lines:
Sample Text Style:
3736
[bigblue]
<span style="color:#0C2D82;font:15px Verdana, Geneva, Arial, Helvetica, sans-serif;">COUNTER</span>