Adding a Hit Counter to Your Web Page

The counter files are stored in a private CGI directory - /scripts/counter. These files include:
count.exe  the counter executable
count.cfg  the counter configuration file
/digits/A/*.gif  below the counter CGI directory is a subdirectory named digits. Below this directory are several subdirectories named A,B etc. each containing a different digit style held within each directory
To use count.exe call it in your HTML code as such:
<img src="/scripts/counter/count.exe?arg1=value1|arg2=value2|...|argn=valuen">
where the arguments are:

Argument Possible Values Meaning
df anything that doesn't contain a space Uniquely identifies the data file used to store the count. This is file must be unique, and is created if it doesn't already exist. See examples below.
md 5,6,7,8,9 or 10 The maximum number of digits in the resulting image . Extra zeros will be added to the beginning. If the width is too short for the number to be displayed, it is lengthened so that all digits may be displayed. Default is 6.
dd any directory name under the /digits directory, for example, A, or B. Should not contain spaces Specifies the set of digits to use in constructing the final image, or specifes the use of the simple style
comma The valid values for the Boolean parameter are Y, N, T, F, 1, or 0 If comma=True, a comman is inserted at the thousands digit. The default is False, also reduces the number of displayed digits to the size of the count.
frgb RRGGBB where hexadecimal digits 0..9, A..F are used. Colour names are also accepted, eg. red or green. Specifies a frame colour in RGB components, in a fashion similar to the HTML command :-
<BODY BGCOLOR="RRGGBB">
sh The valid values for this Boolean parameter are Y, N, T, F, 1, or 0 Used to turn display of digits on or off according to
the Boolean B. When
sh=T, counter will be displayed and incremented, this is the default behavior.

If sh=F no digits will show, but the counter will still
increment; instead of digits a transparent 1x1 GIF is
displayed.

ft numerical from zero Frame Thickness
You can wrap the counter in an ornamental frame of X pixels thick. Use 0 for no frame. Values over 5 make a nice 3-D effect.
incr The valid values for this Boolean parameter are Y, N, T, F, 1, or 0 Makes it possible to display the current count without incrementing the count. This can be used to examine the count for reporting or other purposes without adding to the count. Valid values for the Boolean parameter are Y, N, T, F, 1, or 0.

Examples

Here are some examples using the counter. You can use them by cutting and pasting the sample source lines into your own pages, but remember to change the data file name (df=).

<img src="/scripts/counter/Count.exe?df=examples.dat">

<img src="/scripts/counter/Count.exe?df=examples.dat|md=7|dd=B|incr=F">

<img src="/scripts/counter/Count.exe?df=examples.dat|dd=C|md=7|incr=F">

<img src="/scripts/counter/count.exe?df=examples.dat|dd=A|frgb=FF0000|incr=F">



Troubleshooting

Q: I get the broken-image symbol.
A: You most likely mistyped something in your HTML: check your code to confirm the correct name and path to the image.
 
Q: How can I keep track of hits without having a visible counter?
A: Not sure why people want to do this, but anyway: In your <img src="...">, put sh=F. If sh=F no digits will show, but the counter will still increment; instead of digits a transparent 1x1 GIF is displayed. You would then have to set up another page where you could view the count for each page that you have (invisble) counters on. These counters (on that extra page) would use the incr=F parameter (so that you don't increment the counters while checking them).
 
Q: How accurate is the counter?
A: The counter increments everytime it is loaded. It is not loaded when:
  • People with non-graphical browsers see your page.
  • People are not autoloading images
  • People hit "Stop" before it gets loaded.
  • People look at your page with certain browsers that do not like .exe files in img tags.

Q: What styles are available to me?
A: Check the list below. These are some of the styles which are contained within the digits/ subdirectories.

Style Name Example Counter
A
B
C
D
E
F
G
H
I