Use the file name given to you instead of sample.dat.
Use the file name given to you instead of sample.dat.
Each of the options specified must be separated with a vertical bar, | , or by an amperstand, &. The options can be any or all of the following:
| option | Name | Description | Examples | Default | display=X | Display Clock | The counter can display the time instead of the count by using the display=clock option instead of the df= option. | display=clock |
None |
ft=X | 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. | ft=7 |
ft=0 No frame |
|---|---|---|---|---|
| frgb=R;G;B | Frame Color | Specifies the color of the frame in RGB (red/green/blue) format. Each
color component, R, G, and B is specified as a value
between 0 and 255.
If you use ft=# without a frgb= option, the
default color is used.
If you specify a frgb= without a ft=#, then the frame thickness defaults to 5. All the examples show ft=5. Knowing the RGB sequence for a given color is not always for most of us regular folks, but Count.cgi does provide a way to find the values for a given color. |
frgb=69;139;50 frgb=255;0;0 Default |
frgb=100;139;216 Cyan |
| tr=B | Transparency On/Off | You can specify if your counter image will have a transparent color with
the Boolean B. So tr=Y means there will be a transparent color;
and tr=N means there will not. It does not matter if the GIF files
used for the digits are "transparent"; as is shown next, you must specify
explicitly which color to make transparent.
If you specify a trgb=, then you do not need to specify tr=Y. Valid values for B are Y, N, T, F, 1, or 0. |
tr=N tr=Y |
tr=N No transparency |
| trgb=R;G;B | Transparent Color | Here you specify the color to render as transparent, given in
red/green/blue format.
When you provide a trgb=, you can skip the tr=Y; it is automatically turned on for you. For additional info regarding RGB (red/green/blue) format, refer to the rgb.txt paragraph in the Additional Tricks section below. |
trgb=0;255;0 (green) trgb=0;0;0 (black) |
frgb=0;0;0 Black |
| md=X | Max Digits | Defines maximum number of digits to display. Any value between 5 and 10 inclusive are permitted. Padding with leading zeros is automatically done for you; longer counts are truncated to the given X. | md=5 md=5 Truncation of 9 digit value |
md=10 Without padding |
| pad=B | No Padding | Turn padding on/off in conjunction with md= setting.
Valid values for the Boolean option B are Y, N, T, F, 1, or 0. (There are some bugs in the padding feature, as shown in the examples. These will be fixed shortly.) |
pad=Y With default md=10 md=5&pad=N No padding value shorter than max 5. md=5&pad=N Truncation of 9 digit value without padding. |
pad=N Without specification of a md= value
|
| dd=A | Digits Dir | Denotes what style digits will be used. The examples show all those currently installed. | dd=A dd=B dd=C dd=D dd=E |
dd=A |
| sh=B | Show digits | Used to turn display of digits on or off according to the Boolean B.
When sh=T, digits are shown as in most of the examples given here.
If sh=F no digits will show, but the counter will still increment;
instead of digits a transparent 1x1 GIF is displayed.
Valid values for the Boolean option B are Y, N, T, F, 1, or 0. |
An invisible counter is above! |
sh=Y Display digits |
| df=file | Data File for counting | Specifies the name of the file for storing the count in.
The file must be allocated to you as was mentioned in the "Authorizations"
section above. You can use df=sample.dat for testing and so on,
but of course the value in it is not reliable.
One special use of the option is df=RANDOM. This returns a random number using the fractional portion of the host's time of day clock as a seed for the generator. Unlike all other WWWcounter options, the file name provided is case-sensitive, except for the value random. Or Random, or rANDOM, etc. |
A random number |
df=RANDOM Roll of the dice! |
| incr=B | Increment count | 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 option B are Y, N, T, F, 1, or 0. |
incr=F&df=sample.dat incr=F&df=sample.dat The count does not go up, unless due to someone else accessing the counter at the same time as you are. |
incr=T Increment count on each invocation. |
| lit=X | Display literal | Makes it possible to display a given, predetermined value.
Valid values for the string X are digit. |
lit=1000001 Almost all the examples on this page are made with lit=X |
None |
For more information, see: Access Counter Homepage.