0 - tabs are fixed; 1 - tabs are floatable (used if babsolute = 1).
var bfloatIterations = 6;
Tabs floatable speed. Less value - more speed. Used if bfloatable = 1.
Font
var bfontStyle = ["bold 8pt Tahoma","",""];
Tabs font: normal state, mouse over state, selected tab state. Also sets style and height of font.
Recommended to use equal values for all states.
If 2nd and 3rd values are empty - 1st value will be used for all states.
var bfontColor = ["#ffffff","#ffffff","#000000"];
Tabs font color: normal state, mouse over state, selected tab state.
var bfontDecoration = ["none","underline","none"];
Tabs font decoration: normal state, mouse over state, selected tab state. Values: none, underline.
Items
var bbeforeItemSpace = 10;
Space before tab text.
var bafterItemSpace = 10;
Space after tab text.
var bitemBorderWidth = 0;
Tab border width.
var bitemBorderStyle = ["solid","dotted","solid"];
Tab border style: normal state, mouse over state, selected tab state.
The text of an item. Add "|" symbols before the item text to set a level of the menu item (Tab Mode only).
For example: Home - top-menu item with text "Home" (item level is 0). |Home1 - 1st level item with text "Home1". |Home2 - 1st level item with text "Home2".
Add '-' symbol in the item text to set a separator: - - item is separator
To create a new row you should add "$" symbol before the item text:
["$item Text", ...]
You can add any html code, for example:
var menuItems = [ ....
["<nobr><input value='search the web' size=15 style='font-size:10'> </nobr> Text Text Text","","images/icons/search.gif", "", "", "", "", "2", "", "", "",],
Object ID property
ID attribute of object to show or Java Script code. Link to open in Tab Mode.
For example:
var tabMode = 1;
["tab text","dir/mypage.html", ...],
var tabMode = 0;
["tab text","div1", ...],
["tab text","div2", ...],
Where "div1" and "div2" are IDs of objects within your html page, for example:
<div id="div1">text 1</div>
<div id="div2">text 2</div>
Where frameName - the name of the frame where you want to open the page test.html.
normal_icon, mouseover_icon, selected_icon
Icons of an item in normal, mouseover and selected states.
tooltip
The hint that will be shown after you hover over an item.
item_style
Index of an individual item style, >= 0.
Use this parameter to assign individual styles for each item.
See more info about individual item styles.
You can move all data from tabs-data.js file to your html page within <script></script> tags.
It can be helpful when you load items from a database using a server-side script (PHP, ASP, VB, etc.).
Notice
If you use a server-side script within tabs-data.js file the script won't work.
Individual Item Styles
Individual item styles are special dhtml menu parameters (arrays) that you can assign to each item of the javascript menu.
Using these styles you can create any menu you like.
var bitemStyles = [
["paramName=value", "paramName=value", "paramName=value", ...], // style with index 0
["paramName=value", "paramName=value", "paramName=value", ...], // style with index 1
...
];
Each item style can use the following item parameters:
paramName=value
Description
bfontStyle = style1,style2,style3
Normal, mouse over and selected font styles.
bfontColor = color1,color2,color3
Normal, mouse over and selected font colors.
bfontDecoration = decor1,decor2,decor3
Normal, mouse over and selected font decorations.
Available values: "none", "solid", "double", "dotted", "dashed", "groove", "ridge".
bitemBackColor = color1,color2,color3
Normal, mouse over and selected item background colors.
bitemBorderColor = color1,color2,color3
Normal, mouse over and selected item border colors.
bitemBorderWidth = width1,width2,width3
Normal, mouse over and selected item border width.
bitemBorderStyle = style1,style2,style3
Normal, mouse over and selected item border styles.
Available values: "none", "solid", "double", "dotted", "dashed", "groove", "ridge".
bitemBackImage = img1,img2,img3
Normal, mouse over and selected item background images.
bitemWidth = number
Width of an item.
biconW = number
Icons width.
biconH = number
Height of an icons.
bbeforeItemImage = img1,img2,img3
Normal, mouse over and selected item left images.
bafterItemImage = img1,img2,img3
Normal, mouse over and selected item right images.
All menu parameters are placed within tabs-data.js file. This file contains:
1. Menu parameters
2. Menu items, individual styles
3. Function for a tabs menu initialization (dtabs_init();)
How to Setup
Installation of DHTML Tabs
Place all engine files into any folder of your html project and add a reference to these files within your HTML page.
For example, it will be menudir/ folder.
Relative position
1. Paste the following code into a <head> tag of your page:
<!-- Deluxe Tabs -->
<noscript><a href="http://deluxe-tabs.com">Javascript Tabs Menu by Deluxe-Tabs.com</a></noscript>
<script type="text/javascript" src="menudir/dtabs.js"></script>
<!-- (c) 2009, http://deluxe-tabs.com -->
2. Paste the following code in the place where you want to have the menu:
<script type="text/javascript" src="menudir/tabs-data.js"></script>
For example into a table cell:
You can place all content from tabs-data.js file into html page directly within <script></script> tags.
It can be helpful when you load menu parameters and items from database (e.g. mySQL) using a server side script (ASP, PHP, VB, etc.).