(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'd like the pressed item in the dhtml expand menu to maintain its color after the refresh command?

Return to Recent Questions


Q: I activated option "state saving" but I think there's a problem;
when I open the website and click on an item of the menu, the pressed item becomes red
(up to now it's ok), but if I have to press F5 on the keyboard or press on the refresh button
to refresh the web page, the pressed item loses its color red.
I'd like the pressed item in the dhtml expand menu to maintain its color after the refresh command.
How can I solve this problem?



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));

}

</script>





Return to Recent Questions

Related:
Beautiful Slider jQuery Application Fantastic Bootstrap Page Themes For Your Company  |  Exceptional MP4 to HTML5 Converter Review  |  Reputable Drag and Drop Web Builder | Overview  |  Great MP4 to HTML5 Generator Tutorial  |  First-rate Easy Website Builder | How-to Guide  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Best AI Website Builder | AI Website Generator | AI Website Builder | AI Website Maker | Free AI Website Generator