$(function(){ var myswiper = new swiper ('.pc', { speed:2000, autoplay:true, loop: true, navigation: { nextel: '.swiper-button-next', prevel: '.swiper-button-prev', }, autoplay: { disableoninteraction: false, }, }) var myswiper = new swiper ('.productlost', { speed:800, autoplay:true, slidespergroup : 1, spacebetween : 10, slidesperview: 3,//一行显示3个 slidespercolumn: 4,//显示2行 pagination: { el: '.swiper-pagination', clickable :true, }, autoplay: { disableoninteraction: false, }, }) var myswiper = new swiper ('.cplost', { speed:300, autoplay:true, slidespergroup : 1, spacebetween : 10, slidesperview: 3,//一行显示3个 slidespercolumn: 1,//显示2行 pagination: { el: '.swiper-pagination', clickable :true, }, autoplay: { disableoninteraction: false, }, }) var myswiper = new swiper ('.caselost', { speed:300, autoplay:true, slidespergroup : 1, spacebetween : 10, slidesperview: 3,//一行显示3个 slidespercolumn: 2,//显示2行 pagination: { el: '.swiper-pagination', clickable :true, }, autoplay: { disableoninteraction: false, }, })  $(".tabbox li").click(function ()   {     //获取点击的元素给其添加样式,讲其兄弟元素的样式移除     $(this).addclass("active").siblings().removeclass("active");     //获取选中元素的下标     var index = $(this).index();     $(this).parent().siblings().children().eq(index).addclass("active")     .siblings().removeclass("active");   }); $('#floatmenu_fanhui').click(function(){ $("html ,body").animate({scrolltop :0},1000); }) $("#izl_rmenu").each(function(){ $(this).find(".btn-wx").mouseenter(function(){ $(this).find(".pic").fadein("fast"); }); $(this).find(".btn-wx").mouseleave(function(){ $(this).find(".pic").fadeout("fast"); }); $(this).find(".btn-color").mouseenter(function(){ $(this).find(".pic").fadein("fast"); }); $(this).find(".btn-color").mouseleave(function(){ $(this).find(".pic").fadeout("fast"); }); $(this).find(".btn-phone").mouseenter(function(){ $(this).find(".phone").fadein("fast"); }); $(this).find(".btn-phone").mouseleave(function(){ $(this).find(".phone").fadeout("fast"); }); }); });