Parameters Overview


The <PARAM> tag

Applet parameters are set using the <PARAM> tag. This tag has 2 attributes, NAME which is the name of the parameter, and VALUE which is the value the parameter holds. The HTML syntax for the <PARAM> tag is as follows:

<PARAM NAME="string" VALUE="string or number">

Below is a list of all the parameters in the 1 Awesome Java Tree applet that control the properties of the tree. Please note that the parameters for defining the actual nodes themselves have been excluded in this section. To learn how to define your tree structure and the nodes, please refer to the section Inserting Nodes Into The Tree.

IMPORTANT: All parameter names and values are case sensitive. For example, activeStyle and activestyle are not the same. Likewise, a value of "yes" is not the same as a value of "Yes".
NAMEVALUECOMMENTS
Node Construction
(please see Inserting
Nodes Into The Tree)
caption^URL^target frame^status bar text^inactive bullet image^active bullet image^expanded bullet imageThe value of this parameter is a string containing elements delimited by the "^" symbol.
  • caption - the text displayed inside each node
  • URL - the URL or filename to go to when the node is clicked.
  • target frame - the name of the target frame in which the URL is to be loaded when the node is clicked. There are 4 predefined values you can use:
    1. "_self" - loads the document in the applet's frame.
    2. "_parent" - loads the document in the parent frame.
    3. "_top" - loads the document in the topmost frame.
    4. "_blank" - loads the document in a new window.
  • status bar text - the text to appear in the status bar when a node recieves a MouseOver event
  • inactive bullet image - the URL of the bullet image when it is inactive.
  • active bullet image - the URL of the bullet image when it is active.
  • expanded bullet image - the URL of the bullet image when it is clicked.
Node Properties
fontfacefont typeThe font name of the text displayed in the nodes. Valid values are Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman, Courier, DialogInput, ZapfDingbats.
fontsizeinteger typeAn integer representing the font size of the node fonts. The actual number used is specific to each font.
fontstyle[fsBold][fsItalic][fsPlain]The font style of the nodes.
indentinteger typeThe number of pixels each node is to be indented.
paddinginteger typeThe amount of padding in each node.
activeStyle[2D][3DButton][3DText]Sets the active node's MouseOver effect. The effects are mutually exclusive:

  • 2D - a 2D shape appears around the node when it is active. The shape can be a square rectangle, rounded rectangle, or oval. It can be filled or unfilled.
  • 3DButton - this style causes the active node to appears as a 3D button with shading.
  • 3DText - this causes the text of the active node to pop up and have a 3D appearance.
defNodeColorRGB HEX color typeThe default color of nodes when they are first displayed.
activeNodeColorRGB HEX color typeThe color of nodes when they are active (i.e. when the mouse pointer is over a node).
clickedNodeColorRGB HEX color typeThe color of nodes when they are clicked.
Bullet Related
bullets[yes][no]selecting yes will cause bullets to be displayed in front of each node, no causes no bullet to be displayed.
bulletImagestring/URL typedefault URL or filename of the bullet image to be displayed in front of all nodes by default.
expandedBulletImagestring/URL typedefault URL or filename of the bullet image to be displayed in front of each active node. A node is said to be active when the mouse pointer is over it.
activeBulletImagestring/URLdefault URL or filename of the bullet image to be displayed in front of a node when it is clicked.
bulletSizefloat typeThe size of bullets as a proportion of the node height. The value must be less than 1 for the bullets to be displayed correctly.
2D MouseOver Effects
active2DStyle[sSquareRect][sRoundRect]
[sFillSquareRect][sFillRoundRect]
[sOval][sFillOval]
This parameter applies a 2D style to an active node. The following is a list describing each style:

  • sSquareRect - a square rectangle appears around the active node.
  • sRoundRect - a rounded rectangle appears around the active node.
  • sFillRect - a filled square rectangle appears around the active node.
  • sFillRoundRect - a filled rounded rectangle appears around the active node.
  • sOval - an oval shape appears around the active node.
  • sFillOval - a filled oval shape appears around the node.
active2DFillColorRGB HEX color type (eg. A0F080)The fill color used when the 2D active bullet style (i.e. activeStyle="2D") is used and the active2DStyle parameter is set to sFillSquareRect, sFillRoundRect, or sFillOval.
active2DBorderColorRGB HEX color typeThe color of the border of the 2D shape around the node when the 2D active bullet style is used (i.e. activeStyle="2D").
3D Button MouseOver Effect
active3DButtonBevelHeightinteger typeThe height of the bevel when the 3D button active node style is used (i.e activeStyle="3DButton").
active3DButtonLightShadeColorRGB HEX color typeThe color of the lighter shade of the 3D button.
active3DButtonDarktShadeColorRGB HEX color typeThe color of the darker shade of the 3D button.
3D Text MouseOver Effect
active3DTextShadeColorRGB HEX color typeThe color of the darker shade of the 3D button.
active3DTextBevelHeightinteger typeThe amount of popup to apply to the 3D text of the active node.
default3DNodes[yes][no]When set to yes, all nodes receive the 3D text effect by default.
Other Parameters
backImagestring/URL typethe filename or URL of the background image of the applet.
stretchImage[yes][no]Determines whether the background image is stretched to fit the applet window.
lines[yes][no]This determines whether lines or branches will appear when a node is expanded.
Copyrightconstant stringThis is the copyright parameter and must be set to a contant value of "Michael Cheong Mun Hoh"