Results 1 to 6 of 6

Thread: DD Tab Menu and DD Tab Menu II

  1. #1
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD Tab Menu and DD Tab Menu II

    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/dynamici...ddtabmenu2.htm


    Thank you.

    Ivan

  2. #2
    Join Date
    Oct 2004
    Posts
    104
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  3. #3
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    HI

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

  4. #4
    Join Date
    Oct 2004
    Posts
    104
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    exatly simonf

    just taking out mouseover

  5. #5
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank you

    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!!!!!!!


    Quote Originally Posted by ausant
    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

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    <a onClick="expandcontent('sc2', this)" href="11employer.htm">
    to something like:

    Code:
    <a onClick="expandcontent('sc2', this); return false" href="11employer.htm">
    By adding the "return false", that should disable the link.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •