Skocz do zawartości

Nero

Rejestracja: 12 sie 2014
Poza forum Ostatnio: sie 20 2014 22:00
-----

Moje tematy

Menu czteropoziomowe

12 sierpnia 2014 - 10:44

Witam was, ktoś mi powie gdzie jaki tutaj mam błąd, jak go poprawić? Czwarty poziom wyświetla się od razu po najechaniu na pierwszy.

var txopen = false;
$('#menu').find('ul.clearfix').children('li').hover(function(){
      $(this).find('ul.sub-menu').stop().slideDown(150);
      $(this).find('ul.sub-menu').children('li').hover(function(){
          if (!txopen) {
              $(this).find('ul.sub-menu-b').stop().animate({widht: 'toggle'},150);
              txopen = true;
              $(this).find('ul.sub-menu-c').stop().animate({widht: 'toggle'},150);
              txopen = true;
          }
      }, function() {
          if (txopen) {
              $(this).find('ul.sub-menu-b').stop().animate({width: 'toggle'},100);
              txopen = false;
              $(this).find('ul.sub-menu-c').stop().animate({width: 'toggle'},100);
              txopen = false;
          }
      });
   }, function(){
      if (txopen) {
           $(this).find('ul.sub-menu-c').stop().animate({width: 'toggle'},100);
          $(this).find('ul.sub-menu-b').stop().animate({width: 'toggle'},100);
      }
      $(this).find('ul.sub-menu').stop().slideUp(100);
   });
    

   Pozdrawiam