![]()
![]()
![]()
We have updated our hit-page counter program on April 15, 1998. The program we use was written by Muhammad A Muquit with many features implemented by Kevin J. Walsh. You now have the option to display a clock or the date besides a hit counter. We've also added many new digits which can be found on our Digit Style page.
To use this program, you must be a registered Channel 1 customer. You will use the information below to call and display your hit counter, and you will use our Hit Counter Request Form to have our Support staff activate your hit counter for your account. Your request should be processed within 24 hours. Once you've received a response saying that you are set up to use the page-hit counter, you can use the following documentation to implement a counter on your web page.
<img src="/cgi-bin/Count2.cgi?df=username.dat" align=absmiddle>
where username is your username at Channel 1.
<img src="/cgi-bin/Count2.cgi?frgb=blue|df=channel1.dat|dd=odo|md=5" align=absmiddle>
The options can be in any order.
You can look at the Options or Examples section for more information.
To have a clock appear instead of the counter, add the option "display=clock" to your counter tag, and remove the "df=username.dat". You can include other options as well, but make sure the digits you use include images for ":" "am" and "pm".
Here is the code for the counter at the top of this page:
<img src="/cgi-bin/Count2.cgi?frgb=blue|dd=A|display=clock" align=absmiddle>
To have the Date appear instead of the counter, add the option "display=date" to your counter tag, and remove the "df=username.dat". You can include other options as well, but make sure the digits you use include images for a dash or your dates will run together (try using the Katt images)
Here is the code for the counter at the top of this page:
<img src="/cgi-bin/Count2.cgi?frgb=blue|dd=katt66|display=date" align=absmiddle>
To add options to your counter, clock, or date code, simply add a | or a & followed by the Parameter name and the value that you want. It may be helpful to view the Examples first, then try to change your options. The popular options are listed below:
| Parameter | Name | Description | Default |
|---|---|---|---|
| display=X | Specifies what to display. | A valid string can be specified with display= parameter to display counter, clock or date. The valid value for the string parameter X is counter, clock or date. For counter, this parameter is not need as counter is the default display type. | display=counter |
| dd=A | Digit Directory | Denotes directory of a specific styles of digits. Simply use the digit's Code name of the sytle you chose (ie. A for Style A, rosewd for Rosewood). |
dd=A
My green LED digits |
|
frgb=color or frgb=RRGGBB (in hex) |
Frame Color | Specifies the color of the frame in RGB (red/green/blue) format or by using a color look up table. Each color component, R, G, and B is specified as the Hex value of a color between 0 and 255. If you use ft= without a frgb= param, the default color is used. |
frgb=blue
or frgb=648bd8 |
More options are avalible by going to our Advanced Options page.
The counter images you are seeing are previously generated with the described URL tags. I am not generating them while you load the page, because it creates many processes in my machine.The keywords in the query strings can be separated by & or |
Do not look at the source of this file, look at the written URL tag. The images are not generated while you load the page. I pre-generated the images using the counter. I did that to avoid lots of disk i/o and processes in my machine while you look at this page. This page is here just to show how the counter can be configured.
<img src="/cgi-bin/Count2.cgi">
<img src="/cgi-bin/Count2.cgi?ft=1">
<img src="/cgi-bin/Count2.cgi?ft=6">
<img src="/cgi-bin/Count2.cgi?ft=10&df=x.dat">
<img src="/cgi-bin/Count2.cgi?frgb=ffd700&df=x.dat">
or you use can use the RGB triplets like:
<img src="/cgi-bin/Count2.cgi?frgb=255;215;0&df=x.dat">
or you even use the color name. You have to add this support while you configure using the Count-config script.
<img src="/cgi-bin/Count2.cgi?frgb=gold|df=x.dat">
<img src="/cgi-bin/Count2.cgi?ft=0|rotate=Y|df=x.dat"> <img src="/cgi-bin/Count2.cgi?ft=0°rees=180|df=x.dat"> <img src="/cgi-bin/Count2.cgi?ft=0°rees=90"df=x.dat>
<img src="/cgi-bin/Count2.cgi?dd=A|df=x.dat"> <img src="/cgi-bin/Count2.cgi?dd=B|df=x.dat"> <img src="/cgi-bin/Count2.cgi?dd=B|frgb=69;139;116&df=x.dat"> <img src="/cgi-bin/Count2.cgi?dd=C|df=x.dat"> <img src="/cgi-bin/Count2.cgi?dd=D|ft=3|df=x.dat"> <img src="/cgi-bin/Count2.cgi?ft=2&frgb=000000&dd=E|df=x.dat">
These are the supplied digit styles. You can use digits from other sources. Just create a directory inside digits directory, rename the digits ro zero.gif, one.gif....nine.gif and use the directory name with dd.
<img src="/cgi-bin/Count2.cgi?netate=T&dd=A|df=x.dat">
A specific color of the digits can be made transparent on the fly. Note the counter program do not care if your gif images are transparent or not, you have to tell explicitly which color to make transparent. Here we will make the white color of the digit style E transparent. We will not use any frame either, just to make it look simple.
<img src="/cgi-bin/Count2.cgi?dd=E|ft=0|tr=T|trgb=ffffff">
You can use the RGB triplets for the color like:
<img src="/cgi-bin/Count2.cgi?dd=E|ft=0|tr=T|trgb=255;255;255">
Make the black color of the digit style A transparent:
<img src="/cgi-bin/Count2.cgi?dd=A|tr=T|trgb=000000&df=x.dat">
or
<img src="/cgi-bin/Count2.cgi?dd=A|tr=T|trgb=0;0;0&df=x.dat">
or
<img src="/cgi-bin/Count2.cgi?dd=A|tr=T|trgb=black&df=x.dat">
Make the green color of the digit style A transparent:
<img src="/cgi-bin/Count2.cgi?dd=A|tr=T|trgb=00ff00&df=x.dat">
or
<img src="/cgi-bin/Count2.cgi?dd=A|tr=T|trgb=0;255;0&df=x.dat">
or
<img src="/cgi-bin/Count2.cgi?dd=A|tr=T|trgb=green&df=x.dat">
You can keep the counter hidden if you like. You can do this by sh=0. The hit will be recorded but the counter will not be displayed. A 1x1 transparent GIF image is written which gives the illusion. You can use the no-increment feature for monitoring those hits to a secret page (described later>
<img src="/cgi-bin/Count2.cgi?sh=0|df=x.dat">
A hiddes counter is up there.
<img src="/cgi-bin/Count2.cgi?incr=F|df=page1.dat">
<img src="/cgi-bin/Count2.cgi?incr=F|df=page2.dat">
<img src="/cgi-bin/Count2.cgi?incr=F|df=page3.dat">
<img src="/cgi-bin/Count2.cgi?md=5|df=x.dat">
or you do not want to left pad with zero, you want to display exact digits.
<img src="/cgi-bin/Count2.cgi?pad=0|df=x.dat">
<img src="/cgi-bin/Count2.cgi?lit=0123456789"> <img src="/cgi-bin/Count2.cgi?dd=B&lit=0123456789"> <img src="/cgi-bin/Count2.cgi?dd=C|lit=0123456789"> <img src="/cgi-bin/Count2.cgi?dd=D&lit=0123456789"> <img src="/cgi-bin/Count2.cgi?ft=0&tr=1&trgb=ffffff|dd=E|lit=0123456789">