You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
194 lines
42 KiB
194 lines
42 KiB
5 years ago
|
<!DOCTYPE html>
|
||
|
<!-- saved from url=(0668)https://pos.baidu.com/s?hei=60&wid=852&di=u3491668<u=https%3A%2F%2Fblog.csdn.net%2Fluo0xue%2Farticle%2Fdetails%2F80048847&psi=7753f0a79fba1b71d2457306cfadc9d5&drs=3&dtm=HTML_POST&pis=-1x-1&tpr=1551838796106&tcn=1551838796&cec=UTF-8&chi=1&cmi=4&pss=1730x8162<r=https%3A%2F%2Fwww.google.com%2F&dri=0&dai=4&cce=true&dis=0&exps=111000,113000,110011&cdo=-1&ccd=24&par=1920x1040&cpl=3&cja=false&prot=2&tlm=1551838796&ps=1676x383&ant=0&dc=3&ari=2&cfv=0&col=zh-CN&pcs=1730x851&ti=ffmpeg%E4%BD%BF%E7%94%A8NDK%E7%BC%96%E8%AF%91%E6%97%B6%E9%81%87%E5%88%B0%E7%9A%84%E4%B8%80%E4%BA%9B%E5%9D%91%20-%20luo0xue%E7%9A%84%E5%8D%9A%E5%AE%A2%20-%20CSDN%E5%8D%9A%E5%AE%A2&psr=1920x1080 -->
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" style="font-size: 100%;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
<meta name="template-name" content="template_inlay_all_pc_lu_info_flow_image_no_des">
|
||
|
|
||
|
<title>百度网盟推广</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html">
|
||
|
|
||
|
<style type="text/css">
|
||
|
html{color:#000;background-color:transparent;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea,select{*font-size:100%}legend{color:#000}body{margin:0;padding:0;}
|
||
|
.bd-logo,.bd-logo2,.bd-logo3,.bd-logo4{
|
||
|
text-decoration:none;
|
||
|
cursor:pointer;
|
||
|
display:block;
|
||
|
overflow:hidden;
|
||
|
position:absolute;
|
||
|
bottom:0;
|
||
|
right:0;
|
||
|
z-index:2147483647;
|
||
|
width: 34px;
|
||
|
height: 10px;
|
||
|
background: url(//cpro2.baidustatic.com/cpro/ui/noexpire/img/2.0.1/new-logo@2x.png);
|
||
|
background-color: rgba(0,0,0,0.6);
|
||
|
background-size: 100% 100%;
|
||
|
}
|
||
|
.bd-logo4{height:18px;width:18px;bottom:0;left:0;background:url(//cpro2.baidustatic.com/cpro/ui/noexpire/img/2.0.1/new-icon@2x.png) no-repeat;background-position:center;background-size:100%,100%;background-color: rgba(0,0,0,0.6);border-top-right-radius: 4px;}
|
||
|
.loader{ text-align:center; width:90%; font-size:12px; padding:8px; border:solid 1px #aaaaaa; margin-top:30px; display:none; }.cf:before,.cf:after{content:"\20";display:table;}.cf:after{clear:both;}.cf{*zoom:1;}
|
||
|
.textOverflow{white-space:nowrap;overflow:hidden;display:inline-block;width:100%;}.textOverflowEllipsis{-o-text-overflow:ellipsis;text-overflow:ellipsis;}.textOverflowClip{-o-text-overflow:clip;text-overflow:clip;}
|
||
|
.container{display:block !important}
|
||
|
</style>
|
||
|
<script type="text/javascript">
|
||
|
var Base={config:{},cache:{},getKeysByType:function(b){b=(b||"class").toLowerCase();var a=b+"LoadFinished",c=b+"LoadFnArray",d=b+"LoadMap";this[a]="boolean"===typeof this[a]?this[a]:!0;this[c]=this[c]||[];this[d]=this[d]||{};return{status:a,array:c,map:d,type:b}},updateLoadStatus:function(b,a,c){c=this.getKeysByType(c);if(b&&(this[c.map][b]=a,"loaded"!==a))return this[c.status]=!1;b=!0;for(var d in this[c.map])if(d&&this[c.map].hasOwnProperty(d)&&"loaded"!==this[c.map][d]){b=!1;break}return this[c.status]=
|
||
|
b},loadImage:function(b){var a=new Image;a.onload=a.onerror=a.onabort=function(){a.onload=a.onerror=a.onabort=null;this.updateLoadStatus(b,"loaded","image");if(this.imageLoadFinished)for(var c,d=0,h=this.imageLoadFnArray.length;d<h;d++)c=this.imageLoadFnArray.shift(),c()}.proxy(this);a.src=b},fastClone:function(b){var a=function(){};a.prototype=b;return new a},declare:function(b){b=b();var a=b.name;if(!a)throw"can't find the obj name";for(var c=b.namespace+"."+a,d=c.split("."),h=d.length,f=window,
|
||
|
j="",e=0;e<h-1;e++){var g=d[e];f==window?(f[g]=window[g]=window[g]||{},j+=g):(f[g]=f[g]||{},j+="."+g);f=f[g];this.cache[j]=f}f[a]=f[a]||b;this.cache=this.cache||{};this.cache[c]=f[a];return!0},using:function(b,a,c){if(this.cache&&this.cache[b])return this.cache[b];a=a||"class";c=c||this.config.version[a]||"1.0.0";var d;switch(a){case "image":0>b.indexOf("http")&&(b=this.config.baseUrl+"img/"+(c&&"0"!==c?c.toString():"")+"/"+b);this.updateLoadStatus(b,"loading","image");this.loadImage(b);d=b;break;
|
||
|
case "class":var h=this.getKeysByType(a);a=b.split(".");d=window[a[0]];for(var f=1,j=a.length;f<j;f++)d=d&&d[a[f]]?d[a[f]]:null;if(!d&&!this[h.map][b]){this.updateLoadStatus(b,"loading","class");var e=document.createElement("script");e.type="text/javascript";e.async=!0;a=this.config.baseUrl+"js/";c&&"0"!==c&&(a+=c.toString()+"/");a+=b.replace(/\./gi,"/")+".js";e.src=a.toLowerCase();e.onload=e.onerror=e.onreadystatechange=function(){if(/loaded|complete|undefined/.test(e.readyState)){e.onload=e.onerror=
|
||
|
e.onreadystatechange=null;if(this.updateLoadStatus(b,"loaded","class"))for(var a,c=0,d=this[h.array].length;c<d;c++)a=this[h.array].shift(),a();e=void 0}}.proxy(this);c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(e,c)}this.cache=this.cache||{};this.cache[b]=d}return d},config:function(b){b&&(this.config=b)},run:function(b){if(b){var a=this.getKeysByType();this[a.status]?b():this[a.array].push(b)}}};
|
||
|
Function.prototype.proxy=function(b){var a=this,c=Array.prototype.slice.apply(arguments).shift();return function(b){return a.apply(c,arguments)}};window.declare=Base.declare.proxy(Base);window.using=Base.using.proxy(Base);window.run=Base.run.proxy(Base);window.config=Base.config.proxy(Base);document.execCommand("BackgroundImageCache",!1,!0);
|
||
|
|
||
|
</script>
|
||
|
<style type="text/css">
|
||
|
.container{background-color:white;overflow:hidden;display:block;font-family:Microsoft YaHei;margin:0;padding:0}.pic_container{display:block;float:left;overflow:hidden}.pic_row{display:block;overflow:hidden;float:left}.pic_item{display:block;overflow:hidden;float:left;text-align:center}.pic{display:block;float:left;overflow:hidden}.pic_title{display:block;overflow:hidden;float:left;text-align:center;text-decoration:none}.pic_title_ptp{position:relative;overflow:hidden;display:block;text-decoration:none;text-align:center;float:left}.link{text-decoration:none}img.hover{-webkit-transition:-webkit-transform .5s ease-in;-moz-transition:-moz-transform .5s ease-in;-ms-transition:-ms-transform .5s ease-in;-o-transition:-o-transform .5s ease-in;transition:transform .5s ease-in;-webkit-transform:scale(1.2);-moz-transform:scale(1.2);-ms-transform:scale(1.2);-o-transform:scale(1.2);transform:scale(1.2)}.luw{float:left;overflow:hidden}.luw_single{float:left;overflow:hidden;text-decoration:none}.luw_title{float:left;overflow:hidden;text-decoration:none}.img-wrapper img{-webkit-transition:transform .5s ease-in;transition:transform .5s ease-in}.img-wrapper img:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}
|
||
|
</style>
|
||
|
<link rel="stylesheet" href="./ui_e37e61c.css">
|
||
|
<script type="text/javascript" src="./logo_d508a26.js.下载"></script>
|
||
|
</head>
|
||
|
|
||
|
<body><iframe id="ifr80606" src="./sync_pos.html" style="display: none;"></iframe><iframe id="ifr58133" src="./s.html" style="display: none;"></iframe><script type="text/javascript">
|
||
|
try{window.postMessage && window.parent && window.parent.postMessage(
|
||
|
{
|
||
|
"queryid" : "cccd9dd0c99a9d91",
|
||
|
"tuid" : "u3491668_0",
|
||
|
"placement" : {
|
||
|
"basic" : {"sspId":1,"userId":1574361,"flowType":1,"cname":"csdnbaidu_cpr","tuId":9223372032563300180,"sellType":2,"rspFormat":1,"conBackEnv":1,"publisherDomain":{"dup":"rabc1.iteye.com","ubmc":"rabc2.iteye.com/i","pos":"rabc2.iteye.com","wn":"rabc2.iteye.com/qqe"}},
|
||
|
"container" : {"height":60,"width":852,"sizeType":1,"anchoredType":1,"floated":{}},
|
||
|
"fillstyle" : {"elements":[50],"layout":[1,2],"backgroundColor":"#ffffff","styleTemplateId":[50042],"txt":{"number":0,"ctitle":"#ca0c16","fontName":"微软雅黑","btitle":"1","titleFontSize":18},"nativead":{"requiredFields":[5],"screenShot":{"width":70,"height":53},"adNum":1,"imageNum":[1]},"styleType":3,"ignoreStyleMode":2,"paddingTitleTop":0,"marginTitlePicture":10,"pdp":1,"padding":{"left":10,"right":10,"top":0,"bottom":0}},
|
||
|
"userdefine" : "%7Ccpro%5Ftemplate%3Dtemplate%5Finlay%5Fall%5Fpc%5Flu%5Finfo%5Fflow%5Fimage%5Fno%5Fdes",
|
||
|
"encode_userdefine" : "encoded",
|
||
|
"complement_type" : 7,
|
||
|
"update" : "1537843811_1537843811"
|
||
|
},
|
||
|
"extends" : {"ssph":60,"sspw":852}
|
||
|
,
|
||
|
"bidder" : "1",
|
||
|
"noadx" : "0",
|
||
|
"pdb_deliv" : {
|
||
|
"deliv_id" : "0",
|
||
|
"deliv_des" : {},
|
||
|
"brandad" : 0
|
||
|
},
|
||
|
"order_deliv" : {
|
||
|
"deliv_id" : "0",
|
||
|
"demand_id" : "0"
|
||
|
},
|
||
|
"rtb_deliv" : {
|
||
|
"deliv_id" : "0",
|
||
|
"demand_id" : "3491668"
|
||
|
}
|
||
|
}
|
||
|
, '*')}
|
||
|
catch(e) {window.console && window.console.log(e);};
|
||
|
</script>
|
||
|
<!--sid=c99a9d91cccd9dd0--><div style="display:none;"><img src="./adx(2).php" height="1px" width="1px" alt=""></div>
|
||
|
<!-- main -->
|
||
|
<!--div class="container" id="container">
|
||
|
</div-->
|
||
|
<div class="container" id="container" style="background-color:#ffffff;height:60px;width:852px;">
|
||
|
<!--a class="bd-logo4" href="http://wangmeng.baidu.com" title="百度网盟推广" target="_blank" onfocus="this.blur()"></a-->
|
||
|
<div class="pic_container" id="pic_container" style="padding-left:10px;padding-right:10px;padding-top:0px;padding-bottom:0px;height:60px;width:832px;float:left;position:relative;overflow:hidden;"><a target="_blank" style="cursor: pointer;"><div id="img-txt-wrapper" style="height:53px;width:832px;margin-top:3px;"><div style="height:53px;width:70px;float:left;overflow:hidden;margin-right:10px;" class="img-wrapper"><div><img src="./u=4242793312,4194976522&fm=76" style="height:53px;width:70px;" id="img_0"></div></div><div id="title_desc_div" style="width:748px;height:53px;float:left;position:relative;"><div style="width:748px;margin-bottom:0px;margin-top:0px;margin-right:4px;margin-left:0px;font-size:18px;font-family:微软雅黑;color:#ca0c16;line-height:22px;font-weight:bold;cursor:hand;height:44px;" id="titile_0" class="luw_title"><div class="link" style="color:#ca0c16;">很危险!网站被攻击了你都不知道</div></div></div></div></a></div><div class="logo-container"><a class="logo-link" href="http://yingxiao.baidu.com/" target="_blank"></a><div class="gap"></div><a href="javascript:;" id="logo-close-btn"></a></div><div id="feedback-container" class="feedback-container"><div id="reason-content" class="reason-content" data-reason-num="4" style="width:320px;padding-top:0px;"><div class="intro">反馈意见:</div><a href="javascript:;" data-value="1" class="reason-item">视觉干扰</a><a href="javascript:;" data-value="2" class="reason-item">内容不宜</a><a href="javascript:;" data-value="3" class="reason-item">不感兴趣</a><a href="javascript:;" data-value="0" class="reason-item">其他原因</a><a class="fb-btn-cancel" href="javascript:;">返回</a></div><div id="thx-content" class="thx-content"><h5>感谢您的反馈!</h5><p>您的反馈已记录,我们将努力改善您的浏览体验。</p></div></div></div>
|
||
|
<script type="text/javascript">
|
||
|
var ads = [{"bid":"","curl":"https://cpro.baidu.com/cpro/ui/uijs.php?en=mywWUA71T1Yknzu9TZKxpyfqnauWpjYsFhwG5H6hpgPxmgKs5H0hph_qmvPWuj-bujKWrH-9ryf4niuo5iNaPzNAwiNjwiNAniNjPBNAPzNaniNafBNariNKPiNafBNAPzuonjY-fWT-wbR-fYR-wWD-f1m-wWT-fWD-fbc-fWb-fHR-fbc-wWThUZNopHYkFhdWTAYqnHDYP1TkFMDqmLPbUhF9pywdgvPsTBuzmWYsFMF15HDhTvN_UANzgv-b5HDhTv-b5Hbkryf4myn4uj04uAPbmvnhTLwGujYkPWnhIjdYTAP_pyPouyf1gv9WFMwb5HnYrHDvPW6hIAd15HDdPHD3n16LrHchIZRqIHnYrHDvPW6hIHdCIZwsTzR1fiRzwBRzwhF_UvT-nbNWTvw8FHF7UhNYFMmqniuG5HwBmW0kPW6L&c=news&cf=1&expid=9047_9048_9165_9215_9224_9503_9506_9511_9512_9514_9522_9527_9559_9562_9579_9580_9588&fv=0&itm=0&kdi0=8&lu_idc=gz&lukid=1&lus=919d9ac9d09dcdcc&lust=5c7f2e48&mscf=0&n=10&nttp=1&p=baidu&ssp2=1&tsf=dtp:1&u=%2Fluo0xue%2Farticle%2Fdetails%2F80048847&urlid=0","desc":"很危险!网站被攻击了你都不知道","dspw":"","height":60,"icon":0,"iconurl":"https://f11.baidu.com/it/u=4242793312,4194976522&fm=76","image_url":"https://f11.baidu.com/it/u=4242793312,4194976522&fm=76","isHb":false,"lpId":3,"mt_desc":"网站被攻击","mt_img_n":1,"mt_img_url_0":"https://f11.baidu.com/it/u=4242793312,4194976522&fm=76","mt_title":"很危险!网站被攻击了你都不知道","surl":"","title":"很危险!网站被攻击了你都不知道","type":"text","width":852,"word_src":"0"}];//[{"bid":"","curl":"https://cpro.baidu.com/cpro/ui/uijs.php?en=mywWUA71T1YsFh7sT7qGujYsFhPh5HDhmv6qnaubpHY3Fh-1gv7sTjYsFhGo5Hbsmh7BnHfknj99nvD1rADhp1Y-f1T-wH0-fWR-fbD-fbn-wjc-fYf-fHR-fWb-fRc-wjf-fHchp10qFRnLFRRsFRcdFRFKFRFjFRfzFRPDFRDdFRc4FR7aFRfYFRDzFhkdpvbqniuVmLKV5Hm4n1nzFMDqmh7GuZN1pgw-ugFzULFxmLKzFMFB5HDhTMnqniu1uyk_ugFxpyfqniu1pyfqrA79nvD1nj6YnyckmhD4nau1IA-b5HfsnjnhIjdYTAP_pyPouyf1gvdEm-q9TLKxnzuYujY1njn4PHf3FMwVT1YkPH0srj0kPHDvFMwd5gR1njn4PHf3FMRqpZwYTaR1fiRzwBRzwhkdmyw1FHF7mh7GuZR-nbNWUvY-nYD3PWDzFMmqniuG5H9hPWf4nHRd&c=news&fv=0&itm=0&kdi0=8&lukid=1&mscf=0&n=10&nttp=2&p=baidu&ssp2=2&swi=1&tsf=dtp:2&u=%2Fluads%2Ehtml&urlid=0","desc":"青岛家庭公寓","dspw":"","height":60,"icon":591,"iconurl":"http://f10.baidu.com/it/u=95486616,4260237839&fm=76","image_url":"http://f10.baidu.com/it/u=95486616,4260237839&fm=76","isHb":false,"lpId":3,"desc":"青岛家庭旅馆日租房 青岛短租房信息","mt_img_n":1,"mt_img_url_0":"http://f10.baidu.com/it/u=95486616,4260237839&fm=76","title":"青岛家庭公寓","surl":"","title":"青岛家庭公寓","type":"text","width":414,"word_src":"6"}];
|
||
|
var ad_num = window.ads.length;
|
||
|
for (var i=0; i<ad_num; i++) {
|
||
|
if (!window.ads[i].image_url || window.ads[i].image_url == "") {
|
||
|
window.ads[i].image_url = "//t11.baidu.com/it/u=675809101,3723009829&fm=76"
|
||
|
}
|
||
|
if (!window.ads[i].mt_img_url_0 || window.ads[i].mt_img_url_0 == "") {
|
||
|
window.ads[i].mt_img_url_0 = "//t11.baidu.com/it/u=675809101,3723009829&fm=76"
|
||
|
}
|
||
|
}
|
||
|
var config = {"conBW":0,"conpb":0,"conpl":10,"conpr":10,"conpt":0,"consl":1,"imHeight":53,"imWidth":70,"imagenum":1,"itecpl":10,"n":"csdnbaidu_cpr","ptDesc":2,"ptFC":"#ca0c16","ptFS":18,"ptFW":"1","ptPD":0,"ptp":1,"rsi0":852,"rsi1":60,"rss1":"#ffffff","rss2":"#ca0c16","staticDomain":"rabc1.iteye.com","temp_exp_flag":0,"titFF":"微软雅黑","titFS":12,"titTA":"left"};//{"IF_m_char":14,"at":3,"conBW":0,"conpb":0,"conpl":0,"conpr":0,"conpt":0,"consl":1,"exp_flag":0,"exp_flag_mob":0,"exp_flag_secretary":0,"imC":1,"imHeight":0,"imR":1,"imSiteRecMax":0,"imStid":115,"imTab":1,"imWidth":0,"itecpl":10,"marginCP":0,"n":"bak_dltest2_cpr","pat":15,"picGap":0,"ptDesc":0,"ptFC":000","ptFF":"微软雅黑","ptFS":16,"ptFW":1,"ptLogo":0,"ptn":1,"ptp":0,"rsi0":414,"rsi1":60,"rss1":"#ffffff","rss2":000","rtn":1,"temp_exp_flag":0,"titFF":"微软雅黑","titFS":12,"titNum":999,"titTA":"left","txtC":0,"txtLC":0,"txtR":0,"txtRH":0,"txtSiteRecMax":0};
|
||
|
config.enable_title_dot_exp = false;
|
||
|
var bdJinglianExpFlag=1;
|
||
|
var bdUserPreferenceExpFlag=2;
|
||
|
var bdJinglianHoverTitle="";
|
||
|
function isLogoOrder(a){if(a.n==="50071140_cpr"){return 1}else{if(a.n==="ifeng_cpr"){return 2}else{return 0}}}
|
||
|
if(isLogoOrder(config)===1){config.ptLogo=3}else{if(isLogoOrder(config)===2){config.ptLogo=4}else{config.ptLogo=5}}
|
||
|
for(var i=0;i<ads.length;++i){var t=ads[i].mt_desc.split("?");if(t.length==2){ads[i].mt_desc=t[0];ads[i].curl+="&"+t[1]}};
|
||
|
var bdJinglianExpFlag=1;
|
||
|
var bdUserPreferenceExpFlag=2;
|
||
|
var bdJinglianHoverTitle="";
|
||
|
for(var i = 0;i<ads.length;++i){
|
||
|
var t = ads[i].mt_desc.split("?");
|
||
|
if (t.length ==2) {
|
||
|
ads[i].mt_desc = t[0];
|
||
|
ads[i].curl += "&"+t[1];
|
||
|
}
|
||
|
}
|
||
|
// // union 限制图片宽高 46~1000
|
||
|
// if (config.imWidth <= 46 || config.imWidth >= 1000) {
|
||
|
// config.imWidth = 160;
|
||
|
// config.imHeight = config.imHeight * 160 / config.imWidth;
|
||
|
// }
|
||
|
// // union 标题边距 0~100
|
||
|
// if (config.ptPD < 0) {
|
||
|
// config.ptPD = 0;
|
||
|
// }
|
||
|
// if (config.ptPD > 100) {
|
||
|
// config.ptPD = 100;
|
||
|
// }
|
||
|
// // 广告位 宽区间:250-1000,高区间:80-1000
|
||
|
// config.rsi0 = config.rsi0 > 1000 ? 1000:config.rsi0;
|
||
|
// config.rsi0 = config.rsi0 < 250 ? 250:config.rsi0;
|
||
|
// config.rsi1 = config.rsi1 > 1000 ? 1000:config.rsi1;
|
||
|
// config.rsi1 = config.rsi1 < 80 ? 80:config.rsi1;
|
||
|
|
||
|
// 异常情况处理 右图样式切回作图样式防止布局异常
|
||
|
if (config.imWidth >= config.rsi0) {
|
||
|
config.ptp = 1;
|
||
|
}
|
||
|
// font-family 中转英
|
||
|
if (config.titFF == "微软雅黑") {
|
||
|
config.titFF = 'Microsoft YaHei';
|
||
|
}
|
||
|
if (config.titFF == "宋体") {
|
||
|
config.titFF = 'Simsun';
|
||
|
}
|
||
|
</script>
|
||
|
<script>
|
||
|
var advanceLog={sendLog:function(){var a=this;a.sendByIframe("https://m.baidu.com/con?from=lu_wise");a.sendByIframe("https://cpro.baidu.com/concurrent/cc")},sendByIframe:function(a){var b=document.createElement("iframe");b.id="ifr"+parseInt(Math.random()*100000);b.style.display="none";b.setAttribute("src",a);document.body.insertBefore(b,document.body.firstChild)}};if(config.exp_flag_mob=="103"){advanceLog.sendLog()};
|
||
|
</script>
|
||
|
<script type="text/javascript">
|
||
|
//信息流模版定制
|
||
|
<!-- htmlcs-disable -->
|
||
|
//TOOBAD:
|
||
|
//参数计算散落在各个地方,对象之间耦合计算严重,坑太多 //实验和无效代码,无效参数太多
|
||
|
//公共函数应该单独抽离出来
|
||
|
//图文广告模版
|
||
|
String.prototype.gblen = function() {
|
||
|
var len = 0;
|
||
|
for (var i=0; i<this.length; i++) {
|
||
|
if (this.charCodeAt(i)>127 || this.charCodeAt(i)==94) {
|
||
|
len += 2;
|
||
|
} else {
|
||
|
len ++;
|
||
|
}
|
||
|
}
|
||
|
return len;
|
||
|
}
|
||
|
|
||
|
var ThisPage={init:function(){this.set_config();this._init_exp();var a=this.get("container");this._init_global_variables();if(this.enable_feed_refact){this._init_ads_mt_info()}else{this._init_ads()}this._init_root_element();this._init_container();this._init_info_title();this._init_luw();this._init_luw_title();this._init_card();this._init_pic();this._init_layout();this.paint_ad(a);this.bindClickInAppIFrame.run()},_init_root_element:function(){this.htmlFontSize=config.hfs||"100%";document.getElementsByTagName("html")[0].style.fontSize=this.htmlFontSize},_init_ads:function(){this.news=[];var c=config.rtn-1;var a=3;while(ads.length&&ads[ads.length-1].word_src=="pa"){var l=ads.pop();var g=new Object();var f=c*a;if(f>(ads.length-1)||(f<0)){f=0}var h=ads[f];for(var d in h){g[d]=h[d]}g.title=l.title;g.image_url=l.pa_url;g.curl=ads[f].curl.replace(/&k=[^&]*/g,"&k="+l.title);g.word_src="pa";this.news.unshift(g);c-=1}var m=(config.imR||0)*(config.imC||0);var e=ads.length;while(ads.length<m){var k=parseInt(Math.random()*(e-1));var j=new Object();for(var d in ads[k]){j[d]=ads[k][d]}ads.push(j)}if(ads.length){var b=ads[0].curl.match(/tu=.*?&/);if(b&&b.length){config.tu=b[0].replace(/tu=/,"").replace("&","")}}},_init_ads_mt_info:function(){this.news=ads},_init_container:function(){var a=this.get("container");var b={};b["background-color"]=config.rss1||"#ffffff";b.height=window.config.rsi1;b.width=window.config.rsi0;a.setAttribute("style",this.gen_style(b))},_init_luw:function(){this.luwFontColor=config.rss2||"#333";this.luwFontSize=config.titFS||12;if(config.enable_font_size_exp){this.luwFontColor="#333";this.luwFontSize=12}var a=this.get_value(config.titFF,"%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91");this.luwFontFamily=decodeURIComponent(a);this.luwUnderLine=this.get_value(config.titSU,0);this.luwDistance=4;this.luwHeight=this.luwFontSize+this.luwDistance;this.hasLuw=1;this.pic_luw_seq=this.get_value(config.ptp,1);this.desc_info=this.get_value(config.ptDesc,0)},_init_luw_title:function(){this.luwTitleFontSize=config.ptFS||16;this.luwTitleFontColor=config.ptFC||"#333";var a=this.get_value(config.ptFF,"%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91");this.luwTitleFontFamily=decodeURIComponent(a);this.luwTitleHeightDistance=4;var b=this.get_value(config.ptFW,1);if(b==0){this.luwTitleFontWeight="normal"}else{if(b==1){this.luwTitleFontWeight="bold"}}this.luwTitleHeight=this.luwTitleFontSize+this.luwTitleHeightDistance},_init_card:function(){this.card_padding_left=this.get_value(config.conpl,0);this.card_padding_right=this.get_value(config.conpr,0);this.card_padding_top=this.get_value(config.conpt,0);this.card_padding_bottom=this.get_value(config.conpb,0);var a=-1;if((a==0)){this.card_padding_left=5;this.card_padding_right=5;this.card_padding_top=5;this.card_padding_bottom=5}this.pic_luw_margin=this.get_value(config.itecpl,0)},_init_info_title:function(){this.has_info_title=config.ptt||0;if(this.has_info_title>0){this.info_title_fs=config.pttFS||17;var b=this.get_value(config.pttFW,0);if(b==0){this.info_title_fw="normal"}else{if(b==1){this.info_title_fw="bold"}}var a=this.get_value(config.pttFF,"%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91");this.info_title_ff=decodeURIComponent(a);this.info_title_fc=config.pttFC||"#333";this.info_title_bgc=config.pttBC||"#FFFFFF";this.info_title_height=config.pttH||(this.info_title_fs+this.borderWidth);var c=this.get_value(config.ptc,encodeURIComponent("猜您喜欢"));this.info_title=decodeURIComponent(c)}},_init_pic_percentage:function(){var a=parseFloat(this.get_value(config.imgRatio,this.IMG_RATIO_BOUND));config.img_ratio=a;if(a<this.IMG_RATIO_MIN){this.pic_w=config.rsi0*this.pic_w/100}else{if(a>this.IMG_RATIO_MAX){this.pic_w=config.rsi0*this.pic_w/100;this.pic_h=this.pic_w/a}else{return}}},_init_pic:function(){this.pic_h=this.get_value(config.imHeight,0);this.pic_w=this.get_value(config.imWidth,0);this._init_pic_percentage();this.pic_info=this.get_value(config.ptp,0);this.pic_divs=[]},_init_logo:function(){this.logo_info=this.get_value(config.ptLogo,0);this.logo_font_size=10;this.logo_ad_content="推广";this.logo_baidu_di
|
||
|
var bd_new_logo={logoRender:function(e,f,s,l,d,c,k){var j=110;var u=16;var r=this.needShow();var q=document.createElement("div");q.className="bd-logo";q.id="bd-logo";q.style.display="none";q.style.width="0px";q.style.height="0px";document.getElementById("pic_container").appendChild(q);var h=document.createElement("div");h.className="bd-logo-wrapper";h.style.position="absolute";h.style.lineHeight=u.toString()+"px";h.style.display="block";h.style.zIndex=2147483647;var i=null;var a=null;var b=null;var n=null;var t=null;i=j;a=c-i-d;b=c-s;n=k-l;t=k-f;if(n<0||a<0||t<0||b<0||d<0||l<0||s<0||f<0){s=f=0;d=l=""}l=config.imHeight-u;var m=document.createElement("span");m.innerHTML="\u767e\u5ea6\u5e7f\u544a";m.id="baiduAdLogo";m.style.cursor="pointer";m.style.color="#999";m.style.width="60px";m.style.height="12px";m.style.fontSize="12px";m.style.display="inline-block";h.appendChild(m);var g=document.createElement("span");g.id="hideBaiduAdLogo";g.style.width="110px";g.style.height="12px";g.style.display="none";g.style.cursor="pointer";g.style.color="#6c6c6c";g.style.fontSize="12px";var p=document.createElement("span");p.id="hideBaiduAdLogo_span1";p.innerHTML="\u4e0d\u60f3\u770b\u4e86\uff0c";g.appendChild(p);var o=document.createElement("span");o.style.color="#3998fc";o.id="hideBaiduAdLogo_span2";o.innerHTML="\u505c\u6b62\u5e7f\u544a";g.appendChild(o);h.appendChild(g);h.style.bottom=f+"px";h.style.left=d?d+"px":"";h.style.height=u+"px";h.style.width=j+"px";document.getElementById("title_desc_div").appendChild(h);if(r){this.bind(m,"mouseover",this.on_mouseover_logo);this.bind(g,"mouseover",this.on_mouseover_logo);this.bind(g,"mouseout",this.on_mouseout_logo)}else{return}},bind:function(b,a,c){if(window.addEventListener){b.addEventListener(a,c,false)}else{b.attachEvent("on"+a,c)}},on_mouseover_logo:function(){var b=document.getElementById("hideBaiduAdLogo");b.style.display="inline-block";var a=document.getElementById("baiduAdLogo");a.style.display="none"},on_mouseout_logo:function(){var b=document.getElementById("hideBaiduAdLogo");b.style.display="none";var a=document.getElementById("baiduAdLogo");a.style.display="inline-block"},needShow:function(){if(typeof config.consl==="undefined"){config.consl=1}if(config.consl){return true}else{return false}}};
|
||
|
run(ThisPage.init.proxy(ThisPage));
|
||
|
(function(){try{var d={getCookie:function(p,t){var o;var t=t||window;var s=t.document;var q=new RegExp("(^| )"+p+"=([^;]*)(;|\x24)");var r=q.exec(s.cookie);if(r){o=r[2]}return o},setCookie:function(q,r,p){p=p||{};var o=p.expires;if("number"==typeof p.expires){o=new Date();o.setTime(o.getTime()+p.expires)}document.cookie=q+"="+r+(p.path?"; path="+p.path:"")+(o?"; expires="+o.toGMTString():"")+(p.domain?"; domain="+p.domain:"")+(p.secure?"; secure":"")}};var g={sendByIframe:function(o){var p=document.createElement("iframe");p.id="ifr"+parseInt(Math.random()*100000);p.style.display="none";p.setAttribute("src",o);document.body.insertBefore(p,document.body.firstChild)},sendByImage:function(p,r){var o=new Image();var q="cpro_log_"+Math.floor(Math.random()*2147483648).toString(36);r=r||window;r[q]=o;o.onload=o.onerror=o.onabort=function(){o.onload=o.onerror=o.onabort=null;r[q]=null;o=null};o.src=p}};var f=d.getCookie("BAIDUID");var e=d.getCookie("CPROID");var k=d.getCookie("ISUS");var h=d.getCookie("ISBID");var l=false;var m=false;var n=(new Date()).getTime();if(!e&&f){var j="//cpro.baidustatic.com/sync.htm?cproid="+encodeURIComponent(f);g.sendByIframe(j)}if(e&&!k){l=true}else{if(e&&k&&e!==k){l=true}}if(f&&!h){m=true}else{if(f&&h&&f!==h){m=true}}if(l||m){var a=new Date();a.setTime(a.getTime()+86400000);d.setCookie("ISBID",f||"1",{path:"/",expires:a});d.setCookie("ISUS",e||"1",{path:"/",expires:a});if(e&&f){var c=e;var b=e.indexOf(":");if(b&&b>0){c=e.substring(0,b)}g.sendByIframe("//s.cpro.baidu.com/s.htm?cproid="+c+"&t="+n)}if(e){g.sendByIframe("//pos.baidu.com/sync_pos.htm?cproid="+encodeURIComponent(e)+"&t="+n);var c=e;var b=e.indexOf(":");if(b&&b>0){c=e.substring(0,b)}}}}catch(i){}})();
|
||
|
|
||
|
//if(isLogoOrder(config) === 1){
|
||
|
// var logoCon={logoIsShow:function(){var b,c,a=document.getElementsByTagName("a");for(b=0;b<a.length;b++)c=a[b].className,("bd-logo"==c||"bd-logo2"==c||"bd-logo3"==c||"bd-logo4"==c||"bd-logo5"==c||"bd-logo1"==c)&&("undefined"==typeof config.consl&&(config.consl=1),a[b].style.display=config.consl?"block":"none")}};logoCon.logoIsShow();
|
||
|
//}
|
||
|
</script>
|
||
|
<script>
|
||
|
var sendMonitorLog={sendLog:function(){var d=this;var b=document.getElementById("pic_container");var c=b.getElementsByTagName("a");for(var a=0;a<c.length;a++){if(c[a].className!="bd-logo4"){d.addEvent(c[a],"click",function(e){d.sendByIframe("https://m.baidu.com/con?from=lu_wise")})}}},getClass:function(c,b){if(document.getElementsByClassName){return document.getElementsByClassName(b)}else{var c=document.getElementsByTagName_r(c);var d=[];for(var a=0;a<c.length;a++){if(c[a].className==b){d[d.length]=c[a]}}return d}},sendByIframe:function(a){var b=document.createElement("iframe");b.id="ifr"+parseInt(Math.random()*100000);b.style.display="none";b.setAttribute("src",a);document.body.insertBefore(b,document.body.firstChild)},addEvent:function(c,b,a){b=b.replace(/^on/i,"").toLowerCase();if(c.addEventListener){c.addEventListener(b,a,false)}else{c.attachEvent("on"+b,function(){a(window.event)})}},resTag:function(a){var a=a.parentNode;if(a.tagName.toLowerCase()!=="a"&&a.tagName.toLowerCase()!=="body"){return this.resTag(a)}return a}};if(config.exp_flag_mob=="102"){sendMonitorLog.sendLog()};
|
||
|
</script>
|
||
|
<script>
|
||
|
var defaultIsShow = false;
|
||
|
var logoCon={logoIsShow:function(){var b,c,a=document.getElementsByTagName("a");for(b=0;b<a.length;b++)c=a[b].className,("bd-logo"==c||"bd-logo2"==c||"bd-logo3"==c||"bd-logo4"==c||"bd-logo5"==c||"bd-logo1"==c)&&("undefined"==typeof config.consl&&(config.consl=1),a[b].style.display=(defaultIsShow && config.consl)?"block":"none")}};logoCon.logoIsShow();
|
||
|
</script>
|
||
|
<script>
|
||
|
// var adJsUrlexp='//cpro.baidustatic.com/cpro/ui/noexpire/js/4.0.1/adClosefeedbackUpgrade.min.js';
|
||
|
// var bdUserPreferenceExpFlag=2;var bdJinglianExpFlag=1;var preferenceInfo="czE9MjQ0MzAyNTA5NwFzMj0zNTAwMDAyNzY0AXJlcXVybD1odHRwcyUzQSUyRiUyRmJsb2clMkVjc2RuJTJFbmV0JTJGbHVvMHh1ZSUyRmFydGljbGUlMkZkZXRhaWxzJTJGODAwNDg4NDcBY250bj1jc2RuYmFpZHVfY3ByAXR1PXUzNDkxNjY4AWlwPTQyMzIwODg4OTMBaXB2Nj0BY3JjPTIyNTM0NjE2NA==";var bdJinglianHoverTitle="";var bdUserPreferenceReason=[{"id":5,"name":"视觉干扰","type":0},{"id":6,"name":"内容不宜","type":0},{"id":7,"name":"不感兴趣","type":0},{"id":8,"name":"其它","type":0},{"id":1005,"name":"视觉干扰","type":1},{"id":1006,"name":"内容不宜","type":1},{"id":1007,"name":"不感兴趣","type":1},{"id":1008,"name":"其它","type":1}]||[];var bdUserComplaintReason=[{id:0,name:'\u8bf7\u8f93\u5165\u002e\u002e\u002e',option:0,type:0},{id:1,name:'\u5185\u5bb9\u4f4e\u4fd7',option:'\u5185\u5bb9\u4f4e\u4fd7',type:1},{id:2,name:'\u5185\u5bb9\u865a\u5047',option:'\u5185\u5bb9\u865a\u5047',type:1},{id:3,name:'\u4e0d\u7f8e\u89c2',option:'\u4e0d\u7f8e\u89c2',type:1}];var loadJs=function(f,e){var h=document.createElement("script");h.onload=function(){e()};h.onreadystatechange=function(){/loaded|complete/.test(h.readyState)&&e()};h.src=f;var g=document.getElementsByTagName("script")[0];g.parentNode.insertBefore(h,g)};window.onload=function(){if(bdUserPreferenceExpFlag){loadJs(adJsUrlexp,function(){document.getElementById('closeBtn').style.display = "none";})}};
|
||
|
logo.init({containerId: 'container', closeDirect: true, feedbackParentId: 'container', deviceType: 1});
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</body></html>
|