Recent Questions
Q: I see most of the sub-menus of the navigation bar (if there is space on the left side),
they are opening on the left side instead of right side..Could you please let me know how to fix it.
A: You should change the following parameter:
var subMenuAlign="right";
to
var subMenuAlign="left";
Q: I’ve tried every configuration available—absolute and relativepositioning and so on. I can’t get the menus to display correctly.
I have to offset the topDX by -150 and so on just to fudge it into a CLOSE position…it certainly doesn’t mirror the preview window
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:
You should add style="position:absolute;"
to the
<DIV id=navholder>
So, you'll have:
<DIV id=navholder style="position:absolute;">
Q: In Firefox, the menu bar css is hidden behind Flash player. Anyway to fix this?
A: See fix for flash in Firefox here:
http://deluxe-menu.com/objects-overlapping-sample.html
Q: How do assign my own onclick events to menu options for the dhtml menubar?
I want do more than just redirect to an href.
A: Actually you can use your own Javascript code instead standard links.
For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
or
var menuitems = [
["<div onClick='your_code_here'>item text</div>", ""]
];