Defining Menu

Menu Structure (NAME)

Every menu item has its own <PARAM> tag with NAME formatted as semicolon-delimited list of integer coordinates. First level of menu items have only one coordinate, showing their position within main menu. Submenu items have left part of coordinate list same as their super-menu. The remaining coordinate is their position within submenu. Coordinates start from 0. Example:

0
1
  1;0
  1;1
2
  2;0
  2;1
    2;1;0
    2;1;1
    2;1;2
  2;2
3

Indentation represents sub-menu level. Note: It's not necessary to physically place <PARAMS> in logical menu-definition order, but it's a good practice.

Menu Item Definition (VALUE)

Every menu item is represented by single parameter within APPLET tag. The structure of VALUE differs depending on whether menu item is non-leaf (has sub-menu) or leaf.

  1. If there is a submenu - then <URL> and <Frame> doesn't make sense:

    VALUE="<Label>;<FontName>;<FontStyle>;<FontSize>"

  2. If this is the menu leaf (no submenu):

    VALUE="<Label>;<URL>;<Frame>;<FontName>;<FontStyle>;<FontSize>"

DEFAULT:
  <Label>=<URL> (for menu leaf)
  <Frame>=DefaultFrame
  <FontName>=DefaultFontName
  <FontStyle>=DefaultFontStyle
  <FontSize>=DefaultFontSize

Examples

Hierarchy

Menu with 4 levels of sub-menus.

PopupNavigator Java Applet - JDK 1.1.3 needed

<applet
  width=
"128"
  height=
"24"
  code=
"PopupNavigator/PopupNavigatorApplet.class"
  codebase="./"
  archive=
"PopupNavigator.jar">
<param name=
"0" value="BEPP;http://bepp.8m.com">
<param name=
"1" value="Sub-Menu">
<param name=
"1;0" value="Test Page 1;test1.htm">
<param name=
"1;1" value="Sub-Menu">
<param name=
"1;1;0" value="Test Page 2;test2.htm">
<param name=
"1;1;1" value="Sub-Menu">
<param name=
"1;1;1;0" value="Test Page 3;test3.htm">
<param name=
"1;1;1;1" value="Sub-Menu">
<param name=
"1;1;1;1;0" value="Test Page 4;test4.htm">
PopupNavigator Java Applet - JDK 1.1.3 needed
</applet>

Fonts and frames

Display menu items in different fonts. One menu item opens a new window.

PopupNavigator Java Applet - JDK 1.1.3 needed

<applet
  width=
"128"
  height="24"
  code=
"PopupNavigator/PopupNavigatorApplet.class"
  codebase="./"
  archive=
"PopupNavigator.jar">
<param
  name=
"0"
  value=
"BEPP;http://bepp.8m.com">
<param
  name=
"1"
  value="Test Page 1 (SansSerif-PLAIN-14);test1.htm;;SansSerif;;14">
<param
  name=
"2"
  value=
"Test Page 1 (SansSerif-ITALIC-14);test1.htm;;SansSerif;ITALIC;14">
<param
  name=
"3"
  value="Test Page 1 (SansSerif-BOLD-14);test1.htm;;SansSerif;BOLD;14">
<param
  name=
"4"
  value="Test Page 1 (SansSerif-BOLDITALIC-14);test1.htm;;SansSerif;BOLDITALIC;14">
<param
  name=
"5"
  value=
"Test Page 2 (TimesRoman-PLAIN-20);test2.htm;;TimesRoman;;20">
<param
  name=
"6"
  value="Submenu (Helvetica-PLAIN-24);Helvetica;;24">
<param
  name=
"6;0"
  value=
"Test Page 3 (ITALIC);test3.htm;;;ITALIC">
<param
  name=
"6;1"
  value=
"Test Page 4 - New Window;test4.htm;_blank">
PopupNavigator Java Applet - JDK 1.1.3 needed
</applet>

 

PopupNavigator Reference Home