PDA

View Full Version : DD Tab Menu and DD Tab Menu II



Ivan Radev
11-25-2004, 06:43 AM
Is it possible the main tabs in the tab menu to function OnClick instead OnMouseover? Also, is it possible the main tabs only to expand the submenu onClick insted to get URL's? I changed the comand from OnMouseover to OnClick in the script and it works OnClick, but I cannot stop the main tabs to get URL. Please help.

DD Tab Menu
http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

DD Tab Menu II
http://www.dynamicdrive.com/dynamicindex1/ddtabmenu2.htm


Thank you.

Ivan

ausant
11-25-2004, 07:01 AM
yea edit the mouse over part of the script... if you don't know how just ask and i might spare some time for you:)

simonf
11-25-2004, 07:20 AM
HI

As Ausant says: <li><a href="http://www.dynamicdrive.com" onClick="expandcontent('sc1', this)">Dynamic Drive</a></li>

ausant
11-25-2004, 06:56 PM
exatly simonf :)
:D
just taking out mouseover:p

Ivan Radev
11-26-2004, 06:46 AM
Thank you Ausant and Simonf !!!
Actually I already replaced OnMouseover with Onclick and it works but not in the same way. I'd like the submenus to appear in the same way as it was OnMouseover. (Meaning, you mouseover on the main tabs and the submenus appear without changing the URL. It stays on the same page). Now with OnClick change I made, when I click on the main tabs it goes to the tab's URL before the epearance of the submenus and it doesn't stay on the same page.

I am trying to mimic a flash menu; please visit the sample http://pharmacystaffing.com/first.htm to see the menu I need to make with DD script or something similar.

Here is the sample of DD tab menu that I'm strugle with ;)
http://pharmacystaffing.com/11about.htm

Again thank you all!!!!!!!



yea edit the mouse over part of the script... if you don't know how just ask and i might spare some time for you:)

ddadmin
11-30-2004, 10:11 PM
To stop the browser from actually going to the tab link when you click on it but simply reveal the sub menus, simply edit your tab div from:


<a onClick="expandcontent('sc2', this)" href="11employer.htm">

to something like:


<a onClick="expandcontent('sc2', this); return false" href="11employer.htm">

By adding the "return false", that should disable the link.