Recent Questions Dynatree Rename
Q: I have built out a vertical menu that fits within a fixed size box. The items of the menus are all fixed size images. However when increasing the font size in the browser under View -> Text Size the spacing between the images increases and the html java menu no longer fits within the fixed space. I did have CSS padding-top in the html java menu that I took out but it still does not fit in the space. I took out but it still does not fit in the space.
Have you run into this before or do you know of a fix for this?
A: You've installed the menu in DIV with absolute position (boxNav). Thatis why you have such behaviour.
Try to use relative position for this DIV.
Q: I get coches word in black when the menu loads the first time and I didn't configured that to happend.
A: Check the following parameters:
var bselectedItem=1;
var bfontColor=["#000000","",""];
Q: Is there any way to keep a menu lit up when going to another page? Or do the menus always have to default back to their normal state?
I want the menu to know what page the user is on and keep that section highlighted. Any ideas?
A: You should 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: You will see I got the first level looking amazing.. this is exactly what I wanted. The interesting thing I figured out was not to use the item border.. this was messing things up. You may notice that when each item highlights.. there is a 1px white line at the separators.. but this is not produced with the item border, but rather from the separator itself which I made in two 1 pixel lines, one blue, on white.. this created that effect.
So now my only problem left is to figure out how to bring this look into the submenus. I was thinking it would be nice to use the separators in the same way throughout the submenus. There does not however seem to be a way to do this. When I tried inserting a separator into a submenu.. nothing happened... I am probably doing this wrong.
Can you please show me how to create the same look I have in the first level in the submenus.. this would be helpful.
I must say, this menu is finally starting to look the way I originally envisioned it. I am very happy. =o)
Thank you so much for all the help you have given me.
A: To add separators in submenus you should write it so:
["|-",] //first level submenus
["||-",] //second level submenus
and so on.
Try that.