CGI Scripts Instructions - Digital Clock
For Windows NT/95, Version 2.0
Table Of Contents
Usage
To use the clock, simply put this in your HTML:
<img src="http://www.gemsoft.net/cgi-bin/clock/clock.exe?arg1=value1&arg2=value2&...&argn=valuen">
where the arguments are:
| Argument (* means required) |
Possible Values |
Meaning |
| format* |
One of:
|
See examples below. This argument is case-sensitive |
| simple |
yes or no |
Use a simple style if yes. See example below. The default is no. |
| bgcolour |
RRGGBB or trans |
When using the simple style, specifies the background colour of the image, or
if trans is used, specifies a transparent background. RRGGBB should be 3 2-digit
hex values in one string, similar to the HTML command <BODY BGCOLOR="RRGGBB">
. This argument has no meaning when simple is not yes. The default is 000000
(black). |
| fgcolour |
RRGGBB |
When using the simple=yes, specifies the foreground colour of the image. Same
format as bgcolour. The default is FFFFFF (white). |
Examples
<img src="http://www.gemsoft.net/cgi-bin/clock/clock.exe?format=normal">
<img src="http://www.gemsoft.net/cgi-bin/clock/clock.exe?format=secs">
<img src="http://www.gemsoft.net/cgi-bin/clock/clock.exe?format=24hr">
<img src="http://www.gemsoft.net/cgi-bin/clock/clock.exe?format=24hr&simple=yes">
<img src="http://www.gemsoft.net/cgi-bin/clock/clock.exe?
format=normal&simple=yes&bgcolour=FF00FF&fgcolour=00FF00">
The simple style requires less disk I/O, and should execute much more quickly.
Back to TOC
Credits
- The counter uses the gd library
by Thomous Boutell. The gd library is copyright © Thomous Boutell.
- The counter uses cgiC by
Thomous Boutell. cgiC is copyright © Thomous Boutell.
- Thanks also to my
dad.
Back to TOC