Results 1 to 6 of 6

Thread: Drop Down Tabs - selected tab problem

  1. #1
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Drop Down Tabs - selected tab problem

    1) Script Title: Drop Down Tabs

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...roptabmenu.htm

    3) Describe problem:

    If the user clicks on the tab itself, it does not stay selected. If the user clicks on a drop down item it works fine. I think the problem is in the java script. How can I fix this?

    Page: http://promessinc.com/contact/contac...m?page=Support

    Click on the contact tab and it won't stay selected. (It only stays selected if clicking on a dropdown item...)

    JS page: http://promessinc.com/shared/Product...ropdowntabs.js

    CSS page: http://promessinc.com/shared/Product...imatedTabs.css

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

    Default

    By "selected", do you mean the cursor doesn't turn into a "hand" in IE when the mouse rolls over the main tabs themselves?
    DD Admin

  3. #3
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No, that's not what I mean. I should say that I'm also using the animated tabs script. When you mouse over a tab it pops up. Then if you click it, it stays up because it has the class="selected". This works if you click on the drop down items in the first tab but it does not work if you click on the drop down tab itself. Even though it still has the class="selected" it's not staying up. I think the javascript in the drop down tab script is causing this problem but I'm not sure how to fix it.

    Thanks for the reply.

  4. #4
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I made some changes to the dropdowntabs.js file. I just did a search for className. I deleted every instance where the script set or reset the classname.

    There is still just 1 issue. If Tab2 is loaded and the user puts there mouse over tab1, tab1 will pop up as expected. However, as soon as the user moves the mouse down to select a drop down item, tab1 will shift down even though it should stay up while the mouse is over the drop down items. Any idea how to fix that?

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

    Default

    Hmm I've been playing around with this- I do see a problem with the way the menu behaves when you use the Animated Tabs as the primary menu, though I've yet to see why though. If I do find more time to spend on this and find a solution, I'll post a reply.
    DD Admin

  6. #6
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for checking it out.

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
  •