|
|
 |
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]
]
|
|
|
 |