(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 sub dhtml tab menu option highlighted once the new page is reloaded?

Return to Recent Questions


Q: How can I have the sub tab option 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:
Top Mindblowing HTML Image Slideshow Ideas Bootstrap Table Template  |  Bootstrap Buttons Group  |  Best 18 Landing Page Bootstrap Theme Roundup  |  Bootstrap Alert Colors  |  Bootstrap Pagination Responsive  | 
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 Maker | AI Website Generator | AI website design generator