http://www.dynamicdrive.com/dynamici...smoothmenu.htm
hi people i have implimented the dynamic drive smooth drop down menu on one of my sites and i like it a lot, however now that i have began to explore it i have noticed a bug that i am unsure of how to fix.
The bug i believe resides in this section of css
the problem is that on the home page where no submenus are listed the selected class works as should by highlighting the selected home tab with green to show the user is on that page, however any of the tabs that contain a submenu link do not highlight as green when selected.Code:.ddsmoothmenu ul li a.selected, .ddsmoothmenu ul li a:hover { /*CSS class that's dynamically added to the currently active menu items' LI A element*/ color: black; background: #2EFF03; border-bottom: 5px solid #000000; } /*1st sub level menu*/ .ddsmoothmenu ul li ul{ position: absolute; left: 0; margin-top: 10px; display: none; /*collapse all sub menus to begin with*/ visibility: hidden; background: #333; } /*Sub level menu list items (undo style from Top level List Items)*/ .ddsmoothmenu ul li ul li{ display: list-item; float: none; } /*All subsequent sub menu levels vertical offset after 1st level sub menu */ .ddsmoothmenu ul li ul li ul{ top: 0; } /* Sub level menu links style */ .ddsmoothmenu ul li ul li a{ font-weight: 500; width: 120px; /*width of sub menus*/ padding: 0 10px; margin: 0; line-height: 24px; height: 24px; font-size: 12px; border-top-width: 0; text-align: left; background: none; } .ddsmoothmenu ul li ul li a.selected, .ddsmoothmenu ul li ul li a:hover { color: #000000; background: #2EFF03; border-bottom: 2px solid #d2f476; }
the tab wont highlight unless i press refresh and if i then goto hover over the tab it removes the highlight (selected class)
here is the example if you do not understand
www.signoriwebsolutions.com
notice how the menu highlights the homepage or contact page when selected because they contain no submenu, but notice that the other tabs that contain submenus do not highlight when clicked unless refresh the page
i presume the bug is something to do with the selected class for the ul, li and a tags but i cannot figure out how to resolve the issue which i get on google chrome
any ideas people?![]()



Reply With Quote



Bookmarks