(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I've been trying to get the menu item in dynamic tree menu to stay highlighted when clicked on and directed to that page.

Return to Recent Questions


Q: I've been trying to get the menu item in dynamic tree menu to stay highlighted when clicked on and directed to that page.

A: Tree Menu 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 apyt_ext_setPressedItem(menuInd, itemID)

<script type="text/javascript">

var i = 4 //index of the selected item
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}


To expand specific items you should use the following function:
dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex (0, 11), 1);





Return to Recent Questions

Related:
Top Mindblowing HTML Image Slideshow Ideas Free and Easy Website Builder  |  Offline Mobile Website Builder Software  |  Easy Website Builder Review  |  40+ Free Bootstrap Templates 2021  |  Best 18 Landing Page Bootstrap Theme Roundup  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Generator | AI Website Builder | Free AI Website Generator | AI website design generator | AI web page design generator