View Full Version : DD Tab Menu : auto tab selecting problem

08-09-2007, 12:00 PM
1) Script Title: DD Tab Menu (5 styles)

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

3) Describe problem: I've tried the menu and I have to say, nice to see the menu work in all types of browsers! :)

1# Problem I have: I would like to have no submenu shown at the start after the page is loaded.

Can I turn this of? Something like: ddtabmenu.definemenu("nav", none) instead of ddtabmenu.definemenu("nav", 4)

2# Second problem: When I go with my mouse over a tab, the submenu will show. If I go further with my mouse without clicking but let's say not on the menu anymore the submenu will still be shown. Is it possible to turn this of. Something like focus off then display:none ?

Hope you guys can help me!

08-09-2007, 07:49 PM
To answer your question, try entering "-1":

ddtabmenu.definemenu("ddtabs1", -1)

For #2, there's no quick way to do this unfortunately. A Tab menu with this behavior is Tab Menu (onMouseover) (http://www.dynamicdrive.com/dynamicindex1/tabmouseover.htm), though personally I like the sub menu to stay put, so in DD Tab Menu, went with it instead.

08-10-2007, 06:46 AM
Thanks ddadmin, ddtabmenu.definemenu("ddtabs1", -1) works perfectly!

I will look into the Tab Menu behavior, hope I can sort it out while JS is really abracadabra for me :)