$(document).ready(function () { $.goup({ trigger: 100, bottomOffset: 150, locationOffset: 100, title: ' ', titleAsText: true }); }); $(document).ready(function(){ $('.navss').mousemove(function(){ $(this).find('.navs2').filter(':not(:animated)').slideDown("fast");//you can give it a speeds }); $('.navss').mouseleave(function(){ $(this).find('.navs2').slideUp("fast"); }); }); $(function(){ $('#demo01').flexslider({ animation: "slide", direction:"horizontal", easing:"swing", }); }); $(document).ready(function(){ $(".slidesy").poposlides(); }); mobideMenu()// 移动端主导航 //移动端主导航 function mobideMenu(){ $(".mobile-inner-header .mobile-inner-header-icon").click(function(){ $(this).toggleClass("mobile-inner-header-icon-click mobile-inner-header-icon-out"); $(this).toggleClass('iconfont') $(this).toggleClass('iconzhankai') $(".mobile-inner-nav").slideToggle(250); // if($(this).hasClass('mobile-inner-header-icon-click')){ // $(this).html('×') // }else{ // $(this).html('+') // } }); $(".mobile-inner-nav li").each(function( index ) { $( this ).css({'animation-delay': (index/20)+'s'}); }); $('.mobile-inner-nav li strong').click(function(){ $(this).next('dl').slideToggle(500); $(this).toggleClass('on'); if($(this).hasClass('on')){ $(this).html("×") }else{ $(this).html("+") } }) }