/*功能性执行代码*/ $(function(){ // 插件启动 owl // $('.owl-carousel').owlcarousel({ // stagepadding: 50, // loop:true, // margin:10, // nav:true, // responsive:{ // 0:{ // items:1 // }, // 600:{ // items:3 // }, // 1000:{ // items:5 // } // } // }) $(".language span").click(function(){ $(".language-div").stop().slidetoggle(); }) $(".language-div a").click(function(){ $(".language-div").stop().slideup(); }) $(".vip-login").click(function(){ $(".vip-wp").fadein(); $("#nav-2-heidi").hide(); $(".nav-2").slideup(); }) $(".youxiang-top span").click(function(){ $(this).addclass("cur").siblings("span").removeclass("cur"); $(".youxiang-bottom").hide() $(".youxiang-bottom").eq($(this).index()).show(); }) $("#close-33").click(function(){ $(".vip-wp").fadeout(); }) $('.main1-list').owlcarousel({ margin:41, nav:true, smartspeed:800, loop:true, mousedrag:false, autoplay:true, autoplaytimeout:8000, responsive:{ 0:{ items:1 }, 768:{ items:2 }, 1000:{ items:2 }, 1200:{ items:3 }, 1400:{ items:4 } } }) $('.zhongdian-dl').owlcarousel({ margin:0, nav:false, smartspeed:800, responsive:{ 0:{ items:1 }, 768:{ items:2 }, 1000:{ items:3 }, 1200:{ items:5 } } }) $('.erji-nav2-list').owlcarousel({ margin:9, nav:true, autowidth:true, smartspeed:800, mousedrag:false, }) $(".main1-a a").mouseenter(function(){ $(this).addclass("cur").siblings("a").removeclass("cur"); $(this).parents(".main1-a").next(".main1-list-wp").find(".main1-list-wp-div").removeclass("cur"); $(this).parents(".main1-a").next(".main1-list-wp").find(".main1-list-wp-div").eq($(this).index()).addclass("cur"); $(this).parents(".main1-a").next(".news-div-wp").find(".news-div").hide() $(this).parents(".main1-a").next(".news-div-wp").find(".news-div").eq($(this).index()).show(); }) $(".rongyu-gun li").click(function(){ $(this).addclass("cur").siblings("li").removeclass("cur"); $(".zhengshu-pic").hide() $(".zhengshu-pic").eq($(this).index()).show(); }) $("#sanlan").click(function(){ $("#nav-2-heidi").fadetoggle(); $(".nav-2").slidetoggle(); $(".jiaspan").removeclass("cur"); $(".nav-xia-a").slideup(); }) $("#nav-2-heidi").click(function(){ $(this).fadeout(); $(".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(); } }) $(".job-table table.table tr.tr11").click(function(){ if($(this).hasclass("cur")){ $(this).removeclass("cur"); $(".tr22").hide(); }else{ $(".job-table table.table tr.tr11").removeclass("cur"); $(this).addclass("cur"); $(".tr22").hide(); $(this).next(".tr22").show(); } }) $(".sel").click(function(){ $(this).next("dl").stop().slidetoggle(); }) $(".nav>ul>li").hover(function(){ $(this).find("ul").stop(false,true).slidedown(); },function(){ $(this).find("ul").stop(false,true).slideup(); }) $(".yxa").click(function(){ $(".youxiang").fadein(); }) $(".youxiang-con .close").click(function(){ $(".youxiang").fadeout(); }) })/*function结束括号,js代码请放此上!!!*/ /*功能性执行代码*/