PDA

View Full Version : Always chosen DHTML



ICEBERG
11-02-2010, 11:20 PM
1) Script Title: :: DD Tab Menu (5 styles)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

3) Describe problem: Has Installed the example 3. After click is opened section CSS or Home but in this menu is always chosen second point DHTML but not CSS or Home. Why?

jscheuer1
11-03-2010, 03:35 AM
Carefully read from the demo page, near the bottom, under the heading Customization

Number 1 there answers why a particular tab is the default selected. If you wish a different tab as the default, set its index here:


<script type="text/javascript">
//SYNTAX: ddtabmenu.definemenu("tab_menu_id", integer OR "auto")
ddtabmenu.definemenu("ddtabs1", 0) //initialize Tab Menu with ID "ddtabs1" and select 1st tab by default
</script>

Then read the final heading on the demo page Inside ddtabmenu.js

That describes how to control the behavior of the default tab. If you don't wish for it to be selected onmouse out, set the snap2original to false:


disabletablinks: false, //Disable hyperlinks in 1st level tabs with sub contents (true or false)?
snap2original: [false, 300], //Should tab revert back to default selected when mouse moves out of menu? ([true/false, delay_millisec]