VMaxLastModified Applet

 Features
 

  • Shows Last Modified Date and time for ANY file located at the same server.
  • Shows time in terms of specified timezone with any DLST transition date rules.
  • Is clickable link to specified file.
  • Automatically syncronize itself with server clock.
  • Don't use datetime port 13, as it can be disabled or not supported on some servers.
  • Customizable outlook.

  •  

    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:
    "Mon DD modifier WDay HH:MM"
    Where
    Mon is three letter Months abbreviations (obligatory)
    DD (optional) 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)
    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 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
  • dialog 
  • Helvetica 
  • inputDialog 
  • Courier 
  • TimesRoman

  • Keep in mind that font names are case sensitive.

    Fontstyle:
    0-plain
    1-bold
    2-italic
    3-bold Italic

    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.