Set the pressed item/subitem using dm_ext_setPressedItem () function.
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item. menuInd - index of a dynamic menu on a page, >= 0. submenuInd - index of a submenu, >= 0. itemInd - index of an item, >=0. recursion = true/false - highlight parent items.
For example lets highlight "Samples" item in the upper menu. To do it you should call dm_ext_setPressedItem () function with the following parameters: dm_ext_setPressedItem (0,0,2,1); Highlight "Samples" item.
Define this function on each page before you call data file:
<script type="text/javascript">
onload=setPressed;
function setPressed()
{
dm_ext_setPressedItem (0,0,2,1);
}
</script>
<script type="text/javascript" src="menudir/data.js"> </script>
To highlight "Samples/Sample 5" item you should call dm_ext_setPressedItem () function with the following parameters: dm_ext_setPressedItem (0,4,4,1); Highlight "Samples/Sample 5" item.