Go to most recent revision |
View as "text/plain" |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/*#######################################################################
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# Author: Andrzej KardaĆ
# License: GPLv3
# The full version of the licencse can be obtainted by visiting:
# 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);
});
});
});