![]() | ||||||||||
![]() | ||||||||||
| ||||||||||
With CodeThatMenu you can
The configuration of the menus can be stored in the separate js file. To describe new menu (main or pop-up) create an object with following structure:
var MenuDef = { "style" : {} "itemover" : {}, "position" : {}, "separator" : {}, "defaction" : {}, "items" : [ ] }; where items - submenu items style - menuitem/box style itemover - menuitem style when in "mouseover" state position - menu position (either relative or absolute) defaction - specifies the default action parameters To describe hierarchical menu use "type" property for specifying special menu style ("popup"/"bar"/"toolbar"). To describe an item use following structure: "items" :[ { "text" : " ", // text to be written inside "style" : {}, // item style in normal state "styleover" : {}, // item style in "mouse over" state "styleon" : {}, // for bool items specifies the style when in "on" state "menu" : {}, // submenu "action" : {}, "position" : {}, "type" : " " // special item type ("bool"/"separator"), // for hierarchical menu only } ] For the hierarchical menu only you can use addition properties:
Read more about CodeThatMenu >>
|