(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    Is there a way to set the default navigation menu tab on a page load?

Return to Recent Questions


Q: Is there a way to set the default tab showing on a page load?

When using the DHTML-Tabs, the second tab seems to be selected tab when displaying navigation menu in a page.


A: You should use the following parameter:

var bselectedItem = 3;

Where 3 is the number of your navigation menu item from the var bmenuItems parameter.
var bmenuItems =
[
["Mac Tab 1", "content1"],
["Mac Tab 2", "content2"],
["Mac Tab 3", "content3"],
["Mac Tab 4", "content4"], // selected tab

];
The ID of the item starts with 0.
You can move this parameter from your data file to html page directly (before you call data file) and set correct value for it on each page. Try that.





Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. website builder software | static website generator | easy free website builder | best website builder software | top free website builder