Recent Questions
Q: Things are mostly working great. I want my menu to appear centered at the top the page. Here's the code:
<table style="text-align: left; width: 100%;" border="0" cellpadding="2"cellspacing="2">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><script type="text/javascript" src="navbar.js"></script>
</td>
</tr>
</tbody>
</table>
The table appears at the far left edge of the window. I tried with both absolute (x=20, y=10) and relative (both x and y unset) coordinates. Help!
A: If you want to center the menu paste itwithin the <div > or <table> with a static position and specify a center alignment for it, for example:
<DIV align=center>
<SCRIPT src="data/data.js" type=text/javascript>
</SCRIPT>
</DIV>
<table width=800>
<tr>
<td align=center width=600> </tr>
</table>
Please, set exact value for var menuWidth parameter, for example:
var menuWidth = "600px";
This can help to align your menu correctly in all browsers.
Try also to specify units in "px".
Set also:
var absolutePos = 0;
Q: I'm trying the deluxe menu and I'm positively impressed.
But now I'm trying to simply use javascript to add some properties to my menu.
I modified the dynamic to 1
and I get only one error in the javascript monitor telling me:
Error: dm has no properties
Source File:
http://devel.discgolf-geneve.ch:8081/docroot/dg/js/menu/data.files/dmenu_dyn.js
Line: 8
A: Please, see how you should write this function:
function dm_ext_addItem (menuInd, submenuInd, iParams)
<script type="text/javascript" language="JavaScript1.2">
dm_ext_addItem(0, 0, ["Hello", "testlink.htm", "", "", "Hello", "_blank", "-1"]);
menuInd - index of a menu on a page, >= 0. (you have written menuInd=1, but if you have one menu on your page you should write 0).
You also have written itemStyleInd=1, but you have only one style in your menu. So you should write "0" or "-1".
Q: Do you have it in vertical orientation for dropdown menu javascript, please?
A: To create vertical drop down menu you should set the followingparameter:
var isHorizontal=0;
Q: I have purchased a license for the Deluxe Tuner and I'm quite happy with the program.
However, I seem to have some trouble getting javascript menu js on the Net without the annoying "incorrect copyright" warning.
The warning does not appear on all computers I checked, and it only appears when I paste the code into HTML myself (in a table, since I want the javascript menu js to be in the relative vertical middle of thepage and I don't think I can do this in D.Tuner itself).
A: Now you have:
<noscript>
<a href="http://deluxe-menu.com">Javascript Tree Menu by Deluxe-Menu.com</a></noscript>
Try to write NOSCRIPT tag in he following way:
<noscript> <a href="http://deluxe-tree.com">Javascript Tree Menu by Deluxe-Menu.com</a></noscript>