9,20 → 9,21 |
# http://www.gnu.org/licenses/gpl.html |
#######################################################################*/ |
$(document).ready(function(){ |
var $menu = $('.artmenu'); |
$menu.children('li.nav_menu').each(function(){ |
var $this = $(this); |
var $anchor = $this.children('a'); |
$anchor.data('width',$anchor.width()); |
|
$this.bind('mouseenter',function(){ |
$menu.find('ul.submenu').stop(true,true).hide(); |
$anchor.stop().animate({'width':'180px'},300,function(){ |
$this.find('ul.submenu').slideDown(500); |
}); |
}).bind('mouseleave',function(){ |
$this.find('ul.submenu').stop(true,true).hide(); |
$anchor.stop().animate({'width':$anchor.data('width')+'px'},300); |
}); |
}); |
var $menu = $('.artmenu'); |
$menu.children('li.nav_menu').each(function(){ |
var $this = $(this); |
var $anchor = $this.children('a'); |
var $submenu = $menu.find('ul.submenu'); |
$anchor.data('width',$anchor.width()); |
|
$this.mouseenter(function(){ |
$submenu.stop(true,true).hide(); |
$anchor.stop().animate({'width':'227px'},300,function(){ |
$this.find('ul.submenu').slideDown(500); |
}); |
}).mouseleave(function(){ |
$submenu.stop(true,true).hide(); |
$anchor.stop().animate({'width':$anchor.data('width')+'px'},300); |
}); |
}); |
}); |