Recent Questions
Q: I'm trying to evaluate the possiblity of using your menu in our product. Can we specify our own onclick event handler for the menu item?
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"]
];
Q: We would like it so when you click on an option in the free dhtml menu, the page shows up in the main middle frame..So far, I can only seem to get it to show up in its own page.
A: You should set the correct target parameter for your items.
You can set target parameter for all items:
var itemTarget="main";
Where main - is the name of the main middle frame where you want to open the link.
["Home","testlink.html", "", "", "", "main", "", "", "", "", "", ], Q: Do you have a list of which browsers and which operating system platforms that your DHTML Menu is compatible with?
A: Please, see the list of supported browsers.
Windows OS
---------------------------
Internet Explorer 5+
FireFox
Mozilla
Netscape 4.7+
Opera 5+
MAC OS
---------------------------
FireFox
Safari
Internet Explorer
Linux/Unix OS
---------------------------
Konqueror
Mozilla
Q: I can’t highlight the selected menu item of the current page in the javascript flyout menu?
A: Please, check the following parameter
var pressedItem=-2;
This parameter sets an index of an item that will be highlighted by default.
-2 - the toggle mode is disabled;
-1 - the toggle mode is enabled, but no items highlighted by default;
0,1,2,3,... - index of highlighted item in a top-menu.
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.
You can also set the correct:
var pressedItem=1;
parameter on each html page.