|
When I load a page with dhtml menu sample, the first tab is always highlighted.
Return to Recent Questions
Q:
When I load a page with dhtml menu sample, lets say contact, the first tab is always highlighted,
not the contact tab
A:
I suppose that you've set the following parameter:
var bselectedItem=1;
So, the first tab is always highlighted.
This Tab menu can save pressed item automatically within
1 page only. If you open another page, the menu can't remember pressed
item. You should do that manually using Javascript and menu parameters
(var bselectedItem, var bselectedSmItem) or using any server-side
script (php, asp, etc.)
You should delete this parameter from your data file and write the
following code on each page before you call your data file, for example:
<script language="JavaScript1.2>
var bselectedItem = 3;
</script>
Return to Recent Questions
Related:
- Apr 27, 2009 - In my button popup menu I'm getting an error - Error: 'floatable' is undefined...
- Aug 28, 2009 - Can this drop menu javascript work with tables?
- Sep 21, 2009 - How do I expand the length of vista net drop down menu tab images to accommodate longer text?
- Oct 25, 2009 - The first item of the menu dinamico html stays highlighted when I load my page.
- Nov 01, 2009 - If there is a way of establishing the width at "runtime" in the menu dynamique vertical?
- Jan 05, 2010 - ..sub-items of my pop up menu using are all listed on the same line as the tabs
- Jan 08, 2010 - ..bitebackimage is not showing in the javascript tree menus tabs samples
- Jan 11, 2010 - BUT the pressed tab is not be marked in my image rollover menu..
- March 26, 2010 - The information on the first tab is appearing on every code drop down menu.
- March 30, 2010 - When I click on the net dropdown menu always only one tab is selected.
- April 17, 2010 - I would like the visited link in the menus javascript stay highlighted
|