/*功能性执行代码*/ $(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(); }) $('.xinwen1-list').owlcarousel({ margin:30, nav:false, dots:false, smartspeed:500, mousedrag:false, autoplay:true, autoplaytimeout:4000, autoplayhoverpause:true, loop:false, responsive:{ 0:{ items:1 }, 768:{ items:2, margin:15 }, 992:{ items:2 }, 1200:{ items:3 } } }) $('.fazhan1-list').owlcarousel({ margin:0, nav:true, dots:false, smartspeed:200, mousedrag:false, autoplay:false, slideby: "page", autoplaytimeout:4000, autoplayhoverpause:true, loop:false, responsive:{ 0:{ items:3 }, 768:{ items:5 }, 992:{ items:7 }, 1200:{ items:9 }, 1500:{ items:9 } } }) $('.main1-4-list').owlcarousel({ margin:15, nav:false, dots:false, smartspeed:200, mousedrag:false, autoplay:true, slideby: "page", autoplaytimeout:4000, autoplayhoverpause:true, loop:false, responsive:{ 0:{ items:1 }, 768:{ items:2 }, 992:{ items:3 }, 1200:{ items:4 }, 1500:{ items:4, margin:30 } } }) $(".fazhan1-list .item span").mouseenter(function(){ $(".fazhan1-list .item").removeclass("cur"); $(this).parents(".item").addclass("cur"); $(".fazhan2-div").hide(); $(".fazhan2-div").eq($(this).parents(".owl-item").index()).show(); }) $(".title-11 span.fl").mouseenter(function(){ $(this).addclass("cur").siblings("span.fl").removeclass("cur"); $(this).siblings("a.fr").hide(); $(this).siblings("a.fr").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(); }) $('.main3-list').owlcarousel({ margin:15, nav:true, dots:false, smartspeed:300, mousedrag:false, autoplay:true, slideby: "page", autoplaytimeout:4000, autoplayhoverpause:true, loop:false, responsive:{ 0:{ items:1 }, 768:{ items:2 }, 992:{ items:3 }, 1200:{ items:4 }, 1500:{ items:4, margin:20 } } }) $(".main2-1-dl dd span").mouseenter(function(){ $(".main2-1-dl dd").removeclass("cur"); $(this).parents("dd").addclass("cur"); $(this).parents("dd").siblings(".main2-1-dda").find("a").hide(); $(this).parents("dd").siblings(".main2-1-dda").find("a").eq($(this).parents("dd").index()).show(); $(".main2-1-div").hide(); $(".main2-1-div").eq($(this).parents("dd").index()).show(); }) $(".main2-2-dl dd").click(function(){ $(this).addclass("cur").siblings("dd").removeclass("cur"); $(".main2-2-pic").hide(); $(".main2-2-pic").eq($(this).index()).show(); }) })/*function结束括号,js代码请放此上!!!*/ /*功能性执行代码*/