(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:
Bootstrap Toggle Tabs Mobile-friendly Page Maker  |  30 Killer Free Bootstrap Image Carousel and Gallery Scripts  |  36 Top Eye-catching and Free AMP Elements Templates for 2021  |  Fresh CSS Bootstrap Carousel Video Players and Nav Menu Demos  |  15 Recommended Website Makers Arranged by Level Of Popularity  | 
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 Generator | Free AI Website Generator | Website Generator AI | AI web design generator