Recent Questions Js Tree Mysql
Q: I've just put together a new drop down menu box for one of the sites I'm working on and whilst in IE it works fine, in FF the drop down menu box is not appearing over the Flash banner.
I don't understand why as this was put together with the latest version of JavaScript Tree Menu - my understanding was that this issue was resolved a while back?
Can you help me sort this.
A: See fix for flash in Firefox here:
http://deluxe-menu.com/objects-overlapping-sample.html
Q: I’m very interested in your script of deluxe-menu.
I tryed your script out and have some questions now:
How do I highlight main menu items when I selected a main category?
How do I highlight submenu items when I selected a sub category?
How can I have a submenu unfoldet when I selected the matching main category?
I would be pleased to have answers to my questions as soon as possible.
Thank you for support!
A: The menu has only two states normal and mouseover. We'll try to add the pressed state in the future.
You can set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.
Q: Very interested by your product, I want to know, before buy, if I can call javascript function when the user click on a menu Items;
you have this example, but I want the possibility to call a javascript function in the client side :
var menuItems = [
[text, "javascript:alert('Hello, world!')", icon1, icon2],
];
Is it possible, if yes could you give the sample, because Milovic menu have a javascript:function call, what about your product ?
Thank you for the answer.
A: You're able to use Javascript for each item, for example:
var menuitems = [
["item text", "javascript:your_code_here"]
];
Unfortunately, you can't assign onmouseover/onClick event to each item.
However, you can achieve this by using standard html objects within items, for example:
var menuitems = [
["<div onClick='your_code_here'>item text</div>", "index.html"]
];
Unfortunately we don't have such example.
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.