Why was this information scrolling applet created? |
Solution: We developed this java applet to address the problem of an increased non-user required way of showing information and thereby increasing the information visibility to the user. |
You should look at the HTML for these files in case any of the examples are still not clear or you are interested in how we installed them into frames and tables. Good luck and if we can be of assistance give us a call at EnQue Corporation, 704.377.3327 or send us an email. |
| Features: |
|
| Technical: |
|
| This Java applet is a scrolling information or 'headlines' system. Here are all the parameters this applet reads: | |
| Parameter | Description |
| licdir | directory containing the license file 'EnQueL05.txt' |
| infofile | file that contains information, status messages, URLs, and targets.
The default is 'InfoFile.txt'. See info file format below. |
| target | if targets are not specified in the info file, this parameter gives target frame (default target is "_top") |
| speed | relative scroll speed - range is 0 to 100. (default of 50 translates to approximately a one pixel shift every 40 msec or 25 pixels per second) |
| scrolltype | 0 = smooth scrolling (default), 1 = scrolling stops at every scrolldelay time increment, 2 = scrolling stops every scrolldelay time increment but at the starting line of each information item as they reach the top of the applet window |
| scrolldelay | scroll delay in milliseconds between headline scrolls (default is 500 msec which is 1/2 second) |
| bgcolor | background color to use, this parameter is valid only if the bgimage is not specified or the background image contains transparency. (default is 0xFFFF80) |
| bgimage | background image to display, this parameter takes precedence over bgcolor. Image is tiled when image size is smaller than applet window |
| align | horizontal alignment, ('left' or 'right';
anything else is centered) |
| fontname | name of font for text (default is Dialog) |
| fontstyle | font style (0=plain-default, 1=bold, 2=italic, 3=bold+italic) |
| fontsize | text point size (default is 14) |
| textcolor | text normal color (default is 0x00487F) |
| texthltColor | text hilight color (default is 0xB900A3) |
| spacelines | number of spacer lines between information items (default is 0) |
The applet reads a maximum of 4 tokens from a line of an information file.
Anything beyond that is ignored. The minimum requirement is one token, the first
one which is an information item. A token is anything between double quotes: "this is
a token". The separator is a comma but need not be. Unspecified tokens must still
have empty double quotes in the information file line if other tokens follow. See the valid
examples just below. The information file format for a line is as follows:"information message","status line message", "URL", "target frame" |
|
"information message" |
information headline |
"status line message" |
status message shown when mouse is over item |
"URL" |
universal resource locator of target document or script |
"target frame" |
target frame for URL |
| Examples of valid information file entries: | |
|
|
| The first line has only an information item. The second line has all four items specified. The third has no status line message. The fourth has no status line message. The sixth is using all four items. The last two are only using the information item. When a target is specified in the information file, it takes precedence over the target parameter specified for the applet. This applet supports scripting but with no parameter support. | |
This first example is the applet in its simplest form. It automatically centers
information, paints its background the default color, and uses the default
menu file named 'InfoFile.txt'.
|
|
| The code behind what you see is:
Note that the license directory is specified in the
and the license file was in
then the The |
|
| Here are some additional examples and informational notes. The example code is not implemented within this HTML page you are viewing because Active Server Pages may be required, hence they will not run in your browser without executing them from an actual server. You can use Microsoft's peer web services on your local machine however. |
Notes:
|
Here is sample code that uses java archives: |
| Here is an info file that uses URLs with query strings sent to an active server page.
Notice all lines use a URL of |
| Here are some additional tips to consider when things go wrong
or won't work. The status line will show errors most of the time when there's a
problem. Mousing over the applet will show the status line message. Several common
problems are that the applet can't find the license file, there is an error
loading a background image, or it can't find the info file. License File
|