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 thesub-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 andsubitems:
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, forexample:
<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>
Q: No matter where I paste the script in the html for the drop down menu I created, it shows up at the top left corner of the page.
I would like it to go below the blue banner at the top of the page.
Please advise as to what I am doing wrong.
A: Now you're using absolute position for the menu:
var absolutePos=1;
var posX="10px";
var posY="10px";
Try to use relative position
var absolutePos=0;
var posX="10px";
var posY="10px";
Q: Hi there. I am evaluating your tabs before I purchase and I ran into a small problem. If I can get this resolved I am ready to purchase.
I need to be able to execute some javascript when I click on a tab. What I am planning on doing is I want to dynamically set the location.href property of an iFrame located inside of a content div.
I can't figure out how to do it. Any help will go a long way for me to decide to purchase. Thanks!
A: You can use your own javascript functions in the menu items.
You should paste "javascript:some_function()" into item's link field, for example:
["tab text","javascript: window.open('test.html', 'frameName')", ...],
or
["tab text","javascript: getURLForFrame()", ...],
Try that.
Q: What is occurring is that the information on the first tab is appearing on every tab. The other tabs are behaving correctly, but the first tab appearing at the top.
A: Now you have such items
["$Contacts", "contacts",,,,"How to contact Civil Liberties Australia", "0"],
["The Board", "board",,,,"Members of the CLA Board", "0"],
["Policies", "policy",,,,"An outline of CLA's policies", "0"],
["Other Matters", "other",,,,"Other administrative matters of CLA' page","0"],
But I cannot find DIV with ID "contacts".
May be you should write
["$Contacts", "content",,,,"How to contact Civil Liberties Australia", "0"],
Please, check it.