VMaxLastModified Applet Features
|
Applet tag code example
<APPLET CODE=vmaxlastmodified.class WIDTH=400 HEIGHT=24> <PARAM NAME="TIMEZONE" VALUE="-360"> <PARAM NAME="DLSTSTART" VALUE="Apr Last Sun 02:00"> <PARAM NAME="STANDARDSTART" VALUE="Oct First Sun 02:00"> <PARAM NAME="DLSTBIAS" VALUE="-60"> <PARAM NAME="STANDARDNAME" VALUE="CST"> <PARAM NAME="DLSTNAME" VALUE="CDT"> <PARAM NAME="BGCOLOR" VALUE="99ffff"> <PARAM NAME="TEXTCOLOR" VALUE="0000ff"> <PARAM NAME="FONT" VALUE="dialog,1,12"> <PARAM NAME="BORDER" VALUE="3"> <PARAM NAME="AUTHOR" VALUE="Virtual_Max (http://come.to/vmax)"> <PARAM NAME="KEY" VALUE="Free Trial"> <PARAM NAME="HLCOLOR" VALUE="ff0000"> <PARAM NAME="TARGET" VALUE="_blank"> <PARAM NAME="TITLE" VALUE="Downloads page was last modified"> <PARAM NAME="URL" VALUE="../packages/index.html"> </APPLET>Parameters
| TIMEZONE | Your timezone offset in minutes (Standard time assumed)
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:
Some examples:
|
| 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 | Optional string to be shown to indicate standard time. |
| DLSTNAME | Optional string to be shown to indicate DLST time |
| BGCOLOR | Background color in hexadecimal RRGGBB format, same as html colors are, but without # radix symbol. |
| TEXTCOLOR | Text Color, same format as BGCOLOR |
| HLCOLOR | Text Highlight color |
| FONT | Optional font settings, includes FontName , FontSyle
and FontSize separated by comma.
FontName can be ONLY one of the following platform independent fonts supported by Java Keep in mind that font names are case sensitive. Fontstyle:
FontSize any positive integer
|
| BORDER | Width of the border around clock. If border value equal to 0, no border will be drawn. |
| SHADOW | Text highlight displacement in top-left direction in pixels (shadow like effect) |
| TITLE | Text string to be added before Last-modified date |
| URL | URL in relative form of the file, which last modified date to be displayed. If URL is omited document URL assumed, in this case, applet wouldn't be clickable. |
| TARGET | Target frame name to open file with specified URL when
mouse clicked.
one can use either framename defined with NAME attribute of <FRAME ... > tag, ether one of the following predefined names: "_top","_parent","_self" or "_blank". |
| AUTHOR | Obligatory parameter, should be "Virtual_Max (http://come.to/vmax)" don't alter it's value. |
| KEY | "Free Version" will show last modified date for specified
file, but on mouse click will link back to VMax pages.
If you want to get rid out of it, please, register the applet, valid key would completly remove this 'features' of free version. |
Additional Notes
1. As font rendering can be slightly
different on different platforms/browsers width of the string can vary,
it's a good practise to have overal applet width slighly more, than you
can consider it's required.
2. Due to Java security reasons
Applet can only retrieve the Last-Modified date for files located on the
SAME server where from applet itself was loaded.
3. Applet would show date correctly
only for pages which returns Last-Modified HTTP header. By default server-parsed
HTMLs
don't have this hreader. You can
check your server easy with Netscape 4.x in few steps:
a) open page for which you
want to display last-modified date in browser.
b) Mouse Right Click on
the page and select View Info
c) Look at the Last-Modified:
string, if this gives some date than your server is OK to use with this
applet. if it's unknown than applet have no chance to obtain this
date too.
In case of server wouldn't return
Last-Modified header applet will use today date.
4. In case of local testing
(loaded from file at local HDD) applet wouldn't receive HTTP headers and
due to this will show the current date, also in this case applet would
be linked back to the hosting page instead of one specified in URL parameter.