Recent Questions Jquery Tree Menu Get Parameters
Q: When on mouseover of a JavaScript Tree Menu icon, naturally a tooltip will come up if you have inserted text there. I seem to have no control over the length of time the tooltip stays active nor the colour or size of the font in that through script drop down menu. Am I missing something? I would like to be able to have the tooltip stay for about 30 seconds and also change the font size and colour of text in the tooltip only.
A: No this is a standard hint, there is no way to increase the time it stayson the screen or change its color.
Q: How do I center the text in a top menu item in the dhtml menu, so that it is centered in the "box" that is clicked?
A: Try to set the following parameter ('Item Appearance' section in the main window of Deluxe Tuner):
var itemAlignTop="center";
Q: Is there a way to increase the margin between the text on the main tree menu and the edge of the dhtml menu control. The text appears to be right up against the left margin.
A: You can add symbol before item's text, for example:
[" Javascript/DHTML Tree: XP Style","", "", "", "", "XP Title Tip", "", "0", "0", "", ],
or you can write:
["+<div style='padding-left: 15px;'>Javascript/DHTML Tree: XP Style</div>","", "", "", "", "XP Title Tip", "", "0", "0", "", ],
Actually you can use any html code within dhtml menu control items.
Q: If you click a list drop menu link in the tree that opens a new page, for example, Solutions:By Type:Psuedo Wire , the link, Psuedo Wire, remains highlighted.
If you click a line that targets _self, for example, Solutions: By Type: T1 Extender, the link does not remain highlighted. My web app will need highlighting and all links will target _self. I have to solve this problem soon or else look elsewhere.
A: It is normal behaviour, your list drop menu can save its state within one page only.
You can try to use frames, and open pages in the content frame. Also you can use aserver-side script (php, asp, vb, etc.) to generate html pages fromtemplates on your server (we use this method on our website
http://deluxe-tree.com).
You should set a pressed item using Javascript API:
function apyt_ext_setPressedItem(menuInd, itemID)
<script type="text/javascript"><br>
var i = 4 //index of the selected item
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
To expand specific items you should use the following function: dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex (0, 11), 1);