pozmieniałem nazewnictwo na potrzebę tego tematu
/* MENU*/ #menu {border-bottom: 1px solid #F2EBD5; width: 1004px; height: 28px; background: #b8b2e7 url(../images/tlo_menu.jpg); z-index:8999;} #menu > ul li { display: block; height: 28px; float: left; width: 90px; position: relative;} #menu > ul li a { display: block; text-decoration: none; width: auto; padding: 8px 0; font: 12px Verdana, Geneva, sans-serif; text-align: center; color: #33323a; } /* SUBMENU */ #menu ul li.sub-menu ul { position: absolute; top: 28px; display: none; background-color: #705D4A; z-index: 9000; } #menu ul li.sub-menu ul li { width: 90px; height: 28px;} #menu ul li.sub-menu ul li a {font-size: 9px; text-align: left; padding: 8px 7px; color: #fff;}
/* MENU GŁÓWNE POZIOME GÓRA */ $('#menu ul > li').not('.sub-menu').hover(function(){ $(this).css('background','url(images/tlo_menu_hover.jpg) repeat-x'); }, function(){ $(this).css('background','none'); }); $(this).hover(function(){ $(this).css('background','url(images/tlo_menu_hover.jpg) repeat-x'); var szerUlWys = parseInt($(this).children('ul:first').css('width'));//szer ul wysuwanego pierwszego sub-menu $(this).children('ul').slideDown(200);//dla pierwszej listy sub-menu $(this).hover(function(){ $(this).css('background','url(images/tlo_submenu_hover.jpg) repeat-x').children('a').css('color','#333');//podłożenie tła dla submenu li if($(this).has('sub-menu')){ $(this).nextAll('li.sub-menu').mouseover(function(){ $(this).children('ul').css({ 'left':szerUlWys+'px', 'top':0 }).slideDown(200); }); $(this).nextAll('li.sub-menu').mouseout(function(){ if($(this).children('ul').is(':focus')){ $(this).children('ul').stop().slideUp(200); } }); } }) }, function(){ $(this).css('background','none').children('a').css('color','#fff'); }); }); }, function(){ var $thy = $(this); $(this).children('ul').stop().slideUp(200, function(){ $thy.css('background','none'); }); }); });
siedzę już nad tym kilka godzin a nie mam tyle czasu żeby siedzieć kolejne kilka nad jQuery (może to tylko jakiś błachy błąd)
z góry dzięki
problem konkretnie jest w "przykład 24" kiedy najadę kilka razy za szybko zabierając myszę z powrotem z zakładki np przykład "18" to cała reszta poniżej przykład18 jużnie chce się wysunąć...............