Recent Questions
Q: I have built a menu with deluxe menu and I have put everything in the same map but the page doesn't display the drop down menu it says there is an error. Could you look what I do wrong?
A: It is not correctly to write local paths on your website. They won'twork:
<script type="text/javascript" src="file:///C:/Test%20website%202008/x5/data.js"></script></td>
You should upload your data.js file in the same folder with yourdmenu.js file and write:
<script type="text/javascript" src="data.files/data.js"></script></td>
Q: How can I move the dropdown navigation bar to the far right side?
A: You should install the menu into the TABLE with right alignment.
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" align="right" style=" padding: 0px; margin: 0px; background-color: #14349B;">
<script type="text/javascript" src="home_files/data-vista-BASEPOINT3.js"></script>
</td>
</tr>
</table>
Q: Is there a way to increase the margin between the text on the main tree menu and the edge of the dhtml menu control. The text appears to be right up against the left margin.
A: You can add symbol before item's text, for example:
[" Deluxe Tree: XP Style","", "", "", "", "XP Title Tip", "", "0", "0", "", ],
or you can write:
["+<div style='padding-left: 15px;'>Deluxe Tree: XP Style</div>","", "", "", "", "XP Title Tip", "", "0", "0", "", ],
Actually you can use any html code within dhtml menu control items.
Q: I am using JavaScript Deluxe Menu v3.1 and have some problem with the doctype declaration. If I use the declaration:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
the menuBackImage and itemBackImage images do not display properly. Check with and without doctype declaration. Is there a known fix for this?
A: You should specify units in "px" for the javascript menu object.
var itemPadding="15px 10px 0px 20px";
var menuStyles = [
["smColumns=2","itemPadding=25px 10px 10px 10px"],
["itemPadding=25px 10px 10px 20px"],
["menuBackImage=img/nahbp_1.gif","itemPadding=25px 10px 10px 20px"],
];