I don't understand how dm_ext_setPressedItem() function works in left navigation menu
Return to Recent Questions
Q:
I would like to add the javascript API to a link contained in my website that will have the corresponding item in the deluxe-tree menu act as if it was "clicked".
Presumably I need to add the script (for example) <A HREF="http://deluxe-menu.com/features-info.html" TARGET="_self" "..javascriptHere ..">.
Can you give me an example please of what code goes into there.
I presume I use dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion) but where do I get the ????Ind data from and make the javascript call in the above link.
A copy of a working example together with where to get the data , perhaps on your own web pages, would help.
A:
Deluxe Tree doesn't save a pressed
item as it saves a tree state. It works within 1 page only and if you
reload the page you should set a pressed item using Javascript API:
function dtreet_ext_setPressedItem (menuInd, itemID)
<script type="text/javascript">
var i = <?php echo $selitem; ?>;
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
You should define selitem using server side script.
Return to Recent Questions
Related:
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Oct 06, 2006 - How can I use right-to-left languages in javascript popupmenu?
- Oct 21, 2006 - It appears that this javascript expand menu only supports IE (on the PC and Mac).
- Nov 20, 2006 - We need to have 2 javascript hover menu on one page.
- Dec 05, 2006 - I can not createPopup windows by clicking on a menu.
- Dec 15, 2006 - I can't seem to have a "contact us" menu item to work in the html navigation menu.
- Dec 23, 2006 - When I have tried to look my side menu bar in the browser it has the active x message
- Jan 09, 2007 - I'm still can't understand how to make drop down menus
- Jan 27, 2007 - The Janarator image does not show javascript menu example
- Feb 12, 2007 - There seems to be a 'glitch' with my transparent drop down menus when I use Firefox.
- Feb 27, 2007 - I am unable to see any separators when working with javascript drop menu
|