Source Code for Counter

To display a digital counter on your HomePage
a). Copy the code below and place it in your HTML document.
b). Replace the letter f, found after dd=, with the digit style you chose (A-Z).
c). Replace your_username with your AlaWeb username.

d). Please remember to email us to activate your counter! --------------------------------------------------------------------------------------------------------------------------------------- (Start copy below)

<IMG SRC="/scripts/Count.exe?ft=1|dd=f|df=your_username.dat">
(End copy above) ---------------------------------------------------------------------------------------------------------------------------------------

For more advanced options see instructions below.

The keywords in the query strings can be separated by & or |

Frame color and Thickness

A frame with a bluish color is wrapped by default. You have to use ft=0 no ignore this feature.
<img src="/scripts/Count.exe?|df=your_username.dat">

The default frame thickness, color and digit style is used.

<img src="/scripts/Count.exe?ft=1|df=your_username.dat">

Because of ft=1 no frame was wrapped.
<img src="/scripts/Count.exe?ft=6|df=your_username.dat">

Wrapped frame is with default color and thickness.
<img src="/scripts/Count.exe?ft=10|df=your_username.dat">

Wrapped frame is with default color and requested thickness.
<img src="/scripts/Count.exe?frgb=ffd700|df=your_username.dat">

The wrapped frame is of the requested 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.

or you use can use the RGB triplets like:

<img src="/scripts/Count.exe?frgb=255;215;0|df=your_username.dat">

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

<img src="/scripts/Count.exe?frgb=gold|df=your_username.dat">

Comma can be displayed

<img src="/scripts/Count.exe?ft=0|df=your_username.dat|comma=T">

Digit Styles

<img src="/scripts/Count.exe?dd=A|df=your_username.dat">
<img src="/scripts/Count.exe?dd=B|df=your_username.dat">
<img src="/scripts/Count.exe?dd=B|frgb=69;139;116&df=your_username.dat">
<img src="/scripts/Count.exe?dd=C|df=your_username.dat">
<img src="/scripts/Count.exe?dd=D|ft=3|df=your_username.dat">
<img src="/scripts/Count.exe?ft=2&frgb=000000&dd=E|df=your_username.dat">


Change any color

Change green color to red
<img src="/scripts/Count.exe?df=your_username.dat|srgb=00ff00|prgb=ff0000">

Transparency

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="/scripts/Count.exe?dd=E|ft=0|tr=T|trgb=ffffff|df=your_username.dat">

You can use the RGB triplets for the color like:

<img src="/scripts/Count.exe?dd=E|ft=0|tr=T|trgb=255;255;255|df=your_username.dat">

Make the black color of the digit style A transparent:

<img src="/scripts/Count.exe?dd=A|tr=T|trgb=000000&df=your_username.dat">
or
<img src="/scripts/Count.exe?dd=A|tr=T|trgb=0;0;0&df=your_username.dat">
or
<img src="/scripts/Count.exe?dd=A|tr=T|trgb=black&df=your_username.dat">

Make the green color of the digit style A transparent:

<img src="/scripts/Count.exe?dd=A|tr=T|trgb=00ff00&df=your_username.dat">
or
<img src="/scripts/Count.exe?dd=A|tr=T|trgb=0;255;0&df=your_username.dat">
or
<img src="/scripts/Count.exe?dd=A|tr=T|trgb=green&df=your_username.dat">


Hide the counter

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="/scripts/Count.exe?sh=0|df=your_username.dat">
A hidden counter is included on your page.


Monitor counter hits

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
    <img src="/scripts/Count.exe?incr=F|df=page1.dat">
    <img src="/scripts/Count.exe?incr=F|df=page2.dat">
    <img src="/scripts/Count.exe?incr=F|df=page3.dat">


Number of digits

Say you want to display the counter in 5 digits only.
<img src="/scripts/Count.exe?md=5|df=your_username.dat">

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

<img src="/scripts/Count.exe?pad=0|df=your_username.dat">

Return to AlaWeb's Counter Page