Insert the following into your index.html file which is found in the public_html directory in your home directory. Type everything exactly except username.dat where username must be replaced with your login name. Make sure everything is typed on 1 single line and no spacing between the question mark(?) and last quotation mark("). We have displayed it on 3 lines to make it easier to read:
Email suggestions email@example.com.
- Click here to create of reset your SingNet Access Counter.
Options for Customization (taken from author's page)
Let me tell you first, do not get frustrated because it has lots of options. I'll explain each option step by step. If you keep reading, you'll see it's really simple. You can refer to the program like this:
<img src="/cgi-bin/Count.cgi?ft=9|frgb=69;139;50|tr=0|trgb=0;0;0|wxh=15;20|md=6|dd=A|st=1|sh=1|df=count.dat" align=absmiddle>
The string between ? and " is called the QUERY_STRING. Make sure there is no newlines in the <img src= line and no space in the QUERY_STRING. Here:
ft means frame thickness. If you want to wrap the counter
with a ornamental frame, you define the frame thickness
like this. Here 9 is the thickness of the frame in pixel.
This value can be any positive number more than 1. For nice
3D effect, use a number more than 5. If you do not want
frame, just use ft=0.
frgb defines the color of the frame. Here 69 is the red
component, 139 is the green component and 50 is the blue
component of the color. The valid range of each component
is >=0 and <= 255. The components must be separated by ;
character. Note even if you define ft=0, these components
must be present, just use 0;0;0 in that case.
tr defines if you want transparency in the counter image.
here tr=0, that is I do not want transparent image. If you
want transparent image, define tr=1. Note that Coun.cgi,
does not care if your digits are transparent GIFs or not.
You must tell explicitly which color you want to make
if tr=1, then black color of the image will get transparent.
Here 0;0;0 are the red, green and blue component of the color
you want to make transparent.
wxh string defines the width and height of an individual
digit image. Each digits must have the same width and
height. If you like to use digits not supplied with my
distribution, find out the width and height of the digits
and specify them here.
md defines the maximum number of digits to display. It can be
>= 5 and <= 10. If your counter number is less than md, the
left digits will be padded with zeros. Here md=6 means, display
the counter with maximum 6 digits. f you do not want
to left pad with zeros, use pad=0 instead of md=6.
Note you can either use md=some_number or pad=0, in this
field, you cannot use both. If you use pad=0, then
the digits will be displayed exactly without padding.
dd means digit directory. A indicates it will use my LED digits
located at the directory A. There are altogether 4 sets of digits:
A, B and C.
finally df means data file. This is the file which will contain the
All these options must be in the same order as told and all in lower case and all of them must exist. Anyway, look at this Example Page, you will get the picture.