/*功能性执行代码*/ $(function(){ //aos 渐入动画 // aos.init({ // disable: window.innerwidth < 1200 // }); //owl插件调用 // .owl-carousel // $('.index_11').owlcarousel({ // loop:false, // margin:64, // nav:true, // dots:true, // smartspeed:500, // mousedrag:false, // autoplay:true, // autoplaytimeout:4000, // autoplayhoverpause:true, // responsive:{ // 0:{ // items:1 // }, // 768:{ // items:2 // }, // 992:{ // items:3 // }, // 1200:{ // items:4 // } // } // }) // owl 鼠标滚轮参与 // var mswel1 = $('.owl-carousel.index_11') // mswel1.on('mousewheel', '.owl-stage', function (e) { // if (e.deltay>0) { // mswel1.trigger('prev.owl'); // } else { // mswel1.trigger('next.owl'); // } // e.preventdefault(); // }); //banner轮播调用 // $(".flexslider").flexslider({ // animation : "fade", // slideshowspeed: 4000, //展示时间间隔ms // animationspeed:500, //滚动时间ms // slideshow: true,// 载入页面时,是否自动播放 // controlnav: true, //指示器 // directionnav: true //方向键 // }); //连续滚动调用函数 // $(".you-list").limarquee({ // drag: false, // scrollamount: 20, // direction: 'right', // runshort: false // }); $("#sanlan").click(function(){ $("#nav-2-heidi").fadetoggle(); $(".nav-2").slidetoggle(); $(".nav-2>ul>li>ul").slideup(); $(".jiaspan").removeclass("cur"); }) $("#nav-2-heidi").click(function(){ $(this).fadeout(); $(".nav-2>ul>li>ul").slideup(); $(".nav-2").slideup(); }) $(".jiaspan").click(function(){ if($(this).hasclass("cur")){ $(this).removeclass("cur"); $(".nav-2>ul>li>ul").slideup(); }else{ $(".jiaspan").removeclass("cur"); $(this).addclass("cur"); $(".nav-2>ul>li>ul").slideup(); $(this).next(".nav-2>ul>li>ul").slidedown(); } }) $(".nav>ul>li").hover(function(){ $(this).find("ul").stop(false,true).slidedown(); },function(){ $(this).find("ul").stop(false,true).hide(); }) $(".footer-1-ul>span").click(function(){ $(this).next("ul").stop().slidetoggle(); }) $(".footer-1-ul ul li a").click(function(){ $(".footer-1-ul ul").hide(); }) $(".footer-1-ul").mouseleave(function(){ $(".footer-1-ul ul").hide(); }) $(".title-11-dl dd").mouseenter(function(){ $(this).addclass("cur").siblings("dd").removeclass("cur"); $(this).parents(".title-11-dl").siblings(".title-11-more").find("a").hide(); $(this).parents(".title-11-dl").siblings(".title-11-more").find("a").eq($(this).index()).show(); $(".main1-2-div-wp").find(".main1-2-div").hide(); $(".main1-2-div-wp").find(".main1-2-div").eq($(this).index()).show(); }) $(".title-33 dd").mouseenter(function(){ $(this).addclass("cur").siblings("dd").removeclass("cur"); $(this).parents(".title-33").next(".main2-div-wp").find(".main2-div").hide(); $(this).parents(".title-33").next(".main2-div-wp").find(".main2-div").eq($(this).index()).show(); }) $('.main3-2-list').owlcarousel({ loop:false, margin:10, nav:false, dots:false, smartspeed:500, mousedrag:false, autoplay:true, autoplaytimeout:4000, autoplayhoverpause:true, rewind:true, responsive:{ 0:{ items:1 }, 500:{ items:2 }, 768:{ items:3 }, 992:{ items:4 }, 1200:{ items:5 } } }) })/*function结束括号,js代码请放此上!!!*/ /*功能性执行代码*/