Recent Questions Treeview Styles
Q: Greetings. How do I make a menu item as default selected and open when the page loads with the dhtml menu bar script? Thanks.
A: JavaScript Tree 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">dhtml menu bar script 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 dhtml menu bar script 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: Just one more question.
I'm making a drop menu sample but I want the dropdown sub menus to drop up!
ie: the nav bar will actually be at the bottom of the page so when you hover over, I need the sub items to rise up.
Can you force this? I can't seem to find anywhere to do it.
A: You should set the following parameter:
var subMenuVAlign="bottom";
Q: Another question on the "onePerSession" parameter of window onload popup. Is there some other condition to it? I set it on the popup but the popup keeps coming back up. Could it be related only to window that initially loads?
Another question. I have a page with numerous popup windows. Could there be some strategy to having the opening a subsequent popup opening closing a previous one, so there would only be one popup at a time?
Comment; I found that I could combined multiple popup data.js files (the above webpage) together and now I understand how I don't have to deal with the "skin" popup window.
A: > Another question on the "onePerSession" parameter. Is there some other
> condition to it? I set it on the popup but the popup keeps coming back up.
> Could it be related only to window that initially loads?
It will appear only once per session. But if you open and close yourbrowser your window will appear again.You can send us a direct link to your website, so we can check it.
> Another question. I have a page with numerous popup windows. Could there
> be some strategy to having the opening a subsequent popup opening closing a
> previous one, so there would only be one window onload popup at a time?
You can use the same window and change its content usingdeluxePopupWindow.open() function.Q: We are looking for how we have to do for the previously clicked item in the dynamic tree menu
remains highlighted to inform user what is his current page.
It is possible to achieve this behavior with your product?
A: You should use API functions in that case
function dtreet_ext_expandItem (itemID, expand)
function dtreet_ext_setPressedItem (menuInd, itemID)
See more info about API functions:
http://deluxe-tree.com/functions-info.html
See the samples:
http://deluxe-tree.com/dynamic-drop-down-menu-sample.html
and
http://deluxe-tree.com/highlight-selected-menu-item-sample.html