Is there a way to set the default javascript onmouseover 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 javascript onmouseover menu in a page.
A:
You should use the following parameter:
var bselectedItem = 3;
Where 3 is the number of your javascript onmouseover 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:
- March 15, 2009 - How can I disable items in javascript onmouseover menu?
- Apr 02, 2009 - Where can I change the font size of the top javascript onmouseover menu items?
- May 07, 2009 - I am interesting to use the javascript onmouseover menu for integration in some CMS...
- May 23, 2009 - I can see only the code generated by the GUI tool.How should I install javascript onmouseover menu?
- Jun 10, 2009 - When I run the javascript onmouseover menu on my website I get javascript errors on page
- Jun 27, 2009 - How can I upgrade my javascript onmouseover menu to v.2.0?
- Jul 14, 2009 - Flash in Firefox browser disappears behind the javascript onmouseover menu.
- Jul 31, 2009 - How to add the new items to the javascript onmouseover menu without using two data files?
- Aug 17, 2009 - Can we set right alignment in the javascript onmouseover menu?
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the javascript onmouseover menu?
- Sep 21, 2009 - How do I expand the length of vista javascript onmouseover menu tab images to accommodate longer text?
|