www.gusucode.com > 叶子美容网图文下拉导航菜单源码程序 > 叶子美容网图文下拉导航菜单/js/slide.js
$(function(){ //导航菜单 $('div[topnav]').hover(function() { var it = $(this).attr('attr'); if(it === 'undefined') return false; var heht = $(this).find('#' + it).height() + 20 + "px"; $(this).find('.submnu').height(heht); $(this).stop().find('.submnu').animate({height:'show'}, {queue:false, duration:500, easing:'easeOutBounce'}); $(this).stop().attr('class', 'imenu_on').siblings().attr('class', 'imenu'); }, function() { $(this).stop().find('.submnu').hide(); $(this).stop().attr('class', 'imenu'); }); });