html - Drop Down Menu That Opens All Drop Downs at Once -
is there navigational drop down menu out there when hover on 1 item, every drop down comes down? know might bit busy, project essential. can use jquery, css or whatever, long works.
if give of menus class can select them jquery. assuming display:none; other show/hide attribute work same way. issue when move mouse away 1 go away.
$("#specialdropdown").live('mouseover',function(){ $('.dropdown').css('display', 'block'); }); $(".drowdown").live('mouseout', function(){ $('.dropdown').css('display','none'); });
the issue when move mouse away 1 go away. solve suggest having button shows them all.
$("#specialdropdown").live('click', function(){ if($(this).hasclass('activebutton') { $(this).removeclass('activebutton'); $('.dropdown').css('display', 'none'); } else { $(this).addclass('activebutton'); $('.dropdown').css('display', 'block'); } });
Comments
Post a Comment