Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:20
Horizontal and Vertical in same time possible ?
Poster: Cista
Dated: Tuesday October 22 2002 - 13:44:00 BST
Hello,
I have to do a menu like this. I have a vertical menu with (for example) 4 items, ItemA, ItemB, ItemC and ItemD. When I click on an item, for example, on ItemA, I see in the vertical menu : ItemA, SubItemA1,SubItemA2, ItemB, ItemC and ItemD.
That, I think it's ok.
But ....
for each subitems, I need an horizontal menu, this menu appear in front of the subitem (vertical) selected and the hozirontal menu has subitem too, horizontal. The content the horizontal menu (item and subitem) depend of the vertical subitem selected.
Is it possible to do that ?
Bye
Poster: kevin3442
Dated: Tuesday October 22 2002 - 16:06:15 BST
Hi Cista,
When defining any menu, the 12th parameter in the menu array (where the menu name is the first parameter) determines whether the menu will be horizontal or vertical; set it to 1 for horizintal, set it to 0 or leave it unset (which is what most people do) for vertical. For example, the following code would produce a vertical menu with two items:
Code:
addmenu(menu=["menu_name",,,100,2,"",style_name,,"left",effect_name,,,,,,,,,,,,
,"item1","url1.htm",,,1
,"item2","url2.htm",,,1
])
,"item1","url1.htm",,,1
,"item2","url2.htm",,,1
])
In the above code, the 12th parameter is not set. Setting it to 1, as shown below, would yield a horizontal menu with two items.
Code:
addmenu(menu=["menu_name",,,100,2,"",style_name,,"left",effect_name,,1,,,,,,,,,,
,"item1","url1.htm",,,1
,"item2","url2.htm",,,1
])
,"item1","url1.htm",,,1
,"item2","url2.htm",,,1
])
Hope that helps,
Kevin
Horizontal and Vertical in same time possible
Poster: Cista
Dated: Tuesday October 22 2002 - 16:39:47 BST
Imagine a vertical menu with 4 main items. I'd lik when I click on the first item for example, see the subitem just under the parent item, same horizontal position and under the subitems the others main item.
Possible?