Recent Questions Ajax Memory Tree Keep Expanded
Q: I want to use my own function within menuItems in the drop down menu button.
A: You can use Javascript instead standard links. For example:
var menuItems = [
["text", "javascript:launchWin('popups/popup_member_browser.cfm','css_MemberBrowser',600,720,0,0,0)"]
];
Q: Hi - I've turned on tsavestate which works, but it acts erratically. I have my javascript cascade menu .js file in a /js folder, and the site has multiple directories, but all the pages in all directories use the same menu SSI include, which uses the same deluxemenu code in the common /js folder. I read your KB article about states, cookies and multiple folders, but it is confusing... does it actually save state per directory, versus per the entire domain? I only have one menu for the entire site.. just would like it to save state correctly for all pages in all folders that include that javascript cascade menu.
A: It's a feature of the browser. It creates different cookies for eachsubdirectory.The only way is to place all your pages in the one directory.
Q: 1: For the deluxe-menu, can I keep a submenu shown even when my mouse pointer is NOT over the submenu anymore (besides the delay functions?) and hides only after a mouseclick somewhere (like the Microsoft menu of outlook)?
2: Is there a way to use the smartscrolling function (for a vertical menu) on the MAIN menu instead of only for the submenu's?
A: 1) Unfortunately, you can't do it.
You can use Javascript/DHTML Tree,
http://deluxe-tree.com
2) Yes, you can't use scrolling in the main menu. But if you have verylarge menu you can use multilevel menu,
http://deluxe-menu.com/multilevel-menu-sample.html
Theoretically we can do scrolling in the main menu, but we think that it will be better touse multilevel menu in that case.
Q: I have tried various different ways, but I cannot get a separator image
I have specified in the Separators section of menu generator to display in.
I have verified that the image exists, but still nothing.
A: To add a separator you should
//--- Separators
var separatorImage=""; //for subitems (top items in vertical menu)
var separatorWidth="100%";
var separatorHeight="3px";
var separatorAlignment="right";
var separatorVImage="separator.gif"; //for the top items (subitems items in vertical menu)
var separatorVWidth="100%";
var separatorVHeight="2px";
var separatorPadding="";
You can create separators using menuItems
(you can do it in DeluxeTuner, use "Add separator" button),
for example:
["||All Images","gallery_all.html", , , , "_self", , , , ],
["||-"],
["||Pricing & Ordering Info","gallery_pricing.html", , , ,"_self", , , , ],
Try that.