(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:
Free and Easy Website Builder 40+ Free Bootstrap Templates 2021  |  Best 18 Landing Page Bootstrap Theme Roundup  |  Offline Mobile Website Builder Software  |  Top Mindblowing HTML Image Slideshow Ideas  |  Bootstrap Table Template  | 
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 | Free AI Website Builder | AI Website Builder | AI website design generator | AI web page design generator