(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 want javascript navigation menu to lock into place when someone visits a page. Is there a way to do this?

Return to Recent Questions


Q: I want javascript navigation menu to lock into place when someone visits a page. Is there a way to do this?

A: Try to set the pressed item using the following API function:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion, parentOpen)
Sets a current pressed item.
menuInd - index of a dynamic menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
parentOpen = true/false - open all submenus to show the selected item

See example here:
http://deluxe-menu.com/highlighted-items-sample.html

Try to click 'Highlight "Product Info/Installation/Description of Files" item'.

You can also try to use the following parameter:
var smHidePause = 1000;
A delay (in ms) between mouse is moved from submenu and its closing.
You can make submenus to stay visible till you click outside the menu or scroll your page.
To enable this feature you should set this parameter in the following way: var smHidePause = -1;






Return to Recent Questions

Related:
46 Fantastic CSS3 Web Page Templates Overview Beautiful JS Page Theme Review  |  Magical HTML Bootstrap Slider With Text Templates  |  Perfect Responsive JS Website Templates Review  |  Splendid JS Design Maker Overview  |  30+ Top Innovative Software Company Website Template 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 | Free AI Website Builder | Free AI Website Generator | AI Website Generator | AI website design generator