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:
- Oct 06, 2006 - How can I use right-to-left languages in javascript popupmenu?
- Dec 15, 2006 - I can't seem to have a "contact us" menu item to work in the html navigation menu.
- March 14, 2007 - Does your license for css navigation menu need to be tied to a domain name to work?
- March 20, 2007 - Do you supports key navigation, like alt-F to select a javascript animated menu?
- March 22, 2007 - If your cascade menus supports key navigation, like alt-F to select a menu?
- April 15, 2007 - Is there a way to create a vertical menu html with the submenus fly out to the left
- May 06, 2007 - Sub-menus appear away for the menu/ dhtml navigation bar.
- June 10, 2007 - Is there anyway to move items further to the left in the java script tree menu?
- June 13, 2007 - I am trying to get the floating dhtml menu in the left column to float...
- July 12, 2007 - Is there a way to leave a main navigation item highlighted in the dhtml top menu?
- July 21, 2007 - In IE7 the position of submenus is too far over to the left from drop down menu
|