The Menu, reloaded

FX Documentation
Page-Integration
Menu hierarchy
Group behaviour
Group style settings
Group main settings
Item behaviour
Item style settings
Indicator settings
MSIE effects
Positioning the menu
Adding items and submenus
FX Web Menus Examples
FX DHTML Menu Example
Horizontal Web Menu
Windows 98 Example
Windows XP Example
Relative Positioning
Hiding Form Elements
Hiding Flash animations

Adding Items and Submenus v3.0.x

A quick tutorial, how to add new menus to your website. It's very important to take care of commas. The last item in a group may not have a comma.

Example with one item and without submenus:

var fxnames=['MyMenu',1];

var MyMenu=[
[175,28,100,100,0,EXMSIEeffect,,,EXgroupstyle,EXgroupbehaviour,,,0,1],
['Home',,,,,,'home.html',,EXitemstyle,,,0,92,37,3,1,1,1]
]
Adding a second item to the example:

var fxnames=['MyMenu',2];

var MyMenu=[
[175,28,100,100,0,EXMSIEeffect,,,EXgroupstyle,EXgroupbehaviour,,,0,1],
['Home',,,,,,'home.html',,EXitemstyle,,,0,92,37,3,1,1,1],
['Music',,,,,,'music.html',,EXitemstyle,,,0,92,37,3,1,1,1]
]
Now we add a new group as a submenu to the item "Music". First you have to set "ItemHasSubMenu" in the item "Music" to true(1).

Then we define the submenu for "Music" with the items "MP3" and "Music DVDs". Add "_2" to your new variable, MyMenu_2, because "Music" is the second item in MyMenu.

var fxnames=['MyMenu',2];

var MyMenu=[
[175,28,100,100,0,EXMSIEeffect,,,EXgroupstyle,EXgroupbehaviour,,,0,1],
['Home',,,,,,'home.html',,EXitemstyle,,,0,92,37,3,1,1,1],
['Music',,,,,,'music.html',,EXitemstyle,,,1,92,37,3,1,1,1]
]

var MyMenu_2=[
[175,28,,,0,EXMSIEeffect,,,EXgroupstyle,EXgroupbehaviour,,,0,1],
['MP3',,,,,,'mp3.html',,EXitemstyle,,,0,92,37,3,1,1,1],
['Music DVDs',,,,,,'musicdvds.html',,EXitemstyle,,,0,92,37,3,1,1,1]
]
Home | Forum | Link to us
FXsinus.com - Austria.
Vor der Bruck 15,
A-2770 Goodstone
 © Copyright 2001-2004 © FXsinus.com, All Rights Reserved. webmaster@fxsinus.com