Recent Questions Binary Tree Javascript Svg
Q: I'm using the deluxe-tree.
On the top of the tree there is a title. When i click onthe title the whole menu collapse. How can i disable this option ?
I want to keep the collapse option for the css menu tree when i click on the collapse button but not when i click on the title.
A: Try to set the following parameter:
var texpandItemClick=0;
Q: As a follow up, please could you take a look at the attached images and let us know if there are any settings within the javascript drop menu files set within the previous mail that would make the 1st sub menu indent a couple of pixels when the 2nd sub menu sits correctly.
A: This is space to document borders. We've set this space, so that yoursubmenus will not look like the part of browser window. If you wantyou can delete that space.
Open dmenu.js file in any text editor and find the following code:
space=15;
Change 15 to 0.
space=0;
Q: I bought your product JavaScript Tree Menu.
I wanted to ask you for this problem:
I'd like to put on my home page two java menu examples, one in the right side and one in the left side. I tried to create two java menu examples and put them in the home page with the command PHP include, but the menus don't work correctly. I think the menus search for the same javascript function and so there are problems. How can I solve this kind of problem?
A: You can use as many java menu examples as you want on the same page.
But notice that you should call dmWorkPath parameter and dmenu.js fileon the page only once.
Q: We have two frames in a frameset, one for the menu and one for the content where the javascript menu frame expands normally without any problem. Our content frame's source is determined dynamically. The problem occurs when the content frame contains a page with another frameset in it. Unfortunately we can not avoid this for now. And when this happens our menu stops expanding.
A: Unfortunately it is really possible that you'll have problems in thatcase because the index of the content frame will be changed.
For example now you have:
<frameset id="frmSet">
<frame> //menu index=0
<frame> //content index=1
</frameset>
Your init function will be:
dm_initFrame("frmSet", 0, 1, 0);
But if you'll have frameset instead of content frame:
<frameset id="frmSet">
<frame> //menu index=0
<frameset>
<frame> // index=1
<frame> //content index=2
</frameset>
</frameset>
You should write your init function in the following way:
dm_initFrame("frmSet", 0, 2, 0);
You should change your javascript menu frame init function in that case.