Adding a Hit Counter to your Web Page
Adding a hit counter to your web page is done using the HTML IMG tag. Instead of pointing the IMG tag to a gif or jpg file
it is pointed to count.exe. The count.exe program is stored under a virtual directory called "/scripts/counter".
The counter display can be customised by adding a list of arguments at the end of IMg string. For example:-
<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 True, a comma 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, 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 and 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. |
Problems with the Digital Clock Program
If you see the standard broken-image icon where the clock should be, you have probably mis-typed your HTML code.
If your browser asks you to configure a viewer for application/octet-stream, asks you if you want to save clock.exe,
says the server is misconfigured or issues any other error message then contact us at support@xhost.co.uk.
Frequently Asked Questions
Q. How can I keep track of hits without having a visible counter?
A. Set the "sh" parameter to "F" (i.e. sh=F). This will result in no digits being shown, but the counter will still
increment; instead of digits a transparent 1x1 GIF is displayed. You can create a web page to view the invisible counter's value.
This page should should use the same parameters the invisible counter, but without the "sh=F" parameter with the "incr" parameter
set to "F" (i.e. incr=F), so that the counter value is not incremented again while you check the it's value.
Q. How accurate is the counter?
A. The counter increments everytime it is loaded. However, a counter is not incremented by text-only browsers, browsers that have
the "display image" option set to off or if a page load is interrupted
before the counter image is displayed (by pressing esc or clicking stop for instance).
Q. What styles are available
The list below shows the differenct styles of counter images available.
Style Name | Counter Image | Example Code |
A | | <img src="/scripts/counter/Count.exe?df=examples.dat|incr=F"> |
B | | <img src="/scripts/counter/Count.exe?df=examples.dat|dd=B|incr=F"> |
C | | <img src="/scripts/counter/Count.exe?df=examples.dat|dd=C|incr=F"> |
D | | <img src="/scripts/counter/Count.exe?df=examples.dat|dd=D|incr=F"> |
E | | <img src="/scripts/counter/Count.exe?df=examples.dat|dd=E|incr=F"> |
F | | <img src="/scripts/counter/Count.exe?df=examples.dat|dd=F|incr=F"> |
G | | <img src="/scripts/counter/Count.exe?df=examples.dat|dd=G|incr=F"> |
H | | <img src="/scripts/counter/Count.exe?df=examples.dat|dd=H|incr=F"> |
I | | <img src="/scripts/counter/Count.exe?df=examples.dat|dd=I|incr=F"> |
|