Recent Questions Directory Tree Js
Q: Hello. I had a question about the vista templates. Is it possible to extend the width on the java menu buttons to get more text in them? I put to much text and the button is repeating itself. Is there a way to extend the width of the button without the repeat?
A: See images in Vista Templates have the fixed width and height (92 x 21).
You can try to use the following parameter to use combinedbackground for your items, for example:
var beforeItemImage = [,]; //left-side image for normal and mouse over state
var itemBackImage = [,]; //background or image for normal and mouse over state
var afterItemImage = [,]; //right-side image for normal and mouse over state
var beforeItemImageW = '';
var afterItemImageW = '';
var beforeItemImageH = '';
var afterItemImageH ='';
But you should create a small images in any Graph Editor, for example:
button_n_back.gif
button_n_left.gif
button_n_right.gif
button_o_back.gif
button_o_left.gif
button_o_right.gif
Q: I am using the dhtml-tabs code. I have 2 tabs that I use for a basic form and an advanced form. The advanced form is on the second tab. When I submit, I get results. When I click the back button, the selected drop menu bar tab is the first one, and not the second. Is there a way to configure the tabs to be persistent or sticky. Such that clicking on the back button will result on being on the second tab, which was the last tab before going to a new page?
A: You can try to use the following function:
dtabs_itemClick(0,1)
To open your second tab.
Q: I downloaded the tuner and am testing the file prior to purchasing. Is there a way to set up categories and beneath those categories there are subitems...then depending on what page I am on in the website, the appropriate category and subitems automatically show up in the javascript tree view menu?
If so, can you please tell me where and how to setup a menu if it's just changing a variable. Maybe you have an example of the web?
Here's an example of what we are needing. If you open your website http://deluxe-tree.com/samples-sample.html there are 2 sep. menus, one at the top and one on the side.
If I click Samples on the top menu, the samples submenu should automatically expand on the javascript tree view menu. How would I set this up?
A: See how you should highlight and expand the selected items here:
http://deluxe-tree.com/highlight-selected-menu-item-sample.html
I'm sending you the example.Q: Is there a way to capture user click event just like the one in the javascript menu sliding?
A: Unfortunately, you can't assign onmouseover/onClick/onContextMenu event to each item.
However, you can achieve this by using standard html objects within items, for example:
var menuitems = [
["<div onContextMenu='your_code_here'>item text</div>", ""]
];