|
Simple Clock:
"[HOUR]:[MIN]:[SEC] [AMPM]" |
|
|
Two lines time and date clock
"[HOUR]:[MIN]:[SEC] [AMPM]\n [MONTH],[DATE] [YEAR]" |
Timestamp (3 lines)
"You come to this page at\n [SHOUR]:[SMIN]:[SSEC][SAMPM]\n This happens on [SMONTH],[SDATE] [SYEAR]" |
|
Elapsed Time Dispaly (single line)
"You spent [EMIN]min [ESEC]sec staring at this page" |
|
|
|
|
|
Features
Both Earth hemispheres DLST transition rules supported. Applet don't use datetime port 13, as it can be disabled or not supported on some servers. |
|
| Applet tag code example | |
| <APPLET CODE="vmaxdclockpro.class" CODEBASE="./" WIDTH=220 HEIGHT=80> | |
|
<PARAM NAME="BGCOLOR"
<PARAM NAME="BGIMAGE" <PARAM NAME="TEXTCOLOR" <PARAM NAME="SHADOWCOLOR" <PARAM NAME="FONT" <PARAM NAME="URL" <PARAM NAME="TARGET" <PARAM NAME="DAYS" <PARAM NAME="MONTHS" <PARAM NAME="AMPMS" <PARAM NAME="AMPM" <PARAM NAME="TIMEZONE" <PARAM NAME="DLSTSTART" <PARAM NAME="STANDARDSTART" <PARAM NAME="DLSTBIAS" <PARAM NAME="STANDARDNAME" <PARAM NAME="DLSTNAME" <PARAM NAME="FORMAT" <PARAM NAME="AUTHOR" <PARAM NAME="KEY" </APPLET> |
VALUE="ffffcc">
VALUE="db25.gif"> VALUE="000099"> VALUE="999966"> VALUE="Dialog,1,12"> VALUE="http://come.to/vmax"> VALUE="_top"> VALUE="Sun Mon Tue Wed Thu Fri Sat"> VALUE="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"> VALUE="AM PM"> VALUE="true"> VALUE="-360"> VALUE="Mar Last Sun 03:00"> VALUE="Oct Last Sun 03:00"> VALUE="-60"> VALUE="CST"> VALUE="CDT"> VALUE=" [HOUR]:[MIN]:[SEC] [AMPM] [NAME]\n [WDAY], [MONTH],[DATE] [YEAR]\n You opened this page at\n [SHOUR]:[SMIN]:[SSEC] [SAMPM]\n [EMIN]min [ESEC]sec ago"> VALUE="Virtual_Max (http://come.to/vmax)"> VALUE="Free Version"> |
| Parameters | |
|
BGCOLOR,
TEXTCOLOR, SHADOWCOLOR |
All colors are in hexadecimal format RRGGBB, same as html hexadecimal colors but without # radix simbol. Shadow color is optional. Default values will be used if any parameter is omited, for BGCOLOR defualt value is FFFFFF (white), for TEXTCOLOR is 000000 (black). Shadow wouldn't be drawn if parameter omited. |
| BGIMAGE | (optional) URL of image for applet background, relative to CODEBASE, if this image size less than applet size it will be tiled. Please, use non-interlaced gif images only. If omited solid background fill with BGCOLOR will be used. |
| FONT |
Font parameter includes following fields separated with
commas: FontName,FontStyle,FontSize
FontName Can be one of the following platform independent fonts, supported by Java: dialog, inputDialog, Helvetica, Courier, TimesRoman FontStyle Integer number: 0-plain, 1-bold, 2-italics and 3-bold italics FontSize Integer number, fint size in pixels. |
| URL |
Optional URL of file to be opened on mouse click in applet area.
Registered version only. Unregistered version will always link back to VMax site. URL is relative to DocumentBase. |
| TARGET | Target window name to open page on mouse click in applet. This can be framename as defined in frameset in NAME attribute of frame tag, or one of pre-defined values: _top, _self, _parent or _blank. If omited default value is _self. |
| DAYS |
7 days names, separated with space character.
One can omit this parameter the defaults will be used, but if you need to redefine this string representations of week days names you can do it with this parameter. (optional) |
| MONTHS | 12 names for months (optional) |
| AMPMS | Two words separated with space character to use for
AMPM field (optional) |
| AMPM | Define if you want to use 24 hours mode or 12 hours mode, Can be "true" or "false" |
| TIMEZONE | Your standard timezone offset in minutes For example, for GMT:-6:00 timezone use "-360" |
| DLSTSTART | DayLight time start date rule.
(Transition date from Standard time to DLST time) Applet parses string considering it have the following format: "Mon DD modifier WDay HH:MM" Where Mon is three letter Months abbreviations (obligatory) DD (optional) is transition day of the month Modifier (optional) is optional keyword, one of the following: first, second, third, fourth or last. WDay (optional) 3 letters abbreviation of weekday. HH:MM is transition time (obligatory) Please use the same months and weekdays names for Mon and WDay as ones you defined with MONTHS and DAYS params. All above params are in terms of server local standard time (not including DLST). Some examples: "May 1 02:00" transition at 02:00 of May,1 "Apr Last Sun 03:00 " transition at Last sunday of April at 03:00 "Oct First Sat 03:00" transition at first Satturday of October |
| STANDARDSTART | Standard Time start date, same syntax as above (Transition date from DLST time to Standard time) |
| DLSTBIAS | DLST bias in minutes, most zimezones have it "-60", ( one hour ahead ) |
| STANDARDNAME | format parameter [NAME] field will be replaced with value of this parameter to indicate standard time. |
| DLSTNAME | format parameter [NAME] field will be replaced with value of this parameter to indicate DLST time |
| FORMAT | Output format string. Applet get this string and
rplace all special keywords in [..] with actual values of the dates objects.
One can include various components of current date, page loading date (timestamp) and
elapsed time since applet start.
More complicated example: Exactly as it's shown at the top of the page "[HOUR]:[MIN]:[SEC] [AMPM] [NAME]\n [WDAY], [MONTH],[DATE] [YEAR]\n You opened this page at\n [SHOUR]:[SMIN]:[SSEC] [SAMPM]\n [EMIN]min [ESEC]sec ago" Hope, now you see that format is quite flexible to create any clock you like, Just write any strings you would like to see and place following keywords instead of actual date elements. Current time fields keywords are: [HOUR] [MIN] [SEC] [WDAY] [MONTH] [DATE] [YEAR] [NAME] [AMPM] Applet start time fields : in case one would like to use applet to show page loading timestamp. [SHOUR] [SMIN] [SSEC] [SWDAY] [SMONTH] [SDATE] [SYEAR] [SNAME] [SAMPM] Elapsed time fields: In case one would like to show visitors how much time they spend at your page. [EHOUR] [EMIN] [ESEC] One can use \n characters to create multiple lines format. |
| KEY | Obligatory parameter. Applet can be used absolutly free with KEY "Free Version". Free version of the applet ignore URL parameter and link back to VMax site. If you want to get rid of this, please register. |
| AUTHOR | Obligatory parameter don't alter it's value
Virtual_Max (http://come.to.vmax) |