Including a Counter on your Perigee.net WWW page

To add a counter to your webpage, add the following line in your .html document:

<img src="/cgi-bin/Count.cgi?df=YourUserName.dat">


Customizing Your Counter

You may customize your counter by adding these switch options. Your customized counter line would look something like this:

<img src="/cgi-bin/Count.cgi?ft=10|frgb=69;139;50|df=YourUserName.dat" align=absmiddle>

df=YourUserName.dat
DF is the datafile to store the count in. You can use df=random to display a random number!

ft=X
Allows you to specify the 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.

frgb=0;0;0
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= param, 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. The color can be specified as hex string or a name. Do not use a # before the hex string as Netscape. For example, if you want to specify white in hex, you do frgb=ffffff.

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"; 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.

md=6
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.

pad=B
Padding with 0's. Turn padding on/off in conjunction with md= setting. Valid values for the Boolean parameter B are Y, N, T, F, 1, or 0.

dd=A
Digit Directory. Denotes directory of a specific styles of digits. They are kept at the directories A,B,C, D, E, etc.... Here are some of the styles:

Digit style A
Digit style B
Digit style C
Digit style D
Digit style E

sh=B
Show digits. 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. Valid values for the Boolean parameter B are Y, N, T, F, 1, or 0.

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 parameter B are Y, N, T, F, 1, or 0.

lit=X
Display literal. Makes it possible to display a given, predetermined value. Valid values for the string X are digits.

negate=B
Negate the color. Makes it possible to negate the color of the counter digits. Note that the Frame is exempted from negating. Valid values for the Boolean parameter B are Y, N, T, F, 1, or 0.

degrees=X
Rotate X degrees. Makes it possible to rotate the counter image X degree. The possible values of X is 90, 180, 270 and 360. Note 360 is meaningless as the counter will come back to the original 0 degree.

rotate=B
Rotate On/Off. The Boolean value B turns on or off rotating. If you use degrees= settting, rotate is not needed. Valid values for the Boolean parameter B are Y, N, T, F, 1, or 0.