Recent Questions Tree Menu
Q: We dont want to change the Target, Target will be always _self, but sometime the user would like to open links of easy drop down menu in a new window.
We just wnat to know if posible to do it.
A: I think that it is not possible to create such menu using Pop up menu.
But you can try to write your menuItems in the following way:
["|<a href='http://deluxe-menu.com/parameters-info.html'>Parameters Info</a>","", "", "", "", "", "", "", "", ],
Right click on the "Product Info/Parameters Info" item.
But you should create correct style for <a> tag.
Q: I evaluated JavaScript Tree Menu over the weekend and I really like it. I believe I'll be buying it this week. I have one question. Is it possible for the menu to be aware of what page you have selected and highlight the corresponding menu item on that page.
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: First, i like the time I save with this program, but it isn't going to help me that much if I can't put the menu where I want it on my page.
No matter how I set the "positioning", it shows up in exactly the same place over and over. I've put it in table cells, I've given it absolute positioning... none of it matters.
A: If you want to center the menu paste itwithin the <div> or <table> with a static position and specify a center alignment for it, for example:
<DIV align=center>
<<SCRIPT src="data/data.js" type=text/javascript>
</SCRIPT>
</DIV>
<table width=800>
<tr>
<td align=center width=600><script type="text/javascript" src="data/data.js"></script></td>
</tr>
</table>
Please, set exact value for var menuWidth parameter, for example:
var menuWidth = "600px";
This can help to align your menu correctly in all browsers.
Try also to specify units in "px".
Set also:
var absolutePos = 0;
Try that.
Q: I have a question:
The smHidePause = 1500
If hide is busy (during 1500), and I click somewhere else on the screen (empty place), I want the submenu to hide.
Can I make this happen?
A: Yes, you can do it.
You should use the following function to hide your submenus:
_dmsm(0);
where 0 - is index of the menu on a page >0.