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
|