gargoyle
Junior Member
Posts: 2
Registered: 1/1/2005
Location: Hyde Park, NY
Member Is Offline
|
| posted on 1/3/2005 at 04:12 AM |
|
|
Need a little help about menu numbering.
I am confused about the numbering system.
In the help it says menus are number from 0 (zero thru etc) .
| Quote: | In
order to assign styles naming convention should be followed as described below:
.m<menu number>l<level number><tag>
where:
1. <menu number> - zero based number of menu on the page (first has number 0, second - 1 and so on)
2. <level number> - zero based number of menu level (root level has number 0, first sub level - 1 and so on)
3. <state> - the state of item to which style is applied. May have values mout, mover and mdown. see description above
4. <tag> - position of the item's tag. May have values o for outer tag and i for inner tag |
But in the Demo 4 , it does not follow this numbering system.
- menu.js
- menu_items.js
- menu_items3.js
- menu_tpl1.js
- menu_tpl2.js
- menu_tpl3.js
- menu1.css
- menu2.css
- menu3.css
The numbers start at 1 (one) not at 0 (zer0).
So I missing the whole point of the numbering system?
I have a 2 (two) menus on one page. And my files are numbered as follows:
- menu.css
- menu.js
- menu_items.js
- menu_items01.js
- menu_tpl.js
- menu_tpl01.js
- menu01.css
So am I numbering thing correctly or incorrectly?
|
|
|
olga
Administrator
Posts: 84
Registered: 11/22/2004
Member Is Offline
|
| posted on 2/2/2005 at 08:18 PM |
|
|
This numbering system is important in naming of styles, but you can name your configuration files as you want, just make sure that name of the
variable in configuration file is not different from the name of variable passed to menu constructor. I.e. you have MENU_ITEMS1 in menu_items1.js file
and MENU_ITEMS1 in new menu statement in HTML file
Related links: http://www.softcomplex.com/products/tigra_menu/docs/#construct
|
|
|