Differences between Menu G4 and Menu G5
If you are migrating from Menu G4 to Menu G5, you will be interested in the following differences:
In Menu G4, you have addSeparator("menu-name").
In Menu G5, you can also have addSeparator("menu-name", "group-id").
In Menu G4, the addStylePad() call can have the following phrases for styles:
In Menu G5, it only has two phrases for that:
In Menu G4, the "scroll:" phrase is like this:
In Menu G5, it becomes:
Menu G5 also adds two new phrases: "flip:" and "step:":
and adds a new option "abs-center" for the "direction:" phrase:
In Menu G4, the addStyleItem() call can have the following phrases for styles:
In Menu G5, it only has two phrases for that:
and adds two new phrases for item alignment:
and one new phrase for item cursor:
In Menu G4, the addStyleFont() call can have the following phrases for styles:
In Menu G5, it only has one phrase for that:
In Menu G4, the addStyleTag() call can have the following phrases for styles:
In Menu G5, it only has one phrase for that:
In Menu G4, the addStyleSeparator() call can have the following phrases for styles:
In Menu G5, it only has one phrase for that:
In Menu G4, the following JS calls will be used to setup the images:
In Menu G5, it changes to:
In Menu G4, it would be:
In Menu G5, it changes to:
In Menu G4, it would have some default styles.
In Menu G5, it changes to use the default style of the current page if you don't define some.
In Menu G4, it would have the following phrase in the addInstance() call:
and you would have the following double-holder codes in the page:
<div id="holder" style="position:absolute"> </div> <div id="holder2" style="position:relative"> </div>
In Menu G5, it would be:
and the place holder in page would look like this:
<div id="holder"></div>
or you can just put id="holder" in any block elements.
In Menu G4, menuTimer controls the timing for sub-menus of drop-down menus and menuTimerBar controls the timing for immediate sub-menus of menu bars.
In Menu G5, only the menuTimer is used.
In Menu G4, imagePath sets the path for sub-menu tags and the onePixel.gif.
In Menu G5, imagePath is no longer used, sub-menu tags would be defined in css, and the onePixel.gif in now under scriptPath.
New in Menu G5, defines how close a sub-menu can get to the browser border, defaults to 1 (pixel).
New in Menu G5, defines whether to show item message in status bar or not, defaults to 1 (show).
New in Menu G5, defines whether to show item tooltip or not, defaults to 0 (not show).
New in Menu G5, defines the path for the one pixel image if the default onePixel.gif is not used.
New in Menu G5, defines whether to acquire menu style from the parent menu or to use the default style set by setDefaultStyle(), defaults to 1 (to acquire style from parent menu).
New in Menu G5, defines the minimum item width for menus using actual item width.
# # #