(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    How can I have the option for the navbar tabs that initiated the action highlighted once the new page is reloaded?

Return to Recent Questions


Q: How can I have the option for the navbar tabs that initiated the action highlighted once the new page is reloaded?
I want to highlight the tab which is done with 'bselectedItem', please tell me about the sub-tab option.


A: See you cannot create subitems in:
var tabMode=0;
it is not correct.

You should set
var tabMode=1;

The following parameters set the pressed items for top items and subitems:

var bselectedItem=0; //top items
var bselectedSmItem=2; //subitems

where 0,1,2... is the index of the item in bmenuItems.

- delete var bselectedItem=1; and var bselectedSmItem=2; parameters from your data file
- set correct parameters on each page before you call data file, for example:

<noscript><a href="http://deluxe-tabs.com">Javascript Menu by Deluxe-Tabs.com</a></noscript>
<script type="text/javascript" src="menudir/dtabs.js"></script>
<script type="text/javascript">var bselectedItem=3;
var bselectedSmItem=5; </script>
...
<script type="text/javascript" src="menudir/data.js"></script>





Return to Recent Questions

Related:
Fresh CSS Bootstrap Carousel Video Players and Nav Menu Demos 15 Recommended Website Makers Arranged by Level Of Popularity  |  36 Top Eye-catching and Free AMP Elements Templates for 2021  |  Mobile-friendly Page Maker  |  Responsive Site Theme  |  Responsive Website Maker  | 
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 | AI Website Builder | Free AI Website Generator | Website Generator AI