Add A Page Counter

Please note that you MUST use your FTP ID as your counter dat file. For example if your login ID is “test” your counter dat file used is “test.dat”! (for example, df=test.dat ).

 

Installation Guide

Frame color and Thickness

Web hosting Care -76833- IT Works Internet

<img src=”/cgi-public/Count.exe”>

A frame with a bluish color is wrapped by default.
You have to use ft=0 no ignore this feature.

This may not work with all browsers. You should use at least one keyword in the query string (for example, df=data_file ). Random counter is displayed as no data file is specified. The default frame thickness, color and digit style is used.


Web hosting Care -345- IT Works Internet

<img src=”/cgi-public/Count.exe?ft=1″>

No df= option, therefore random digits are displayed.
Because of ft=1 no frame was wrapped.

Web hosting Care -268452- IT Works Internet

<img src=”/cgi-public/Count.exe?ft=6″>

Random digits.
Wrapped frame is with default color and thickness.

Web hosting Care -341879- IT Works Internet

<img src=”/cgi-public/Count.exe?ft=10&df=x.dat”>

Random digits.
Wrapped frame is with default color and asked thickness.

Web hosting Care -567890- IT Works Internet

<img src=”/cgi-public/Count.exe?frgb=ffd700&df=x.dat”>

The wrapped frame is of the asked color and default thickness. The color is used as hex string. Note, DO NOT add # before the string as you use with Netscape. In query string, if you use a #, everything after # is ignored. So, be careful.

Web hosting Care -1839- IT Works Internet

<img src=”/cgi-public/Count.exe?frgb=255;215;0&df=x.dat”>

Or you use can use the RGB triplets

Web hosting Care -00324- IT Works Internet

<img src=”/cgi-public/Count.exe?frgb=gold&df=x.dat”>

Or you even use the color name. You have to add this support while you configure using the Count-config script.

 

Comma

Web hosting Care -258,664- IT Works Internet

<img src=”/cgi-public/Count.exe?ft=0&df=x.dat&comma=T”>

Comma can be displayed.

 

Rotation

The first counter is rotated default 270 degrees toward right, no angle is specified as rotate keyword is used.

Web hosting Care -012345- IT Works Internet Web hosting Care -543210- IT Works Internet Web hosting Care -54321- IT Works Internet
<img src=”/cgi-public/Count.exe?ft=0&rotate=Y&df=x.dat”> <img src=”/cgi-public/Count.exe?ft=0&degrees=180&df=x.dat”> <img src=”/cgi-public/Count.exe?ft=0&degrees=90″df=x.dat”>

 

Digit Styles

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.

Web hosting Care -c11- IT Works Internet Web hosting Care -c12- IT Works Internet Web hosting Care -c13- IT Works Internet
<img src=”/cgi-public/Count.exe?
dd=A&df=x.dat”>
<img src=”/cgi-public/Count.exe?
dd=B&df=x.dat”>
<img src=”/cgi-public/Count.exe?
dd=B&frgb=69;139;
116&df=x.dat”>
Web hosting Care -c14- IT Works Internet Web hosting Care -c15- IT Works Internet Web hosting Care -c16- IT Works Internet
<img src=”/cgi-public/Count.exe?
dd=C&df=x.dat”>
<img src=”/cgi-public/Count.exe?
dd=D&ft=3&df=x.dat”>
<img src=”/cgi-public/Count.exe?
ft=2&frgb=000000&
dd=E&df=x.dat”>

 

Colors

Web hosting Care -gr2rd- IT Works Internet

<img src=”/cgi-public/Count.exe?df=x.dat&srgb=00ff00&prgb=ff0000″>

Change green color to red.

Web hosting Care -c17- IT Works Internet

<img src=”/cgi-public/Count.exe?negate=T&dd=A&df=x.dat”>

Note that the digit color is negated but the frame is not.

 

Transparency
<img src=”/cgi-public/Count.exe?dd=E&ft=0&tr=T&trgb=ffffff”>
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-public/Count.exe?dd=E&ft=0&tr=T&trgb=255;255;255″>
You can use the RGB triplets for the color

Web hosting Care -ct3- IT Works Internet

<img src=”/cgi-public/Count.exe?dd=A&tr=T&trgb=000000&df=x.dat”>

or

<img src=”/cgi-public/Count.exe?dd=A&tr=T&trgb=0;0;0&df=x.dat”>

or

<img src=”/cgi-public/Count.exe?dd=A&tr=T&trgb=black&df=x.dat”>

Make the black color of the digit style A transparent

Web hosting Care -ct4- IT Works Internet

<img src=”/cgi-public/Count.exe?dd=A&tr=T&trgb=00ff00&df=x.dat”>

or

<img src=”/cgi-public/Count.exe?dd=A&tr=T&trgb=0;255;0&df=x.dat”>

or

<img src=”/cgi-public/Count.exe?dd=A&tr=T&trgb=green&df=x.dat”>

Make the green color of the digit style A transparent

 

Hide Counter
<img src=”/cgi-public/Count.exe?sh=0&df=x.dat”>

A hidden counter is up there.
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 1×1 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)

 

Monitor Counter Hit

You might have kept your counter hidden (or not). You can monitor the hits from another page just specifying the datafile and the keyword incr=F.

Web hosting Care -ct18- IT Works Internet Web hosting Care -ct19- IT Works Internet Web hosting Care -ct20- IT Works Internet
<img src=”/cgi-public/Count.exe?incr=F&df=page1.dat”> <img src=”/cgi-public/Count.exe?incr=F&df=page2.dat”> <img src=”/cgi-public/Count.exe?incr=F&df=page3.dat”>

 

Number of Digits

Web hosting Care -ct21- IT Works Internet

<img src=”/cgi-public/Count.exe?md=5&df=x.dat”>

Say you want to display the counter in 5 digits only.

Web hosting Care -c22- IT Works Internet

<img src=”/cgi-public/Count.exe?pad=0&df=x.dat”>

Or you do not want to left pad with zero, you want to display exact digits.

 

Literal

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.

Web hosting Care -c23- IT Works Internet Web hosting Care -c24- IT Works Internet Web hosting Care -c25- IT Works Internet
<img src=”/cgi-public/Count.exe?
lit=0123456789″>
<img src=”/cgi-public/Count.exe?
dd=B&lit=0123456789″>
<img src=”/cgi-public/Count.exe?
dd=C&lit=0123456789″>
Web hosting Care -c26- IT Works Internet Web hosting Care -c27- IT Works Internet Web hosting Care -lit all- IT Works Internet
<img src=”/cgi-public/Count.exe?
dd=D&lit=0123456789″>
<img src=”/cgi-public/Count.exe?
ft=0&tr=1&trgb=ffffff
&dd=E&lit=0123456789″>
<img src=”/cgi-public/Count.exe?
lit=a1,456-:p”>

 

Counter as Clock

Use timezone parameter to display time or date of any place in the world.

Display time in 12 hour format

Web hosting Care -clock12- IT Works Internet

Display time in 24 hour format

Web hosting Care -clock24- IT Works Internet

Display date

Web hosting Care -date- IT Works Internet

<img src=”/cgi-public/Count.exe?display=clock”> <img src=”/cgi-public/Count.exe?display=clock&format=24″> <img src=”/cgi-public/Count.exe?display=date”>

 

Display an Image

Web hosting Care -image- IT Works Internet

img src=”/cgi-public/Count.exe?ft=20&dd=D&image=lenna.gif&frgb=powderblue”>

Display a GIF image kept at digits/D directory.

Related Article