Recent Questions Css Tree Style ListQ:
I'd like to be able to right click on items in a collapsible menu and then pick actions to perform from a context menu
Is this possible?A: You can use API functions
function dtreet_ext_userRightClick (itemID)
See more info here:
Why is it that when we place a drop menu ina div that the droppping part is not right uner the menu? The menu on top banner is the problem.. Thesame code outside of a div futher down the page works fine.
I can place the same menu outside of the div and it works fine.When it is in a div the drop part of the menu is pushed to the far right of the screen.A: Brian, 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;"
So, you'll have:
<DIV id="menu" style="POSITION: absolute;">
I am testing it on my website.
I have under the submenu 'Generalites" two links "Presentation" and "Formulaires"
If I click on link Presentation then this link will become in a different color and also its background.
function dtreet_ext_setPressedItem (menuInd, itemID)
Please, see here:
You can also set
var tsaveState = 1;
More info you can find
To expand specific items you should use API function
function dtreet_ext_expandItem (itemID, expand)
How do I remove scrollbars from the iframe within the mouseover popups?