(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:
Good Responsive Site Maker Program - 2021 Tutorial Exceptional Drag and Drop Web Maker App - Honest Review  |  HTML Page Creator Plugins / Overview  |  Smart Cheap and Easy Web Page Builder Tools | Honest Review  |  Fine Open Source Website Maker Software | 2021 Guide  |  Top HTML Site Builder - 2021 Review  | 
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 Maker | Free AI Website Generator | Website Generator AI | AI website design generator