Recent Questions Download Template Sothink Tree Menu HorizontalQ: I'm trying to position my menus inside absolutely positioned <DIV> tags. If the <DIV> tag has style="position:absolute; top:100px; left:50px;" in the actual tag, deluxe-menu seems to work correctly. If I have the "position:absolute; top:100px; left:50px;" in a <STYLE> tag or a linked stylesheet and applied using id or class selectors, then deluxe-menu does not work correctly: sub menus have a 100pixel offset in the y direction and a 50 pixel offset in the x direction. This is with no change to the .js data file (I have absolutePos=0;) Is this a known issue, and is it planned to be fixed?
A: See, the problem is that the script can't get css properties of the object if they are described in separate .css block (or file).
In other words, you can't get the value of "position" attribute of the object if the object doesn't have this property within inline style(style="position:absolute"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
For example, you should add style="position:absolute;"
So, you'll have:
<DIV id=head style="position:absolute;">
Now we have only such solution for this problem.
We'll try to fix this problem in the future versions.
A: You can use Individual Item Styles to set showByClick parameter forthe top items only.
var itemStyles = [
Q: How do I get the sub-menus to open in the 2nd frame of a 3 vertical frameset.
The menu is in the first frame. I want the sub-menus to open in the 2nd frame. I don't see how to set that parameter.
A: You should check your dm_initFrame() function.
dm_initFrame(framesetID, mainFrameInd, subFrameInd, orientation);
framesetID - id attribute of the frameset;
mainFrameInd - index of the main frame (where the top-menu is placed), >=0;
subFrameInd - index of the subframe (where the submenus will be shown), >=0;
orientation - frame orientaion: 0 - horizontal, 1 - vertical.
You should write it, for example
dm_initFrame("frmSet", 0, 1, 0);
Q: I have to pass dynamic value from the link when the user click the mouseover menu.
var menuItems = [
var menuitems = [
["<div onClick='your_code_here'>item text</div>", ""]