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:
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Oct 05, 2006 - Do you have a working sample of the loading bar with PHP/ MySQL?
- Nov 04, 2006 - There are the features that, unfortunately, cannot be done in javascript drop menu...
- Nov 27, 2006 - In Firefox, the drop down menu html is displayed to the right of the top menu text
- Dec 14, 2006 - How to use a dhtml javascript menu item so that it opens a window at a certain size?
- Dec 31, 2006 - Is there a way to use the javascript floating bar without generating the warning?
- Jan 18, 2007 - Will this dhtml context menu rollout from within an iframe over a regular frame
- Feb 02, 2007 - Is there something special I need to do with your transparent menu in an iFrame?
- Feb 20, 2007 - Can I divide data file of my dhtml menu javascript for several files?
- March 06, 2007 - I got "Access violation at address 004AACF7..." in css menu generator
- March 23, 2007 - Why there is not this easy drop down menus with sound?
|