|
|
I seems to select the second tab by default in my script drop down menu.
Return to Recent Questions
Q:
I am having great problems making my script drop down menu working, I seems to
select the second tab by default.
I have looked in your frequent asked questions and tried the
below suggestion, I have not used the registered domain as I am in
the process of design.
var bselectedItem = 3;
Where 3 is the number of your 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.
Try that.
But without success?
Any idea?
Please advice
A:
See, the ID of the item starts with 0.
So, if you use TabMode (var tabMode=1;):
var bselectedItem = 10;
["-", ] - separator, ID = 0
["Mac Tab 1", "content1"], ID = 1
["Subitem1","testlink.html",] ID = 2
["Subitem2","testlink.html",] ID = 3
["Mac Tab 2", "content2"], ID = 4
["Subitem1","testlink.html",] ID = 5
["Subitem2","testlink.html",] ID = 6
["Mac Tab 3", "content3"], ID = 7
["Subitem1","testlink.html",] ID = 8
["Subitem2","testlink.html",] ID = 9
["Mac Tab 4", "content4"], // selected tab ID = 10
["Subitem1","testlink.html",] ID = 11
["Subitem2","testlink.html",] ID = 12
If you use tabs (var tabMode=0;):
var bselectedItem = 2;
["-", ] - separator, ID = 0
["Mac Tab 1", "content1"], ID = 1
["Mac Tab 2", "content2"], ID = 2 // selected tab
["Mac Tab 3", "content3"], ID = 3
["Mac Tab 4", "content4"], ID = 4
Return to Recent Questions
Related:
- March 23, 2009 - Submenus of the script drop down menu disappears not fast enough...
- Apr 09, 2009 - My script drop down menu disappears on the home page.
- Apr 19, 2009 - Is there a way to set the default javascript onmouseover menu tab on a page load?
- Apr 20, 2009 - I'm interested in in the actual vertical dropdown menu selection opening in the second frame
- Apr 26, 2009 - I need to be able to automatically wrap the line in the script drop down menu.
- May 14, 2009 - Can I divide data file of my script drop down menu on several files?
- May 31, 2009 - I set a target at '_mainFrame' for my script drop down menu but it opens in the same window.
- Jun 18, 2009 - Is there a way to show a links like I have in the script drop down menu if the JavaScript is not allowed on computer?
- Jul 05, 2009 - Can you walk me through the creating of a script drop down menu?
- Jul 22, 2009 - How to use a script drop down menu item so that it opens a window at a certain size?
- Aug 08, 2009 - I want only one column of submenu in script drop down menu to be displayed, all other columns should be closed.
|