Recent Questions
Q: We have been using a free javascript for a couple of years but now we would like to have a functionality that our existing js is missing.
Basically, we need the ordinary tree view javascript with "+" and "-" that highlights the node clicked. No problem with that I suppose... BUT, we have a bunch of pages with internal links, linking the visitor to other pages within the site (i.e. they don't have to use the leftside tree navigation). What I want is that the navigation js recognizes that a page loads without any node has been clicked, and automagically expands the nav tree and highlights the node for that page.
No AJAX, no XML, no php or asp, just plain HTML + JS is a requirement from our customers.
Is that possible with any of your products...?
A: Yes it is possible with Deluxe Tree.
Find more info here:
http://deluxe-tree.com/highlight-selected-menu-item-sample.htmlQ: How do assign my own onclick events to menu options for the dhtml menubar?
I want do more than just redirect to an href.
A: Actually you can use your own Javascript code instead standard links.
For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
or
var menuitems = [
["<div onClick='your_code_here'>item text</div>", ""]
];
Q: I am trying to make the tab menu to work correctly and after extensive testing and I have come across a problem that I can seem to get resolved. I am using images for the tab menu with no text and <divs> to display information about each tab. However while the page loads I can see all the content from all the <div> java menu bars and when the page if fully loaded, the web page then displays the content correctly with all the content hidden until the correct tab is selected. Mind you this is the only thing on the webpage so there shouldn’t be any load time problems.
Please advice what is happen to resolve this issue.
A: Try to set display: none; property for the style of your DIV, forexample:
<div id="content1" style="display: none;" class="tabPage">
<br><br><br>
<p align=center><img src="../image/img/logo_DM.gif" width=262 height=56 alt="Deluxe-Menu.com"></p>
</div>
<div id="content2" style="display: none;" class="tabPage">
<br><br><br>
<p align=center><img src="../image/img/logo_DT.gif" width=262 height=56 alt="java menu bars"></p>
</div>
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;