AIS Web Site Page Counters
This page shows example counters (and dates) generated by the page counter. The HTML to include is shown for each example, along with a sample result.
A counter is included in a page by adding some HTML like
<img src="/cgi-bin/Count.cgi?ft=0">at some point in the page. Note that the part within the double-quotes is case sensitive. This will result in a counter being displayed each time the page is accessed; various examples are shown below. Each time the counter is accessed it is incremented by one, except that a counter keeps track of the last user to access the page, so that successive accesses from the same user are not counted (eg., if the user reloads the page).
If a counter reference contains text like df=sample.dat (see the first example below) then sample.dat name of a counter to be used, and can be referenced from more that one page (hence, all pages which refers to sample.dat share a common counter. On the other hand, if there is no df=sample.dat (see the third example below) then the counter applies just to the page from which is referenced.
Counters are created automatically when they are first accessed, and start with the value one. They are deleted automatically some time after the last reference to the counter disappears (ie., after all pages which refer to the counter have been deleted from the server). However, if a page is changed, or if a new reference to the counter appears before the counter is deleted, then it is not reset.
As shown in the examples below, counters can display the current time or a specified picture (or, indeed, display nothing at all). In these cases a counter is maintained, but can only be viewed using the counter summary.
Please note that counters only work properly if the used is using a browser that supports the HTTP/1.1 protocol. All recent browsers should do this.
| simple, no frame, digit style A (default) |
<img src="/cgi-bin/Count.cgi?df=sample.dat&ft=0">
|
|
| frame with default frame-color and thickness |
<img src="/cgi-bin/Count.cgi?df=sample.dat">
|
|
| No datafile specified with df ,therefore, count applies to page |
<img src="/cgi-bin/Count.cgi?ft=0">
|
|
| digit style B |
<img src="/cgi-bin/Count.cgi?df=sample.dat&dd=B">
|
|
| digit style C,display comma if more than 3 digits |
<img src="/cgi-bin/Count.cgi?df=sample.dat&dd=C&comma=T">
|
|
| digit style D |
<img src="/cgi-bin/Count.cgi?ft=3&df=sample.dat&dd=D">
|
|
| digit style E,frame-thickness=0,white transparent |
<img src="/cgi-bin/Count.cgi?trgb=ffffff&ft=0&df=sample.dat&dd=E">
|
|
| red frame with default thickness |
<img src="/cgi-bin/Count.cgi?df=sample.dat&frgb=ff0000">
|
|
| Hidden counter |
<img src="/cgi-bin/Count.cgi?df=sample.dat&sh=F">
|
| literal string with comma |
<img src="/cgi-bin/Count.cgi?lit=94032048040320&comma=T&dd=D&ft=2">
|
|
| literal string make black transparent |
<img src="/cgi-bin/Count.cgi?lit=0123456789,:-ap&tr=T&dd=D&ft=2">
|
|
| frame color can be Red,Green and Blue triplets |
<img src="/cgi-bin/Count.cgi?lit=0123456&frgb=0;0;255">
|
|
| frame color can be hex as well,using blue here |
<img src="/cgi-bin/Count.cgi?lit=0123456&frgb=0000ff">
|
|
| change green digit-color to default pen color |
<img src="/cgi-bin/Count.cgi?lit=1234567&chcolor=T">
|
|
| change green digit-color to red |
<img src="/cgi-bin/Count.cgi?lit=1234567&srgb=00ff00&prgb=ff0000">
|
|
| change green digit-color to yellow |
<img src="/cgi-bin/Count.cgi?lit=1234567&srgb=00ff00&prgb=ffff00">
|
|
| change green digit-color to FF7700 |
<img src="/cgi-bin/Count.cgi?lit=1234567&srgb=00ff00&prgb=ff7700">
|
|
| Gray frame color |
<img src="/cgi-bin/Count.cgi?lit=1234567&frgb=c0c0cc0">
|
|
| NavyBlue frame color |
<img src="/cgi-bin/Count.cgi?lit=1234567&frgb=000080">
|
|
| show time (12 hr format) |
<img src="/cgi-bin/Count.cgi?display=clock">
|
|
| show time (24 hr format) |
<img src="/cgi-bin/Count.cgi?display=clock&tformat=24">
|
|
| show time of Dhaka (GMT+0600) |
<img src="/cgi-bin/Count.cgi?display=clock&timezone=GMT+0600">
|
|
| show date (MM-DD-YY) |
<img src="/cgi-bin/Count.cgi?display=date">
|
|
| show date (DD-MM-YY) |
<img src="/cgi-bin/Count.cgi?display=date&dformat=ddmmyy">
|
|
| make the green color transparent,no frame |
<img src="/cgi-bin/Count.cgi?ft=0&df=sample.dat&trgb=00ff00">
|
|
| make the black color transparent,frame-thickness=2 |
<img src="/cgi-bin/Count.cgi?ft=2&df=sample.dat&trgb=000000">
|
|
| make the black color transparent,change green color to a shade of gray,frame-thickness=2 |
<img src="/cgi-bin/Count.cgi?srgb=00ff00&prgb=101010&ft=2&df=sample.dat&trgb=000000">
|
|
| make the black color transparent,change green color to a shade of gray,frame-thickness=0 |
<img src="/cgi-bin/Count.cgi?srgb=00ff00&prgb=101010&ft=0&df=sample.dat&trgb=000000">
|
|
| display Lenna's image wrapped with a nice frame |
<img src="/cgi-bin/Count.cgi?display=image&dd=D&image=lenna.gif&frgb=8B6508&ft=20">
|
|
| rotate 270 degrees. Note, degrees are implied here |
<img src="/cgi-bin/Count.cgi?ft=0&df=sample.dat&rotate=T&dd=D">
|
|
| rotate 180 degrees |
<img src="/cgi-bin/Count.cgi?ft=0&df=sample.dat&dd=D°rees=180">
|
|
| rotate 90 degrees |
<img src="/cgi-bin/Count.cgi?ft=0&df=sample.dat°rees=90&dd=D&prgb=ffff00">
|
|
This is a modified version of Count2_4 by Muhammad A Muquit.