function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Width = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL = ""; this.SiteID = 0; this.ShowAD = showADContent; this.Stat = statAD; } function contains(arr, str) { var i = arr.length; while (i--) { if (arr[i] === str) { return true; } } return false; } function statAD(id) { var sp = document.createElement("SCRIPT"); sp.type = "text/javascript"; sp.src = "http://www.hanyouwang.com/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&id="+id+"&spaceid="+this.PosID; //document.body.appendChild(sp); document.body.insertBefore(sp, document.body.childNodes[0]); } //随机数组 function randomsort(a, b) { return Math.random()>.5 ? -1 : 1; } var count = 0; function showADContent() { var content = this.ADContent; var module = 'content'; var app_path = 'http://www.hanyouwang.com/'; var isIE=!!window.ActiveXObject; var AD = eval('('+content+')'); var newADImage=[]; var cUrl=window.location.href; if(AD.ADImage.length){ count = AD.ADImage.length; } var pageName=cUrl.substring(cUrl.indexOf("hanyouwang.com")+14); if(pageName!="/" && pageName!="/index.html"){ } str ='
'; // var listr=[]; // for(var i=0;i< count;i++){ // this.Stat(AD.ADImage[i].imgID); // var categoryArr = AD.ADImage[i].showCategory.split(','); // if(document.URL==app_path || document.URL==app_path+'?fr=pc'){ // if(AD.ADImage[i].indexShow=='1'){ // listr.push("
  • "); // } // } // else if((catid==''||!contains(categoryArr ,catid)) && (AD.ADImage[i].showModule.indexOf(module)==-1)){ // listr.push("
  • "); // } // } // str =str + listr[Math.floor(listr.length*Math.random())] + ''; document.write(str); } var cmsAD_506 = new PCMSAD('cmsAD_506'); cmsAD_506.PosID = 41; cmsAD_506.ADID = 506; cmsAD_506.ADType = "images"; cmsAD_506.ADName = "【广告】银联logo右侧广告"; cmsAD_506.ADContent = "{'ADImage':[ {'imgID':'506','imgADLinkUrl':'http%3A%2F%2Fcn.galleria-dfs.com%2Fevent%2FeventDetail.idf%3Finput_event_no%3Dshuang11_17%26ck%3DP_CM_01_S00_B002','imgADAlt':'银联','ImgPath':'http://img.hanyouwang.com/2017/1103/20171103021721194.jpg','imgADLinkTarget':'New','showAlt':'Y','showCategory':'','showModule':'piao,ticket,news,car,sales,wifi,weather,rate,area,traffic,special,search,zsask,tour,train,coupon,scenic,food,shop,fashion,hotel,appversion','indexShow':'1'} , {'imgID':'106','imgADLinkUrl':'http%3A%2F%2Fwww.hanyouwang.com%2Fspecial%2Flotte.html','imgADAlt':'乐天免税店4折优惠!','ImgPath':'http://img.hanyouwang.com/2017/0904/20170904050240833.jpg','imgADLinkTarget':'New','showAlt':'Y','showCategory':'','showModule':'piao,ticket,news,car,sales,wifi,weather,rate,area,traffic,special,search,zsask,tour,train,coupon,scenic,food,shop,fashion,hotel,appversion','indexShow':'1'} , {'imgID':'107','imgADLinkUrl':'http%3A%2F%2Fwww.hanyouwang.com%2Fa%2Fspecial%2Ftmoney%2F','imgADAlt':'韩游网送护照夹韩国地图','ImgPath':'http://img.hanyouwang.com/2015/0916/20150916094359447.jpg','imgADLinkTarget':'New','showAlt':'Y','showCategory':'','showModule':'','indexShow':'0'} ]}"; cmsAD_506.URL = "http://www.hanyouwang.com/index.php?m=poster&c=index&a=poster_click"; cmsAD_506.SiteID = 1; cmsAD_506.Width = 700; cmsAD_506.Height = 60; cmsAD_506.UploadFilePath = ""; cmsAD_506.ShowAD(); $(function(){ $(".hbanner").hyworslide({ theme:"hostheme_0" }); });