Recent Questions
Q: Is it possible to insert an item at the top of the submenu in the popup menu?
A: To insert item in the specific position you should use thefollowing function:
function dm_ext_addItemPos (menuInd, submenuInd, iParams, Pos)Q: How do I change the font style for menus to bold, but leave the sub-menus normal in the html navigation bar?
I understandthere’s a “fontStyle” variable, but is there an “itemfontStyle”?
A: You can use Individual Item styles to set specific parameters for eachitem or submenu.
var fontStyle=["normal 9pt Verdana","normal 9pt Verdana"]; //for subitems
//style for the top items:
var itemStyles = [
["itemHeight=21px","itemBackColor=#F2F3F2,#1665CB","fontStyle='bold 9pt Verdana','bold 9pt Verdana'"],
];
Q: Can I expand all tree category, or expand two tree category?
I like your javascript menu expand product.
A: You can expand all items in Deluxe Tree, set:
var texpanded=1;
To expand specific items you should add "+" sign before item's text:
["+Samples Gallery","", "", "", "", "XP Title Tip", "", "1", "0", "", ],
["|+Samples Block 1","", "default.files/icon3_s.gif", "default.files/icon3_so.gif", "", "", "", "", "", "", ],
["||New Sample 1","testlink.htm", "default.files/iconarrs.gif", "", "", "", "", "", "", "", ],
["||New Sample 2","testlink.htm", "default.files/iconarrs.gif", "", "", "", "", "", "", "", ],
Q: Hello, I am trying to figure out how to use the Dynamic functionality in the java menu codes. I believe I want to use something like the dm_ext_changeItemVisibility function, and I want it to be dependent on HTML wrapped around the menu item.
Below is functionally how I want it to work:
Show menu item 1
Show menu item 2
<if condition="!is_member_of($bbuserinfo,10)">
Show menu item 3
</if>
Show menu item 4
Is there an example you can share that does something like this? I searched the site and could not find an answer.
A: Yes it's possible, please see
http://deluxe-menu.com/dynamic-functions-sample.html
Disable "Product Info/Installation" item.
and
Hide / show "Samples" item.
You can call these function via javascript depending on your conditions.