|
Getting Started
- Place the program files (FileTrack.jar, FileTrack.cab, ryFileTrack.class and ryPipe.class) in the directory containing the HTML document into which you want to insert the applet (or into a different directory, and add the correct CODEBASE= attribute to the applet tag given below).
- Add the following applet tag to your HTML document in the position you want FileTrack to appear:
<APPLET CODE="ryFileTrack" ARCHIVE="FileTrack.jar" WIDTH=500 HEIGHT=164>
<param name=CabBase value="FileTrack.cab">
<param name=Copyright value="FileTrack (c) 1998 Cool Focus [www.coolfocus.com]">
<param name=BgColor value="000080">
<param name=FocusBgColor value="404040">
<param name=DefaultTextColor value="0000FF">
<param name=FocusTextColor value="F0F0FF">
<param name=PressTextColor value="808080">
<param name=3DButtons value="yes">
<param name=3DBorder value="yes">
<param name=Font value="Dialog,plain,12">
<param name=BoldText value="yes">
<param name=SplitLines value="yes">
<param name=NonLinking value="no">
<param name=SilentStart value="no">
<param name=ShowURL value="no">
<param name=UseShortURL value="yes">
<param name=ShowDate value="yes">
<param name=UseLongDate value="yes">
<param name=ShowSize value="yes">
<param name=NewFileDays value="28">
<param name=Target value="_top">
<param name=UseHandCursor value="no">
<param name=Testmode value="no">
<param name=URL1 value="FileTrack.exe">
<param name=Text1 value="FileTrack evaluation download">
<param name=TextColor1 value="CC0000">
<param name=URL2 value="FT_docs.zip">
<param name=Text2 value="FileTrack documentation">
<param name=TextColor2 value="CCCC00">
</APPLET>
- In the first block of parameters, edit layout and display options such as colors and font. Each part of each entry uses the same Font, but by setting BoldText to 'yes' your Text entries will use a bold-style version of the chosen Font. If SplitLines is 'yes', each entry will be split over two lines, with Text in the first line and everything else in the second. If NonLinking is 'yes', the entries are informational only and won't react to a mouse-click.
- The second block of parameters lets you choose what should be displayed for each entry (its URL, its modification date, its filesize). ShortURL shows only the filename rather than the file's full URL. LongDate adds the time to the displayed modification date. NewFileDays lets you specify the number of days that FileTrack should regard a modified file as 'new'.
- The final block of entries contains the URL of the file that this entry relates to and the optional text to be displayed with each entry . You can also specify a particular text color for each entry, or leave an entry to use the DefaultTextColor set in the first block.
- Set Testmode to 'yes', save the document and view the page in your browser. Move the mouse over the applet and you'll see the minimum height displayed in the statusbar. You can copy this straight into your HTML applet tag's HEIGHT= attribute to keep the applet as compact as possible on the page. Switch Testmode back to 'no'. (Testmode does not attempt to suggest a width, since there are a huge number of variables that FileTrack has no way of guessing.)
- Please make sure you read the notes about Java security for an explanation of FileTrack's display when running locally.
- Each parameter is explained in detail in The Parameters Explained.
|