var adcon='
'; var jsadbox=document.getElementById("ad_m2_2577_2_1_3_js"); jsadbox.insertAdjacentHTML('afterEnd', adcon); var stylecon = '#zgwap_paging1{ position: absolute; text-align: center; -webkit-transition: .3s opacity; -o-transition: .3s opacity; transition: .3s opacity; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); z-index: 10;} .zg_21four_banner .swiper-pagination-bullet{display: inline-block; width: .4rem; height: .05rem; border-radius: 0; background: #fff;}.zg_21four_banner>.swiper-pagination-bullets .swiper-pagination-bullet{ margin:-.05rem 0 0 !important;}.zg_21four_banner .banner-item{ position: relative; float: left; width: .4rem; height: .05rem; margin-right: .08rem;}.zg_21four_banner .bg-line{ display: block; width: .4rem; height: .05rem; background: #9a9795;;}.zg_21four_banner #zgwap_paging1 .banner-item .pending-bg{ display: block; width: 0; height: .05rem; margin-top: -.05rem; background: #e12d2d;;}.zg_21four_banner .pending-bg.swiper-pagination-bullet-active{ -webkit-animation: pending 4.9s linear none; animation: pending 4.9s linear none;}.zg_21four_banner #zgwap_paging1 .banner-item .pending-bg.loaded{ width: .4rem; background: #e12d2d; opacity: 1;} @-webkit-keyframes pending{ 0%{ width: 0;} to{ width: .4rem;}} @keyframes pending{ 0%{ width: 0;} to{ width: .4rem;}}'; if ($('head style').length) { $("head style").append(stylecon); } else { $("").text(stylecon).appendTo($("head")); } var rurls113564 = []; var zg21fourBan = new Swiper('.zg_21four_banner', { init: false, roundLengths: true, initialSlide: 0, speed: 400, slidesPerView: 1, spaceBetween : 5, centeredSlides: true, followFinger: false, loop: true, pagination: { el: '#zgwap_paging1', type : 'bullets', renderBullet: function(index, className) { return ''; }, }, autoplay:{ delay:4500, disableOnInteraction:false, }, on: { slideChangeTransitionStart: function() { var that = this $('#zgwap_paging1 li').each(function(index, value) { if (that.realIndex == 0) { $('#zgwap_paging1 li').children(".pending-bg").removeClass("loaded") } else { if(index == that.realIndex){ var param = setTimeout(function(){ $(this).children(".pending-bg").addClass("loaded") },480) }else if(index < that.realIndex){ clearTimeout(param) $(this).children(".pending-bg").addClass("loaded") }else{ $('#zgwap_paging1 li').eq(index).children(".pending-bg").removeClass("loaded") } } }); } } }); $(function(){ zg21fourBan.init(); }); $('.dmp_m2_2577_2_1_3_dom').each(function() { doreport113564($(this).data('show')); }); $('body').on('click', '.dmp_m2_2577_2_1_3_dom', function() { window.open($(this).data('lpg'), '_blank'); doreport113564($(this).data('click')); }) function doreport113564(url) { if (url == '') return false; url = url.replace(/%city/, adxua_city); if (rurls113564.indexOf(url) > -1) return false; rurls113564.push(url); var x = new XMLHttpRequest(); x.open("GET", url, true); x.send(); }