(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:
Mobile-friendly Web Page Themes Review Best 50 Inspirational and Beautiful HTML Themes Collection  |  Responsive Site Theme  |  Top 53 Killer HTML Templates List  |  Mobile Page Layouts Overview  |  Bootstrap Site Themes Review  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. free web editor | bootstrap popup window | easyhtml5video.com | css slider | bootstrap image slider