Code:
Image Switch Menu Documentation
Sample Implementation
Template Based on Sample Implementation
Applet Parameters Index
General Settings
Main Menu Images
Sub Menu Settings
URL Links
General Settings
Copyright notice.
param name="Notice"
value="Image Switch Menu, Copyright (c) 2000, OpenCube Inc."
Note: This must be included for the applet to work.
Applet Background Color
param name = "bgcolor"
Value = R,G,B, Where R,G,B are the red, green, and blue components of the applets background color.
DEFAULT: White
Status bar text when the mouse is over the applet.
param name = "onsbtext"
Value = X, Where X is the message to be displayed in the status bar when the mouse is over the applet area.
DEFAULT: "OpenCube - Image Switch Menu"
Status bar text when the mouse is not on applet.
param name = "offsbtext"
Value = X, Where X is the message to be displayed in the status bar when the mouse is not located over the applet area.
DEFAULT: "Java by OpenCube"
Main Menu Images
Image File Locations and Names
param name = "imagefile0" - "imagefileN"
Value = X. Where X is the relative location and name of the image file to be displayed in the applet area as a main menu image. This must be defined relative to the location of the HTML document which contains the applet.
Image x,y Positions Relative to Top Left Corner of Applet
param name = "picxy0" - "picxyN"
Value = X,Y. Where X,Y is the horizontal and vertical location of image relative to the left margin of the applet. The x and y values must be separated by a comma.
Image File Locations and Names
param name = "switchfile0" - "switchfileN"
Value = X. Where X is the relative location and name of the image file to be displayed in the applet area when the mouse is over a main menu image. This must be defined relative to the location of the HTML document which contains the applet.
Sub Menu Settings
Sub Menu Descriptions
param name = "desc0-0" - "descN-N"
Value = X, Where X is the message that corresponds to the index used to identify an image. (e.g to define a the first sub menu message for the first image use "desc0-0", to define the second sub menu message for the first image use "desc0-1", to define the second sub menu message for the third image use "desc2-1", etc.,etc.)
Font Style
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 alowable style options are plain, bold, bolditalic, or italic.
DEFAULT: Helvetica, plain, 12
Text Color
param name = "menutextcolor"
Value = R,G,B. Where R,G,B define the red, green, and blue components of the color as described above.
DEFAULT: Black
Left and Right Margins
param name = "lrmargin"
Value = X, Where X is the left and right margin to use for the menu message.
Center or Left Justify Text?
param name = "centertext"
Value = true or false, True = yes, Center Text - False = no, left justify text
Sub Menu X,Y Position Relative to Top Left Corner of its Associated Image
param name = "menuxy0" - "menuxyN"
Value = X,Y, Where x,y is the x and y offset from the top left corner of the image using the coordinate system described above. The x and y values must be separated by a comma.
Sub Menu Color
param name = "menucolor"
Value = R,G,B. Where R,G,B defines the red, green, and blue components of the pop up sub menu color.
DEFAULT: Yellow
Sub Menu Outline Color
param name = "menuoutlinecolor"
Value = R,G,B. Where R,G,B defines the red, green, and blue components of the pop up sub menus outline color.
DEFAULT: Black
Sub Menu Highlight Background Color
param name = "menuhlcolor"
Value = R,G,B. Where R,G,B defines the red, green, and blue components of the pop up sub menus highlighted background color.
DEFAULT: Red
Sub Menu Highlight Text Color
param name = "menuhltextcolor"
Value = R,G,B. Where R,G,B defines the red, green, and blue components of the pop up sub menus highlighted text color.
DEFAULT: Black
URL Links
Image URL Links
param name = "imagedesturl0" - "imagedesturlN"
value=X, where X is the link for the specific image. URL's can be defined relative to the HTML document containing the applet or fully qualified.
Specific Load Destination Image URL Where?
param name="imageloadwhere0" - "imageloadwhereN"
The "imageloadwhereN" tag specifies where the document specified in the "imagedesturlN" parameter 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.
"_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.
Sub Menu URL Links
param name = "desturl0-0" - "desturlN-N"
value=X, where X is the link for the specific sub menu message. (e.g. to define a link for the first images first sub menu message use "desturl0-0" for the second use "desturl0-1", etc, to define a url link for the third images second sub menu message us "desturl2-1", etc., etc.) URL's can be defined relative to the HTML document containing the applet or fully qualified.
Specifc Load Destination Sub Menu URL Where?
param name="loadwhere0-0" - "loadwhereN-N"
The "loadwhereN-N" tag specifies where the document specified in the "desturlN-N" parameter 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.
"_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.
Default Load Destination Where?
param name="loadwhere"
The "loadwhere" tag specifies where the default target location is to load all links in the applet. Use the specific loadwhere settings above to overide the default.
"_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. |