Recent Questions Jquery Tree Style Navigation Example
Q: I have seen a certain menu effect on a few websites and have so far been unable to reproduce it in simply HTML/CSS. Today I saw the effect on a website, looked at the source code and it appears they are using some of your code.
I have a fairly typical screen layout with a menu bar on the left hand 10% of the screen and the main screen content on the right 90%. Some of my screens get very long, so that when you scroll all the way down to the bottom, the menu is left way up off screen. I would like the menu block to move down so that it is always a certain number of pixels below the top of the viewed screen, not the absolute top of the page. Is this something your software does? If so, which one of your products?
A: You can create such menu with JavaScript Tree Menu.
You should use floatable menu, so you can always see the menu.
But to use the floatable feature
var floatable=1;
you should use the absolute position for the menu
var absolutePos=1;
var posX="10";
var posY="10";
Please, try the trial version of the menu.
Q: Our company has been using the trial version of JavaScript Tree Menu and was satisfied enough with initial integration efforts to acquire the license version.
We are interested in making our main dhtml rollover menu items a constant width, but the data.js parameters ( var menuWidth="800px"; var menuHeight="30px"; var smWidth=""; var smHeight="";) don't seem to give us that capability. We dynamically remove main menu items based on user roles and when we do the main menu always re-sizes and the remaining main menu item widths no longer match our sub-menu widths. We're able to adjust for this by using the API but that seems to be a lot of unnecessary coding. If we could keep each main menu item a fixed width, our sub-menu widths would not have to change.
Do you have information on how to accomplish fixed main menu item widths, even better would be an example?
A: Actually you can specify the width and of all or individual dhtml rollover menu items or submenus usingIndividual Item/Submenu styles.
Q: For each item in my menu, can I specify an image in place of text or background?
A: If you want to use images instead item text, you should useindividual item styles. For example:
var itemStyles = [
["itemWidth=200", "itemBackImage=image1.gif,image2.gif"], // style 0
["itemWidth=150", "itemBackImage=image3.gif,image4.gif"], // style 1
];
var menuItems = [
[" ", "link", "", "", "tip", "target", "0"],
[" ", "link", "", "", "tip", "target", "1"],
];
Where "0", "1" - style number in itemStyles.
Please, use Deluxe Tuner application to create and assign individualstyles. You can find Deluxe Tuner in the trial package.
Q: I would like all my submenus of the html menu to appear in the same location on the page and not relative to the parent menu item.
A: You can do it using the following parameters:
var subMenuAlign = "left"; - Horizontal alignment for submenus.
"pleft", "pcenter", "pright" - alignment relative to the parent submenu.
var subMenuVAlign = "top"; - Submenus vertical alignment.
"ptop", "pcenter", "pbottom" - alignment relative to the parent submenu.