Vertical Scrolling Window

Applet Features

The Vertical Scrolling Window supports a host of features for presenting all types of information to your viewers. The applet supports user scrolling and separate text file reading with automatic content update features. Other features include custom image and text highlighting for URL links, scroll bar sizes and color customization, simple text file set up with optional text file formatting for scroll messages, images, and URL links, as well as background color, start up message, and status bar message customization.

 

Purchasing the Applet
Note: The unregistered version of this applet may be used for evaluation purposes on a single computer and viewed locally. The purchased version includes the necessary security key class file and license to display multiple copies of the software on one web site.

This software is available as part of Web Effects Gold Collection, for more information use the links below or contact OpenCube at 207-947-1955

 

Required Class Files

This applet uses multiple class files (included with the download), the main class file: vsw.class must be referenced by the applet tag. The other support class files (evaluation version only) must be located in the same folder as the main class file in order for the applet to run. The required class files are: vsw.class, vswsb.class, occcolor.class, ocfontc.class, vswread.class, preskey.class

 

Applet Tag Template

 

The Status Bar Message

Note: The status bar message which indicates the name of the applet and "Java by OpenCube" in the sample implementation above is customizable using the "onsbtext" and "offsbtext" parameters. See the parameter list below for more information on customizing the Status Bar Text.

 

Notes Regarding Java

Note: Some versions of Internet Explorer and Netscape, depending on the platform, (primarily IE 4.0, IE 3.02 and Netscape 4.01) will not be able to view this and most other applets locally when the class files, images, and html file are NOT located in the same folder (usually image based or text file reading applets). If this is the case we recommend using IE 3.0 - 3.01, Netscape 2.0 - 3.01 or the Microsoft Applet Viewer which is included in the JDK. Note: This bug will not be present once the applet is located on the internet and will work under all browser / platform scenarios.

 

Online Documentation at www.opencube.com

The online documentation includes general information regarding the use of the applet tag and uploading applets to the server, common Java bugs with Internet Explorer and Netscape as well as an applet configuration FAQ.

 

Receiving Technical Support:

If you are having trouble customizing the applet or cannot get the applet to function appropriately please contact OpenCube by phone or e-mail at 207-947-1955, or support@opencube.com. When contacting support by e-mail please include any error messages you received and an explanation of the problem. If you have already customized your tag please e-mail the HTML document which includes the tag and any support files such as images that the applet uses and we will correct the problem and e-mail the working tag with your page back to you.

 

Information about the applet and its parameters

Required Parameters

Parameter 1 (the "notice" tag) must be included in the applet tag in order for the applet to work. Most of the parameters will default if you fail to define them, at a minimum you must include the notice tag and and a file location tag pointing to your first scrolling file. Usually the easiest way to customize the applet is to cut and paste the applet tag information used in the sample and modify it to fit your web page.

 

Defining Colors

This applet uses a simple RGB or Hexadecimal color definition scheme. On most systems (depending on the software being used to choose a color) its easier to define a color using RGB, however since most web pages define colors using a HEX value we have allowed for both methods of color definition. To define a color using RGB use commas to separate the values such as 255,255,255 (White). To define a color using a hexadecimal value use a pound sign ('#') followed by a 6 digit hex value in the rage of 000000 - FFFFFF (e.g. #FFFFFF is equal to the color White).

Color Definition with RGB: To define a color in one of the color parameters using RGB choose a value between 0 - 255 for the red, green, and blue components separated by commas and typed out in the correct r,g,b order. Below is a sample of how a color parameter using RGB should look, the example specifies several different sample colors for the "bgcolor" parameter.

WHITE: <param name="bgcolor" value="255,255,255">
GREEN: <param name="bgcolor" value="0,255,0">
BLACK: <param name="bgcolor" value="0,0,0">
YELLOW: <param name="bgcolor" value="255,255,0">
OFF WHITE: <param name="bgcolor" value="240,239,234">

The best way to choose the exact color you are looking for without having to guess the numbers is to access your systems Color Picker. Color Pickers usually allow you to drag the mouse over a rainbow type color grid to select a color, and show you the appropriate RGB values. In windows the Color Picker is accessible through MS Paint as well as a majority of the popular Imaging and HTML Authoring Software.

 

Creating the Text Files

This applet uses simple text files in order to define each scrolling message, message attributes, sizing, URL links, colors, pause delay times, etc. Below is a link to the text file used in the example above... Only one text file is required, however the sample above uses four files and takes advantage of the applets browsing feature which allows you to define links to other scrolling message files within the applet.

Each line in the text file represents a customizable section of the scrolling message. Text that is longer than the applet width is automatically put in a multi line format and will be multi-line highlighted if an associated URL and highlight color are defined. Each line must be specified with a series of values identifying the icon index#, auto-fit, delay time, font, alignment, text color, load URL where, URL, and message. Each value must be separated by a vertical bar ("|" AKA: pipe symbol). Below is an example of how a line in the file defining a message should look.

icon index#|auto-fit|delay time| font setting|alignment|text color|load URL where|URL|message.

To specify a section of the scroll message using the default values defined using the parameters just use the message text without any pipe symbols for that line. If defining some properties but not all make shore to includes all the pipe symbols and leave the attributes using the defaults blank. To create a blank space to separate paragraphs use a regular blank line or seven pipes with a space character at the end.

Icon Index#|
Attribute: Places an icon image in the scroll message, identified with its index#
Value=N, The icon images and associated switch images are defined within the applet tag itself. The icon index# should correspond to the index number used define the icon in the HTML parameters (see applet parameters for information on how to define the icon images). An icon index without a message will be displayed stand-alone while an icon image with a text message will be displayed left or right of the text depending on its alignment value.

AutoFit Text|
Attribute: Automatically size single or multiple messages to the applet height by adding the appropriate amount of space before the following message.
Value=0 or 1 or 2: 0 = do nothing, this is the default value, 1 = Identifies a message as the starting message to be automatically sized to fit the applet height, 2 = Identifies the ending message to be sized. To automatically size messages that span multiple description tags, simply set the starting message to 1 and the ending message to 2 with this parameter. For example if you wanted your second and and third lines in the text file to automatically fit the applet height and your fourth line to become visible only after the second line started off the screen you would simply identify the desc2 as a start sizing message by setting "auto-fit|" = 1 and define the third line as the end sizing message with "sizepause|" = 2. To size only one message to fit the applet height only identify that message as a ending message and do not define a starting message (e.g. "sizepause|" = 2, forces the second message to scroll all the way to the top of the applet before line three becomes visible at the bottom of the applet.)

Delay Time|
Attribute: Message Line Font Name
value="X", Where X is the amount of time in milliseconds to pause the message for. A value of 1000 is equal to 1 second.

Font|
Attribute: Message Line Font Setting
Value = Font Face, Style, Size, Each value must be separated by a comma and appear in the correct order (font face, style, and size) The Allowable Java font face values are Helvetica, TimesRoman, Courier, Dialog, or DialogInput. The allowable style options are plain, bold, bolditalic, or italic.

Alignment|
Attribute: Message Line Alignment
value= left,center, or right

Text Color|
Attribute: Message Line Text Color
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: BLACK

URL Where|
Attribute: Load Destination URL Link Where? (Frame Targeting)
The "loadwhere" tag specifies where the document specified in the "URL" value should be loaded. The default is "_self". A value equal to the name (case sensitive) of a frame will load the document in that frame. Setting this value to applet forces the document to load within the applet itself

"applet" show in the applet
"_self" show in the current frame
"_blank" show in a new unnamed top-level window
"name" show in a new top-level window named name
"frame name" show in the frame named frame name

Note: When targeting a frame location with the name of the frame make certain that the case and names are typed identically. If the applet cannot find the frame the document will be loaded in a new window.

URL|
Attribute: Destination URL Link
Value = X, Where X is the location of the document to load relative to the location of the HTML document containing the applet (e.g. if the HTML page containing the applet is located at http://www.opencube.com and the document to load is located at http://www.opencube.com/myhtml/mydoc.htm then the URL value would be "myhtml/mydoc.htm").

Message
Attribute: The message to be displayed
Note: Specific messages must be contained on one line, using a line break, and starting long messages on the next lines of the text file will cause those lines to inherit the default values set using the parameters. Messages longer than the width of the applet are automatically put in a multi-line format.

 

 

The Applet Parameters

 

The Applet

Parameter 1
Attribute: Copyright notice.
param name="Notice"
value="Vertical Scrolling Window, Copyright (c) 1998, OpenCube Inc."
Note: This must be included for the applet to work. In order for the applet to recognize the tag the notice must appear as a continuous line of text without any line breaks and the words must be capitalized correctly.

Parameter 2
Attribute: Background Color
param name= "bgcolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: WHITE

Parameter 3
Attribute: Message Scroll Delay
param name = "scrolldelay"
value="X", where X is the delay time in milliseconds between animation frames. See the browser bug page on the OpenCube site at
http://www.opencube.com/doc_bb.htm for information regarding delay time issues.
DEFAULT: 25

Parameter 4
Attribute: Message Scroll Jump
param name = "scrolljump"
value="X", where X is the distance in screen pixels to jump between frames. Note: The minimum value is one. The higher the value the faster the animation will run and the choppier the effect.
DEFAULT: 1

Parameter 5
Attribute: Default Status Bar Text when mouse is over applet
param name = "onsbtext"
value="X", where X is the message to appear in the status bar when the mouse is over the applet but not over a URL link.
DEFAULT: "OpenCube - Vertical Scrolling Window"

Parameter 6
Attribute: Default Status Bar Text when mouse is off applet
param name = "offsbtext"
value="X", where X is the message to appear in the status bar when the mouse is not over the applet.
DEFAULT: "Java By OpenCube"

 

The Scroll Bar

Parameter 7
Attribute: Scroll Bar Line Increment Value
param name= "barlinejump"
Value=X, Where X is the value to increment in screen pixels when the line increment buttons are pressed (up arrow or down arrow).
DEFAULT: 5

Parameter 8
Attribute: Scroll Bar Background Color
param name= "barbgcolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: Black

Parameter 9
Attribute: Scroll Bar Button Face Colors
param name= "barbuttoncolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: Light Gray

Parameter 10
Attribute: Scroll Bar Arrow Color
param name= "bararrowcolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: Black

Parameter 11
Attribute: Scroll Bar Arrow Highlight Color
param name= "bararrowhcolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors. The bar arrow highlight color is the arrow color that will appear as the mouse moves over an up or down button
DEFAULT: Yellow

Parameter 12
Attribute: Scroll Bar Slider Color
param name= "barslidecolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors. The slider is the colored bar between the top and bottom buttons.
DEFAULT: Black

Parameter 13
Attribute: Scroll Bar Slider Outline Color
param name= "barbgcolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: Black

Parameter 14
Attribute: Scroll Bar Slider Inset Value
param name= "barslideinset"
Value = X, Where X is the distance from the left and right edges that the slide bar should be inset.
DEFAULT: 2

Parameter 15
Attribute: Scroll Bar Width
param name= "barwidth"
Value = X, Where X is the width of the scroll bar. Note the buttons and slider will automatically adjust to the set width.
DEFAULT: 14

 

Loading Images Message

Parameter 16
Attribute: Loading Images Message
param name = "loadmsg"
value="X", where X is the message to appear in the applet area when it is initially loading the applets images.
DEFAULT: "Loading Scroll Images..."

Parameter 17
Attribute: Loading Message Text Color
param name= "loadcolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: Black

Parameter 18
Attribute: Loading Message Font
param name = "loadfont"
Value = Font Face, Style, Size, Each value must be separated by a comma and appear in the correct order (font face, style, and size) The Allowable Java font face values are Helvetica, TimesRoman, Courier, Dialog, or DialogInput. The allowable style options are plain, bold, bolditalic, or italic.
DEFAULT: Dialog, plain, 12

 

The File Attributes

Parameter 19
Attribute: Initial File Location
param name = "filelocation"
value="X", Where X is the relative location and name of the initial file to load. The file must be specified relative to the document containing the applet. Note: All subsequent applet loading page references must also be defined relative to the document containing the applet.

Parameter 20
Attribute: Status Bar Text when Refreshing the Scrolling Document
param name = "sbupdatetext"
value="X", Where X is the message to be show in the status bar while the current scroll document is being refreshed.
DEFAULT: "Updating Scroll Data..."

Parameter 21
Attribute: Document Refresh Scroll Interval
param name = "refreshinterval"
value="X", Where X is the scroll interval on which to refresh the current document. A value of one forces the current scroll file to be refreshed at the end of every scroll cycle, a value of two forces the refresh every other scroll cycle, etc.
DEFAULT: 1

Parameter 22
Attribute: Wait for refreshed files to load before scrolling the document
param name = "waitforfile"
value= true or false, Where true = yes, wait for the refreshed file to completely load before the document is scrolled. Note: a value of true will force the applet to pause (if a scroll cycle is defined) between scroll cycles while the refreshed document is loading, using a value of true with a refresh interval of 1 forces the applet to updates its data after every scroll cycle. False = no, continue to scroll the document while loading the updated file. False does not force the applet to pause between scroll cycles and updates the data from the file while scrolling (achieved from a separate thread for consistent scrolling), however the applet must scroll twice before the initial update is achieved, all subsequent updates happen on every scroll. The basic procedure when false is to get the updated document, while scrolling the previous document, then at the end of the scroll cycle show the document fetched while retrieving the next update, etc., etc.
DEFAULT: false

Parameter 23
Attribute: Scroll After a Applet URL Link is Clicked
param name = "scrollafterlink"
value=true or false, Where true = yes, when linking to a new page within the applet, continue to scroll the message. False = no, when opening a new page within the applet, stop the document from scrolling.
DEFAULT: false

 

The Scrolling Icon Images

Parameter 24
Attribute: Scrolling Icon Image File Name
param name = "icon0" - "iconN"
Value = X. Where X is the relative or absolute location and name of the icon image file to be scrolled in the message. As many icon image may defined as needed, the first icon image parameter must start with 0 or "icon0" the second with 1 or "icon1" etc... To associate an icon image with a line of text use the icons index# as the first value for any message line within the text file (see creating the text file for more information).

Parameter 25
Attribute: Scrolling Highlight Image File Name
param name = "iconhl0" - "iconhlN"
Value = X. Where X is the relative or absolute location and name of the icon highlight image file to be displayed directly over its associated image when the user highlights a URL link. Each icon highlight image must directly correspond by index number in sequence to an associated icon image (see above parameter).

Parameter 26
Attribute: Align Icon Paragraphs
param name = "aligniconparas"
Value = true or false. If true multiple line paragraphs of text associated with an icon image will be aligned to the icon indent for each line, if false only the first line of text will be aligned to the icon indent and all subsequent lines will be aligned to the margin..
DEFAULT: false

Parameter 27
Attribute: Vertical Icon Offset
param name = "iconvoff"
Value = X, Where X is the distance to vertically offset icon images. The default placement is at the text messages baseline.
DEFAULT: 0

 

The Scrolling Messages Default Attributes

Parameter 28
Attribute: Default Text Color
param name= "textcolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: BLACK

Parameter 29
Attribute: Font
param name = "font"
Value = Font Face, Style, Size, Each value must be separated by a comma and appear in the correct order (font face, style, and size) The Allowable Java font face values are Helvetica, TimesRoman, Courier, Dialog, or DialogInput. The allowable style options are plain, bold, bolditalic, or italic.
DEFAULT: Dialog, plain, 12

Parameter 30
Attribute: Default Text Alignment
param name="alignment"
Value = left, center, or right
DEFAULT: left

Parameter 31
Attribute: Left and Right Margin Width
param name="lrmargins"
Value = X, Where X is the width of the right and left margins.
DEFAULT: 5

Parameter 32
Attribute: Top Margin
param name="topmargin"
Value=X, Where X is the height of the top margin where paused message will stop.
DEFAULT: 5

 

URL Link Properties

Parameter 33
Attribute: Default Load Destination URLs Where?
param name = "loadwhere"
The "loadwhere" tag specifies where the document specified in the "URL" value should be loaded. The default is "_self". A value equal to the name (case sensitive) of a frame will load the document in that frame. Setting this value to applet forces the document to load within the applet itself

"applet" show in the applet
"_parent" show in the parent frame
"_top" show in the top-most frame
"_self" show in the current frame
"_blank" show in a new unnamed top-level window
"name" show in a new top-level window named name
"frame name" show in the frame named frame name

Note: When targeting a frame location with the name of the frame make certain that the case and names are typed identically. If the applet cannot find the frame the document will be loaded in a new window.

 

URL Link Highlight Properties

Parameter 34
Attribute: Underline URL Links when Highlighting
param name="underline links"
Value=true or false.
DEFAULT: false

Parameter 35
Attribute: URL Link Highlight Color
param name="hlcolor"
Value=r,g,b or #000000 - #FFFFFF - See above for more information on defining colors.
DEFAULT: Yellow


Vertical Scrolling Window, 1998, OpenCube Inc.