var fristshowrpt = new Array(), rurls = new Array(); $(function() { var adcon = '
'; var jsadbox = document.getElementById("ad_59_1945_3_1_3_js"); var style = document.createElement('style'); jsadbox.insertAdjacentHTML('afterEnd', adcon); style.type = 'text/css'; style.innerHTML = ".offcn_swiper2 { position: relative; overflow: hidden;} .offcn_swiper2 .hd{display: none;} .offcn_swiper2 .hd ul{margin:0;padding:0;} .offcn_swiper2 .bd ul{margin:0;padding:0;} .offcn_swiper2 .bd ul li{list-style: none} .offcn_swiper2 .bd ul li a{color: #333; text-decoration: none;cursor: pointer;} .offcn_swiper2 .bd ul li a:hover{text-decoration:inline;color: #cc0000;} .offcn_swiper2 img{ width:100%; height: 100%;} .offcn_swiper2 .offcn_19btn{display: block; position: absolute; top: 50%; margin-top: -27px; width:30px; height: 54px; z-index: 10; } .offcn_swiper2 .offcn_19prev{ left:0; background: url(//statics.offcn.com/common/pc/images/offcn_left.png) no-repeat; } .offcn_swiper2 .offcn_19next{ right:0; background: url(//statics.offcn.com/common/pc/images/offcn_right.png) no-repeat;} "; document.getElementsByTagName('head').item(0).appendChild(style); var fristshowrpt = new Array(), rurls = new Array(); jQuery(".offcn_swiper2").slide({ mainCell: ".bd ul", autoPlay: true, endFun: function() { doreports119286(); } }); function doreports119286() { $(".swiper-slide").each(function() { var show = $(this).data("show"); if (fristshowrpt.indexOf(show) > -1) { if ($(this).css("display") != "none") doreport119286(show); } else { fristshowrpt.push(show); } }); }; }); function doreport119286(url, type, lpg) { if (type == "c") { window.open(lpg, "_blank"); } if (url == null || url == "" || url == undefined) return false; url = url.replace(/%city/, adxua_city); if (rurls.indexOf(url) > -1) return false; rurls.push(url); var x = new XMLHttpRequest(); x.open("GET", url, true); x.send(); }