欧宝体育下载

< /div> < style > .box_skitter ul { display: block; } < /style> < script > $(function () { $("nav li:eq(6)").addClass("cur"); Enter($(".products-wrap .menu li").eq(0), "left", 0, $(".products-wrap .menu li").length, 400, 300); // $('.box_skitter').skitter({ // animation: 'fade', // interval: 3500, // navigation: true, // numbers: true, // preview: true, // numbers_align: 'center' // }); if ($(".box_skitter .swiper-slide").length > 1) { var boxskitter = new Swiper('.box_skitter', { pagination: '.box_skitter .swiper-pagination', paginationClickable: true }) } // box_skitter var getUrlParam = function (name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return decodeURI(r[2]); return null; } var page = getUrlParam('page'); console.log(page); if (page == null || page == 1) { var scroll = new ImitateScroll('scrollBox', 'scrollObj', 'scrollBar', 'scrollBtn') $('.products-wrap .pro-typelist .list .right li').each(function () { var index = $(this).index(); console.log(index) $(this).find('.list-a').attr('id', 'scrollBox' + index); $(this).find('.box').attr('id', 'scrollObj' + index); $(this).find('.bar').attr('id', 'scrollBar' + index); $(this).find('.btn').attr('id', 'scrollBtn' + index); var scro = scroll + index; var scro = new ImitateScroll('scrollBox' + index, 'scrollObj' + index, 'scrollBar' + index, 'scrollBtn' + index) }) } $('.products-wrap .pro-typelist .list .bottom li').each(function () { var index = $(this).index(); console.log(index) $(this).find('.list-b').attr('id', 'scrollBox0' + index); $(this).find('.list-box').attr('id', 'scrollObj0' + index); $(this).find('.list-bar').attr('id', 'scrollBar0' + index); $(this).find('.list-btn').attr('id', 'scrollBtn0' + index); var scro0 = scroll + index; var scro0 = new ImitateScroll('scrollBox0' + index, 'scrollObj0' + index, 'scrollBar0' + index, 'scrollBtn0' + index) }) })