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:29
Sub-Men-U's
Poster: MrImperfect
Dated: Friday July 26 2002 - 15:38:28 BST
Hey, I was wondering if anybody has whooped the menu into submission for submenus? Particularly for version 3.4
Poster: John
Dated: Friday July 26 2002 - 16:32:25 BST
Not sure about the other folks, but I'd need a bit more 'real' information before I can try to help
Poster: MrImperfect
Dated: Friday July 26 2002 - 17:08:45 BST
Well, I thought I made it clear- sorry. I was wondering if anybody knows how to add submenu's for version 3.4 of the menu. I am not exactly clear on it. -Thanks
Poster: John
Dated: Friday July 26 2002 - 19:44:30 BST
Follow Andy's examples that came in the menu_array.js file when you downloaded the script. Something like this...
At the end of the "mainmenu" section of the array file you define your main menu items. Example...
,"Introduction","show-menu=careerplan","intro.htm","Introduction",1
That will show (in order) a main menu item called "Introduction", call for a sub-menu called 'careerplan', point the main menu item "Introduction" to intro.htm, put the message "Introduction" in the status bar, and add a separator bar to the menu (not all the items are required). Have as many main menu items as you need.
Next you need a sub-menu called (in this example) careerplan. Comes right below the ]) at the end of the mainmenu section. Looks something like this...
addmenu(menu=["careerplan",,,305,1,"",style1,,"left",effect,,,,,,,,,,,,
,"STEPS to Successful Career Planning - Overview","intro.htm#steps",,"The Career Planning Process",0
Again, have as many items as you need for the sub-menu, and finish each sub off with a ]) .
That help?