Recent Questions Windows Xp Treeview Namespace Extension
Q: I would like to have submenu’s border to be the same for first and second level of submenu.
“Management” item goes over “Staff” item.
I want the same for “Staff” over “Provincial Office”
A: Try to set the following parameters:
//------- Submenu Positioning -------
var topDX = 0;
var DX = 0;
Q: We've been using JavaScript Tree Menu for a couple of years now and we're very pleased with it. Recently, we switched to a layout heavy on CSS, and when we insert the javascript menu code into an absolutely-positioned div, the menu appears where it should, but the sub-menus drop down off to the side in both Firefox and IE. I've tried adjusting the x-offsets in the configuration file with negative values to bring them closer to the top-level menu item, but this doesn't seem to do the trick completely.
I also went through a number of sample questions in the support section of the JavaScript Tree Menu site, but I haven't been able to find any sort of resolution.
If you have any suggestions, I'd be very appreciative.
A: See, the problem is that the script can't get css properties of the object if they are described in separate .css block (or file).
In other words, you can't get the value of "POSITION: absolute" attribute of the object if the object doesn't have this property within inline style (style="POSITION:absolute;"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
You should add style="POSITION: absolute; TOP: 0px"
to the
<div id=div_name>
So, you'll have:
<DIV id=div_name style="POSITION: absolute; TOP: 0px">aaspot_US~.Hration...M&Project Tool Configuration.Try that.
Q: In IE first tab of tabbed navigation is coming selected but in firefox it is not coming selected.
A: Check the following parameters:
var bselectedItem=0; //top items
var bselectedSmItem=1; //submenus
Notice that all indexes starts with 0.
Q: How can I open the links that I created for the items /sub-items on the same window
for the mouseover menu (not on a new window)?
A: You can set target parameter for all items:
var itemTarget="_self";
or for each item individually:
["","testlink.htm","http://images.myregistry.com/images/myregistry/tabs/thingstodo.gif", "http://images.myregistry.com/images/myregistry/tabs/thingstodo1.gif", "Home Tip","_self", "0", "0", , ],