(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:
Top 41 Wonderful CSS3 Templates Collection Perfect Responsive JS Website Templates Review  |  AMP Mobile Page Template Review  |  Best 46 Fresh CSS Themes Collection  |  46 Fantastic CSS3 Web Page Templates Overview  |  Top 54 Brand New jQuery Themes List  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Builder | AI Website Builder | AI Website Maker | AI web page design generator