Recent Questions Attractive Tree View In Xml Code
Q: I'm curious to know if this dhtml menu cross frame work with frames. Are there any limitations regarding frames?
I'm thinking of having the tree in a left-hand frame and using it to change two stacking frames to the right. Do you foresee any issues with this plan?
A: JavaScript Tree Menu
There is cross-frame mode in JavaScript Tree Menu, see more info here:
http://deluxe-menu.com/cross-frame-mode-sample.html
Javascript/DHTML Tree
You can install your Tree Menu in a left-hand frame and load pages inthe another frames. You can set target using the following dhtml menu cross frame parameter:
var titemTarget = "framename";
Please, try the trial version.
Q: I can’t seem to figure out how to keep last clicked item in my java menu script marked.
I use these options:
pressedItem = -1
var saveNavigationPath = 1;
Where and how do I determine the background color of the clicked item?
I also have this problem on Javascript/DHTML Tree.
A: The menu has only two states normal and mouseover.
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<script type="text/javascript"> var pressedItem=3;</script>
...
<script type="text/javascript" src="menudir/data.js"></script>
You can also set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.
Q: I have the following problem. I've set target parameter to "_self".
But my html files still opens in a new window.
A: Please, check the following parameters:
var itemTarget="_self"; //default target
You can set target parameter for each item.
See menuItems parameter:
var menuItems =
[
["Home","testlink.html","icon.gif","iconover.gif","Home Tip",target,"1"],
["|Our Products","testlink.html","icon1.gif","icon2.gif","Our Products Tip","_self",,"0"],
];
Try that.
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.