![]() ![]() |
|||||||||||
|
|||||||||||
![]() |
|||||||||||
|
|||||||||||
XPBar Items ActionsWith CodeThatXPBar you can customize an action that will be performed after item click event. It may be:
Whole bar's item area is clickable. Remember item's 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 } ] To describe a click action use "action" property: "action" : { "js" : " " // JS code "url" : " " // go to URL "target" : " " // link target "title" : " " // item hint "on" : " " // JS code to evaluate when item is switched to on "off" : " " // JS code to evaluate when item is switched to off } Example - XPBar Items ActionsYou can see an example and complete code here - XPBar Items Actions Example |
|||||||||||
© CodeThat.com, 2003-2005 |