Results 1 to 7 of 7

Thread: All Levels Navigational Menu (v2.1) selected issue

  1. #1
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default All Levels Navigational Menu (v2.1) selected issue

    1) Script Title:
    All Levels Navigational Menu (v2.1)

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

    3) Describe problem:
    If you mark a tab with a drop down menu associated as selected using class="selected".

    ex.
    <li><a href="http://www.dynamicdrive.com/new.htm" rel="ddsubmenu1" class="selected">DHTML</a></li>

    opening/selecting this drop down menu makes the selection disappear until page reload.
    this issue doesn't happen on a normal tab (without drop down) or opening another tab (not the selected one)

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

    Default

    I assume you mean manually adding class="selected" to a menu item physically inside the HTML? If so, simply try a different class name other than "selected", such as "current".
    DD Admin

  3. #3
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    look at this example:

    http://www.visinoni.org/demo.htm

    to reproduce this issue:
    * open the page: HTML tab is correctly selected (black colour)
    * put your mouse over HTML (drop down menu appears)
    * put your mouse away from HTML tab (on Home for example)
    * now HTML tab isn't selected!

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

    Default

    Have you tried the solution I suggested, that is, give the selected element a different CSS class other than "selected"?
    DD Admin

  5. #5
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    Have you tried the solution I suggested, that is, give the selected element a different CSS class other than "selected"?
    no way even changing class name

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

    Default

    Works for me. For example, using the default demo:

    Code:
    <style type="text/css">
    
    .mattblackmenu a.highlight{
    background: black; /*background of tab with "selected" class assigned to its LI */
    }
    
    </style>
    
    </head>
    <body>
    
    <h3>All Levels Navigtional Menu: Top Menu Bar Example</h3>
    
    <div id="ddtopmenubar" class="mattblackmenu">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Home</a></li>
    <li><a href="http://www.dynamicdrive.com/new.htm" rel="ddsubmenu1" class="highlight">DHTML</a></li>
    <li><a href="http://www.dynamicdrive.com/style/" rel="ddsubmenu2">CSS</a></li>
    <li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
    <li><a href="http://tools.dynamicdrive.com/" rel="ddsubmenu3">Web Tools</a></li>
    </ul>
    </div>
    DD Admin

  7. #7
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    it works for me too now, maybe last time i was modifying the wrong file =)
    thanks

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
  •