|
Hit
Counter, Clock & Date
A graphic hit counter allows you to keep
track of the number of visitors to your site is. In addition to
this, we also have a clock and date display that you can
add to your site. There are a number of options to
tailor the color, look, and display of the output. Examples
and an explanation of these options are below:
| Counter
Examples | Clock Examples | Date Example | Available
Options |
Counter
Examples:
| frame with default
frame-color and thickness |
<img src="/cgi-bin/Count.cgi?df=sample.dat"> |
|
| simple, no frame,
digit style A (default) |
<img src="/cgi-bin/Count.cgi?df=sample.dat&ft=0"> |
|
| 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"> |
|
| change green digit-color
to red |
<img src="/cgi-bin/Count.cgi?srgb=00ff00&prgb=ff0000&df=sample.dat"> |
|
| NavyBlue frame
color with digit style C |
<img src="/cgi-bin/Count.cgi?frgb=000080&dd=C&df=sample.dat"> |
|
Clock
Examples:
| show time (12 hr
format) |
<img src="/cgi-bin/Count.cgi?display=clock"> |
|
| show time (24 hr
format), with digit style B |
<img src="/cgi-bin/Count.cgi?display=clock&tformat=24&dd=B"> |
|
Date
Example:
| show date (MM-DD-YY) |
<img src="/cgi-bin/Count.cgi?display=date"> |
 |
Available
Options:
Note: Use
an amphere sign (&) between options. For a better
idea of how these are used, refer to the examples.
Options available for counter, clock and date:
| Option |
Description |
Default |
df= |
This data file MUST be specified. Pick
a unique name such as your username.dat If your counter
starts at some number greater than 2, it is likely that
you are using a dat file belonging to someone else --
rename yours. |
If df is not specified,
you will get a random number returned. |
dd= |
Digit type can be set to a value, depending
on the style you want. Here are the default designs and
the value of dd associated with them:
- A:
B: C: D: E:
|
dd=A |
| display= |
Specifies whether you want to display the
counter, clock or date. |
display=counter |
| pad= |
Pad to the maximum digits with zeroes?
Set to 1 or 0. |
pad=1 |
| ft= |
Frame thickness can have
any value. Use
0 for no frame and above 5 gives 3D effect. |
ft=4 |
| frgb= |
Frame color in rgb;
specified 0-255;0-255;0-255 |
frgb=100;139;216 |
Options available only for counter:
| Option |
Description |
Default |
| sh= |
Show can be set to T or
F. This is useful if you dont want the counter to appear,
But you would
like the data accesible to you on another page. When
sh=T, counter will be displayed and incremented. If
sh=F no digits will show, but the counter will still
increment; |
sh=T |
| incr= |
Makes it possible
to display the current count without incrementing the
count. This
can be used to examine the count for reporting or other
purposes without adding to the count. Increment
can be set to T or F. |
incr=T
Increment the counter |
| st= |
Initial counter value can be
set to an integer greater than 0. Perhaps you don't like
the default value of 1? Note that the counter increments
before displaying, so the first count you will normally
see is 2. |
st=1 |
| lit= |
The cgi displays
the entered string of numbers, it no longer acts as
a counter. You
would follow this option with a string of digits. |
None |
| md= |
Maximum digits to display;
can be set between 5 and 10. |
md=6 |
| comma= |
Set to T or
F. Use comma=T
to display a comma after ever third digit from the right. |
comma=F |
Options available only for clock (display=clock):
| Option |
Description |
Default |
| timezone= |
The parameter
timezone= is only significant with display=clock or
display=date.
Use this parameter if you want to display time or date
of another timezone. The timezone must be specified with
a negative or positive four digit offset from GMT, for
example: timezone=GMT-0500 or timezone=GMT+0000 or timezone=GMT+0530. If
the clock displays your local time wrong, specify your
timezone with that parameter in order to display the
correct time. |
your
local time |
tformat= |
This parameter can be used
to display time in 12 or 24 hour format. |
tformat=12 |
Options available only for date (display=date):
| Option |
Description |
Default |
| dformat= |
Allows you to control the date
format by using any combination of MMDDYY (Month-Day-Year).
For example,
dformat=ddmmyy, dformat=YYMMDD. |
dformat=MMDDYY |
| Counter Examples | Clock Examples | Date Example | Available
Options |
|