Recent Questions Pure Css Tree Menu
Q: We purchased the JavaScript Tree Menu a few months ago and are extremely happy with the product. We have been getting great compliments about our new navigation system.
The menu has over 500 links and functions like a dream! One issue I am having, that I just cannot seem to figure out how to fix, is the following:
Our nav menu is displayed approx. 70 pixels from the top of the browser window. On the drop down links that have a number of items (example 1 in the image below), they display underneath the menu, however on the links that have only a few items, they display above the menu bar in java script as in example 2 in the image below.
How can I set it so that no matter how many drop-down items there are, they always display under the menu bar in java script, not on top?
A: Try to set the following parameter:
var subMenuVAlign="top";
Q: I'm trying to have two separate menus on my web page. I read what was written in your FAQs about multiple menus, but the response was too cryptic.
It seems to me that if the dmWorkPath for each menu is declared separately, then the menus should work separately (with no interaction). I did not find this to be the case.
Do you have more complete information about creating multiple menus on one page? I would like to understand the issues.
A: David, if you want to create multiple menus on one page you should only call several data.js files with the menu.
For example you can see templates.html. You can find this file in the trial package.
Q: Is there a javascript API for the expandable menu tree to fire an user click event so the browser will load proper page accordingly? I looked around the current APIs from your site and could not find one.
Please advise.
A: You can use dtreet_ext_userClick (itemID) function.
See more info:
http://deluxe-tree.com/functions-info.html
Actually you can use your own Javascript code instead standard links and html code inside item text. For example:
var tmenuItems = [
["text", "javascript:your_code_here"]
];
or
var tmenuitems = [
["<div onClick='urlSubstitution(\'transco/sheet.asp?stype=1\')'>Table of Contents</div>", ""]
];
Q: Is there any way to have a floating menu float in relation to the centre of the screen (not the left of the screen). I have a centre based website. When I use the floating menu and view the site on different screen sizes, the floating menu appears in different places on the x scale. For example, I would like it 20 percent from the edge of my centre based webpage, not 20 percent from the left of the screen. I want the menu to appear on the same horizontal place on my webpage (which is centre based)
A: No unfortunately it is not possible to write
var posX="50% - 20";
You should adjust your coordinates to center the menu with absoluteposition.