Recent Questions Javascript Dynamic Tree Ajax
Q: I can't get drop down navigation menu to centre in the table..
I want it to - which is just below the header flash
Could you let me know what to do
A: Now you're using absolute position for JavaScript Tree Menu:
var absolutePos=1;
You should use relative position:
var absolutePos=0;
Try that.Q: The spacing between each item of the top horizontal dropdown menu is uneven but I don't know why.
If you highlight them all it becomes more obvious.
It is almost as if the space after a 2 word link is twice the space after a one word link or else the total space after each link is related to the number of letters in the link.
For example the space after 'Discounts' is greater than the space after 'Home' but the space after 'Envelope Printing' is even greater.
A: You can try to set the following horizontal dropdown menu parameters:
var menuWidth="";
var itemPadding="0px 10px 0px 10px";
Q: Do you have a template example of creating menu javascripts using data stored in a database?
A: You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.
However, these scripts don't work inside of Javascript .js files,
so, you should move parameters of a menu from a .js file into an html-page, e.g.:
<!-- JavaScript Tree Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<!-- (c) 2006, http://deluxe-menu.com -->
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var menuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
];
</script>
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.htmlQ: When Mouse hover on Menu, menu Items showing below (showing down) the Menu. Is it possible to show the Menu Item List in up direction (above the Menu)? Please assist me in this issue.
A: See more info here:
http://deluxe-menu.com/ways-showing-submenus-sample.html
You should use the following parameter:
var smViewType = 1;