Home
Menu and Navigation
CSS Based
Here
|
Categories
Other Sections
Sweet Ads
Compatibility
|
|
FF1+ IE5+ Opr7+
Drop Down Tabs (5 styles) Author:
Mar 25th, 13': Menu optimized for consistent mobile browsers experience. Only .js file updated. Description: Drop Down Tabs is a horizontal CSS tabs menu that supports a second level drop down menu for each of its tabs. The entire interface is rendered in plain HTML, making the script very easy to customize, plus all of its contents are search engine friendly. You can optionally set which tab should be selected by default when the page loads (ie: 1st tab, 2nd tab etc), or have the script automatically select a tab when the page loads based on a match between the current page's URL and one of the menu tabs'. If there is a match, that tab is selected. Drop Down Tabs comes with 5 sleek examples to let you quickly pick your favourite to use on your site. Customize each example's CSS to modify the look as desired. We got you covered alright! See also: DD Tab Menu (5 styles) Demos: 1) Example 1Note that the CSS for this menu style requires each menu item be wrapped in an additional tag. 2) Example 23) Example 3Note that the CSS for this menu style requires each menu item be wrapped in an additional tag. 4) Example 4Note that the CSS for this menu style requires each menu item be wrapped in an additional tag. 5) Example 5To get Drop Down Tabs, simply download "dropdowntabs.zip", which contains all the files that make up this menu and its accompanying 5 styles. For your reference, some files included within the zip are shown below:
CustomizationSetting up and customizing Drop Down Tabs is very simple, as the entire menu consist of regular HTML and styled using CSS. Logically it makes sense to think of the menu in the following three parts: 1) HTML for the menu tabs: <div id="bluemenu"
class="bluetabs"> As you can see, the menu tabs is simply an ordinary HTML
list wrapped inside a DIV. Give this DIV a unique ID to be used to identify
it on the page. The arbitrary 2) HTML for drop down menu(s): The drop down menus associated with the desired tabs above are defined as individual DIV tags on the page. For example: <!--1st drop down menu --> <div id="dropmenu1" class="dropmenudiv"> <a href="http://www.cssdrive.com">CSS Drive</a> <a href="http://www.javascriptkit.com">JavaScript Kit</a> <a href="http://www.codingforums.com">Coding Forums</a> <a href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a> </div> " " Notice how each DIV carries an arbitrary but unique ID
attribute that matches up with the value of the 3) Script to call following the HTML for both of the above to initialize a Tab Menu instance: Finally, with both parts of a Drop Down Tabs defined, you should call the following script to initialize it on the page: <script type="text/javascript"> The first parameter (highlighted in red) should be the ID of
the Menu Tab to initialize once the page has fully loaded. The second
parameter is optional, and lets you set which tab should be selected by default- enter either
an integer (0=1st tab, 1=2nd tab etc), or " * Note that the "
|