Recent Questions Javascript To Minimize Treeview
Q: I have the trial of deluxe menu. We are in the process of purchasing it.
I just noticed that the div drop down menu are not going in front of a flash element that is on the page.
I have set the "opaque" value as per your faq.
Any other things I should check to get the div drop down menu to be in front of the flash element?
A: You should add the following function in the beginning of your data file
function dm_ext_ruleObjectHide()
{
return false;
}
See more info here:
http://deluxe-menu.com/objects-overlapping-sample.html
Q: I have 2 questions about this script I would like to find out before purchasing:
1. Does it support 3rd and 4th level java script navigation menu?
2. How customizable is it style-wise, meaning, I have images I want used for the top level navigation, and background images for the rest. Any way I can achieve this?
A: 1) Yes, you can add as many levels in the java script navigation menu as you want.
2) Actually you can create any java script navigation menu with JavaScript Tree Menu. You can use Individual Styles tocreate your menu. For example:
var itemStyles = [
["itemWidth=92px","itemHeight=21px","itemBorderWidth=0","fontStyle=normal 11px Tahoma", "fontColor=#FFFFFF,#FFFFFF","itemBackImage=data-vista-03.files/btn_magentablack.gif,data-vista-03.files/btn_magenta.gif"],
];
var menuStyles = [
["menuBackColor=transparent","menuBackImage=back.gif","menuBorderWidth=0", "itemSpacing=1","itemPadding=0px 5px 0px 5px"],
];
Please, try the trial version and check menu parameters. Use DeluxeTuner to create your menu.
Q: Can I call javascript within the drop menu javascript?
A: Yes, it is possible.
Actually you can use your own Javascript code instead standard links and html code inside item text. For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
or
var menuitems = [
["<div onClick='urlSubstitution(\'transco/sheet.asp?stype=1\')'>Table of Contents</div>", ""]
];
s
Q: I now have a tree on the left and an embedded frame on the right. When a user clicks a node, the corresponding html page appears in the frame.
Is there a method I can use when a user clicks a node, the web page will jump to a certain location in the page (menu dhtml hhyperlink)? I'm envisioning using one long web page instead of 30 or 40 separate pages. But I would need the program to work with a hyperlink to know where to jump to.
A: See the structure of tmenuItems array:
var tmenuItems = [
[text, link, iconNormal, iconOver, iconExpanded, tip, target, itemStyleInd, itemXPStyleInd, jsFilename],
You can set link and target menu dhtml parameters for each item individually,for example:
var tmenuItems = [
["Home","files/homepage.html","","","","Home","topframe","","",""],
["Contacts","files/contacts.html","","","","Contacts","bottomframe","","",""],
You can also send us the example, so we can understand your problem.