// JavaScript Document $("#nav"+nav).addClass("aon"); $(".header .nav li").each(function(index, element) { // var num=$(this).find(".subbox").find("dl").length // if(num>=1){ jQuery(this).mouseDelay(false).hover(function () { //$(this).find(".subbox").slideDown(300) $(this).siblings().removeClass("aon"); $(this).addClass("aon"); //$(".header .nav").addClass("show"); }, function () { //$(this).find(".subbox").slideUp(300) $(this).removeClass("aon"); $("#nav"+nav).addClass("aon"); //$(".header .nav").removeClass("show"); }); //end // } }) $(".wapmenu").click(function(){ $(".header .nav").slideToggle(300) }); $(".istop").click(function(){ $("html,body").animate({scrollTop:0},800);//点击go to top按钮时,以800的速度回到顶部,这里的800可以根据你的需求修改 return false; }); $('.list_roll .owl-carousel').owlCarousel({ loop:false, nav:true, responsive:{ 0:{ items:1 }, 600:{ items:3 }, 1000:{ items:4 } } }); // $('.h_floor_1 .owl-carousel').owlCarousel({ autoplay:true, loop:true, nav:true, items:1, }); var w=$(window).width(); if(w>768){ $(".h_floor_4 .item").each(function(i){ $(".h_floor_4 .item").slice(i*12,i*12+12).wrapAll("
");}); }else{ $(".h_floor_4 .item").each(function(i){ $(".h_floor_4 .item").slice(i*4,i*4+4).wrapAll("
");}); }; $('.h_floor_3 .owl-carousel').owlCarousel({ autoplay:true, loop:true, nav:true, items:1, }); $('.h_floor_4 .owl-carousel').owlCarousel({ loop:false, nav:true, margin:20, items:1, }); $('.h_floor_5 .owl-carousel').owlCarousel({ loop:false, nav:true, margin:20, responsive:{ 0:{ items:1 }, 768:{ items:3 }, 1000:{ items:4 } } });