|
|
<!DOCTYPE html>
|
|
|
<!-- saved from url=(0641)https://pos.baidu.com/s?wid=685&hei=180&di=u6552432&s1=1858591722&s2=1372894307<u=https%3A%2F%2Fwww.jianshu.com%2Fp%2F224b4c7e1639&tr=1646901791&mt=82705484d77970c3&dc=3&ti=Android%E6%89%8B%E6%9C%BA%E5%B1%8F%E8%94%BD%E7%8A%B6%E6%80%81%E6%A0%8F%E4%B8%8B%E6%8B%89%20-%20%E7%AE%80%E4%B9%A6&ps=3147x181&drs=3&pcs=1298x667&pss=1298x3847&cfv=0&cpl=5&chi=3&cce=true&cec=UTF-8&tlm=1646901791&psr=1440x900&par=1440x836&pis=-1x-1&ccd=24&cja=false&cmi=2&col=zh-CN&cdo=-1&tcn=1646901791&dtm=HTML_POST&tpr=1646901791204&ari=2&ant=0&psi=f8f7208c876dd826&exps=110257,110009,111000,110011&prot=2&dis=0&dai=3&dri=0&ecd=1&fp=7a139ced78d0afa473f00c7c08418696 -->
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
<meta name="template-name" content="template_inlay_all_pc_lu_info_flow_images">
|
|
|
|
|
|
<title>百度网盟推广</title>
|
|
|
<meta http-equiv="Content-Type" content="text/html">
|
|
|
<link rel="stylesheet" href="./logo-sm.css">
|
|
|
<script type="text/javascript" src="./logo.js"></script>
|
|
|
<style>
|
|
|
*{margin:0;padding:0}a{text-decoration:none;cursor:pointer}#container{display:block;overflow:hidden;font-weight:normal;position:relative}#pc_info_flow_images-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#pc_info_flow_images-title:hover{color:#e80007!important}#img-wrapper li{list-style:none}img{border:0}
|
|
|
</style>
|
|
|
</head>
|
|
|
|
|
|
<body><script type="text/javascript">
|
|
|
try {
|
|
|
if (window.JSON && window.JSON.stringify && window.postMessage && window.parent) {
|
|
|
window.parent.postMessage(JSON.stringify({
|
|
|
"queryid" : "e238e3a9806f50e4",
|
|
|
"tuid" : "u6552432_0",
|
|
|
"placement" : {
|
|
|
"basic" : {"sspId":1,"userId":27487773,"flowType":1,"cname":"47034594_cpr","tuId":9223372032566360944,"sellType":2,"rspFormat":1,"conBackEnv":1,"publisherDomain":{"dup":"udiab1.jianshu.com","ubmc":"udiab2.jianshu.com/oxxkx","pos":"udiab2.jianshu.com","wn":"udiab2.jianshu.com/mbmsjwi"}},
|
|
|
"container" : {"height":180,"width":685,"sizeType":1,"anchoredType":1,"floated":{}},
|
|
|
"fillstyle" : {"elements":[50],"layout":[1,2],"backgroundColor":"#ffffff","styleTemplateId":[50040],"txt":{"number":0,"ctitle":"#000000","fontName":"微软雅黑","btitle":"1","titleFontSize":16},"nativead":{"requiredFields":[5],"screenShot":{"width":160,"height":120},"adNum":1,"imageNum":[4]},"styleType":3,"ignoreStyleMode":2,"marginTitlePicture":10,"marginDescriptionPicture":10,"padding":{"left":14,"right":14,"top":14,"bottom":14}},
|
|
|
"userdefine" : "%7Ccpro%5Ftemplate%3Dtemplate%5Finlay%5Fall%5Fpc%5Flu%5Finfo%5Fflow%5Fimages",
|
|
|
"encode_userdefine" : "encoded",
|
|
|
"complement_type" : 2,
|
|
|
"update" : "1637205210_1637205210"
|
|
|
},
|
|
|
"extends" : {"ssph":180,"sspw":685}
|
|
|
,
|
|
|
"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" : "6552432"
|
|
|
}
|
|
|
}
|
|
|
), '*');
|
|
|
}}
|
|
|
catch(e) {window.console && window.console.log(e);};
|
|
|
</script>
|
|
|
<!--sid=806f50e4e238e3a9--><div style="display:none;"><img src="./adx(2).php" height="1px" width="1px" alt=""></div>
|
|
|
<div class="app" id="app">
|
|
|
<a id="pc_info_flow_images" target="_blank" href="https://cpro.baidu.com/cpro/ui/uijs.php?en=mywWUA71T1Yknzu9TZKxpyfqnauWpjYsFhwG5H6hpgPxmgKs5H0hph_quHc1rAR1mHb3njuhPHK-Pauo5iNjPzNawBNaPaNjPiNjfzNAfiNafzNDfBNaraNAniu_IyVG5HDhUyPsUHYkPjfLPWmhTHYYP101PjR4P7qWTZchThcqnauzT1YkFMP-UAk-T-qGujYkFMPGujd-PjRsPhm3nAD4uHn1rARzFMPYpyfqnHmkFMfqIZKWUA-WpvNbndqCmzuYujYvPHRzPjnzFMwV5HcLPHD4rjbdrauYUgnqnHmYPWbsnHT4niuYIHddPWRdnWf1nBud5y9YIZK1FHPKFHFAFHFAILILFHF7ph-9UMPCIiRzwyPEUiuv5HchpHY1mHfsrjTkr0&besl=-1&c=news&cf=1&cvrq=262476&eid_list=202284_204727&expid=201840_202284_204727_205105_206232_207306_209255&fr=4&fv=0&haacp=774&img_typ=20578&itm=0&lu_idc=tc&lukid=1&lus=e4506f80a9e338e2&lust=6229ba1f&luwtr=18216714919645084364&mscf=0&mtids=2007916857,2015807987,2000007010,2006920278&n=10&nttp=1&p=baidu&sce=5&sr=111&ssp2=1&tpl=template_inlay_all_pc_lu_info_flow_images&tsf=dtp:1&tt_sign=%CE%FC%C5%CC%B5%E7%B4%C5%CC%FA%BC%DB%B8%F1&tt_src=0&u=%2Fp%2F224b4c7e1639&uicf=lurecv&urlid=0&eot=1" style="width: 685px; height: 180px;">
|
|
|
<div id="container" style="padding: 14px; width: 657px; height: 152px; background-color: rgb(255, 255, 255);">
|
|
|
<div id="mid-wrapper" style="width: 657px; height: 168px; margin-top: 0px;">
|
|
|
<h4 id="pc_info_flow_images-title" style="font-family: "Microsoft YaHei", Simsun, serif, san-serif; font-size: 16px; height: 18px; line-height: 16px; padding-top: 0px; margin-bottom: 10px; color: rgb(0, 0, 0); font-weight: bold;">吸盘电磁铁价格</h4>
|
|
|
<ul id="img-wrapper" style="width: 657px; height: 120px; position: relative;"><li style="width: 160px; height: 120px; position: absolute; top: 0px; left: 0px;"><img src="./2007916857_14.jpg" style="width: 160px; height: 120px;"></li><li style="width: 160px; height: 120px; position: absolute; top: 0px; left: 170px;"><img src="./2015807987_14.jpg" style="width: 160px; height: 120px;"></li><li style="width: 160px; height: 120px; position: absolute; top: 0px; left: 340px;"><img src="./2000007010_14.jpg" style="width: 160px; height: 120px;"></li><li style="width: 160px; height: 120px; position: absolute; top: 0px; left: 510px;"><img src="./2006920278_14.jpg" style="width: 160px; height: 120px;"></li><div class="logo-container"><a href="https://union.baidu.com/" target="_blank" class="logo-con-wrapper"><img class="logo-link" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAAUCAYAAAA0nZtFAAAAAXNSR0IArs4c6QAAA/lJREFUWAnNmFmIjlEYx2esIyTGvlMijezDhYixZ7lhFMp6IbmQrShbcSESibhAslO2C4oRLpQbI5ms2YaJplD2iPH7f86j83297/st8w2e+s0553n+5znnfc95z5yZnJwAq6qqyoejUC8gXKMuxiyCcpiR6UD0XQ8rrD/1RnAQJpovrZKOm0B2Nq2OWRAzZj3QCynNJB39esJP2Gz9qTcD2SrzhZV1QgITnH8SSYpyc3Mvh+gycpOzKR2jdsBd4mPQbaB8HTLIF+a1NyC2HF8uBMUC5PEudYwzJlEfxxew2EkGLpaIWAeK/tAS3sMjKCVeRZmykacH4nspdwgWVjJuKz/k8t7Gp/lc8mL69EfDA9Ccg+ww+Y4F7ZDvqO1lPKSu73E85VoohER7RXwbzh0k1ItMxxYh3p9OB08btwjMoTWxC/AD7oAWzcyesyEO329xlYoFG8lfwk1oAXshFbuDqGtwxngvuh4u4fz4SGYtcjWGUvgOWrw4w1ftM2QfGcVOmOpl/0j9JmgF2sNAaAeyArjG4IXslFcxz9/70ZehesNcxj5fI8PyYAvBtyM08v3BaNeCxfAJzEp8TVAdYVZ3iMYgZ7+gsVwsvR1CsiI6LgWt+FMYBuvAbBeV3ZB4L+mE7ypMhougs0f3iFGslH+o4a45YzxdD/TZhA1S1wXmoRkZJpJfK7yaUqs6DprDDdCJ3AJkekHLQedDBfrXcA/e0H4C+Ty8+u8Bs5lWCSnznP9zSDzbbv2iuALPkybmwUbAIdD3fwoGwBYw26EkNFqaI6GMPRy+4Z7/cdTA6IY4rd13ouT/PsZkD3sPN0czoq3dpBugb+9stjibeIHIX7/oxjrtUOv/v5S1Qibib2V9RjLdLu1+EnPwQ9+t5TCdYn5/0/plW9eo9J3VrTOX3vAtA2bZ2HZhsbaV/pYvdM4+FvTK2tR7QhkM8vx+f8/9p6rz6CfoDMqmacF0gB4F3ViTmRZxGdiiBut5wwVgpsuOzpWJoL9tOkADaOfagynz4C6YrQnO/NuL6Dg8i9JkEiNnHzeBaan0R9vN6WPHQmQfhCVOrOI+dA7qgL8+7Aezj1TaBGnNR/wFnLF2tkpyVvuFRG2VxUz0k5tsd0pdzZdBL6gD2ilT8N+C2WC2JuqmSp8uCNvDVevwP5VhZ0gOD1XG5Kcz2ROgv4Abgf7HIH6Azo9E20O/rYnOhHaxa+teUFO2kbkvSSG53Yf+SENfiBQ83DkSD6N6ALRLzBJfxgcCq9FvN0FEOZtYGdpUDr2INJGht0QrIhW/g1rk9I2Xok9kBpyGcvgKlXAdVoLdapMmR1sMC5IKMxCQtzvcAt20kxq6jk6vPz1i9gtqG09/SO6d3QAAAABJRU5ErkJggg=="></a><div class="gap"></div><a href="javascript:;" id="logo-close-btn"><img class="logo-close-img" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAFo9M/3AAAAAXNSR0IArs4c6QAAARVJREFUOBF9kzGWwjAMRGNKOEdSc6G9xzahoOIe1LkLPe1egW3DfOHxcxIHv6dne2Y0lkTo5nkeOi9dJp9Xuyntt0PmnnnvO6FHJ+g8BgCI3ATgDTAAMwBEysxd7E9K6d9pFqYKwAJhVCDxL5zL4nxRQF4VfXbuKGC0nYiyECimEBS0OmTBwBOntQOkcOr5ixwEFkEqJnbIugtPphdeWq67iOpFPut5hCDbxbCw1d1ucVm8aYFFjJrfubyJgJUFLwSj7mdFTLF+H+F6SU93TJ1mHtHlCmwa7WnKmHipJQLX8osb84XBR7sxAt4kWrsxaFSBln6bJsWgkXj1QL9x/kfs9uhS2VtGgIOCbz4+vjph74w25wxv9VjxEc3jX7MAAAAASUVORK5CYII="></a></div></ul>
|
|
|
</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>
|
|
|
</a>
|
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
var ads = [{"bid":"","curl":"https://cpro.baidu.com/cpro/ui/uijs.php?en=mywWUA71T1Yknzu9TZKxpyfqnauWpjYsFhwG5H6hpgPxmgKs5H0hph_quHc1rAR1mHb3njuhPHK-Pauo5iNjPzNawBNaPaNjPiNjfzNAfiNafzNDfBNaraNAniu_IyVG5HDhUyPsUHYkPjfLPWmhTHYYP101PjR4P7qWTZchThcqnauzT1YkFMP-UAk-T-qGujYkFMPGujd-PjRsPhm3nAD4uHn1rARzFMPYpyfqnHmkFMfqIZKWUA-WpvNbndqCmzuYujYvPHRzPjnzFMwV5HcLPHD4rjbdrauYUgnqnHmYPWbsnHT4niuYIHddPWRdnWf1nBud5y9YIZK1FHPKFHFAFHFAILILFHF7ph-9UMPCIiRzwyPEUiuv5HchpHY1mHfsrjTkr0&besl=-1&c=news&cf=1&cvrq=262476&eid_list=202284_204727&expid=201840_202284_204727_205105_206232_207306_209255&fr=4&fv=0&haacp=774&img_typ=20578&itm=0&lu_idc=tc&lukid=1&lus=e4506f80a9e338e2&lust=6229ba1f&luwtr=18216714919645084364&mscf=0&mtids=2007916857,2015807987,2000007010,2006920278&n=10&nttp=1&p=baidu&sce=5&sr=111&ssp2=1&tpl=template_inlay_all_pc_lu_info_flow_images&tsf=dtp:1&tt_sign=%CE%FC%C5%CC%B5%E7%B4%C5%CC%FA%BC%DB%B8%F1&tt_src=0&u=%2Fp%2F224b4c7e1639&uicf=lurecv&urlid=0&eot=1","desc":"吸盘电磁铁价格","dp_config":1,"dspw":"","height":180,"icon":80301,"iconurl":"https://lupic.cdn.bcebos.com/20210629/2007916857_14.jpg","image_url":"https://lupic.cdn.bcebos.com/20210629/2007916857_14.jpg","isHb":false,"lpId":3,"mt_desc":"强磁铁价格","mt_img_n":4,"mt_img_url_0":"https://lupic.cdn.bcebos.com/20210629/2007916857_14.jpg","mt_img_url_1":"https://lupic.cdn.bcebos.com/20210629/2015807987_14.jpg","mt_img_url_2":"https://lupic.cdn.bcebos.com/20210629/2000007010_14.jpg","mt_img_url_3":"https://lupic.cdn.bcebos.com/20210629/2006920278_14.jpg","mt_title":"吸盘电磁铁价格","surl":"","title":"吸盘电磁铁价格","type":"text","view_num":16763,"width":685,"word_src":"#"}];
|
|
|
var config = {"conBW":0,"conpb":14,"conpl":14,"conpr":14,"conpt":14,"consl":1,"imHeight":120,"imWidth":160,"imagenum":4,"itecpl":10,"n":"47034594_cpr","picSP":10,"ptDesc":2,"ptFC":"#000000","ptFS":16,"ptFW":"1","rsi0":685,"rsi1":180,"rss1":"#ffffff","rss2":"#000000","staticDomain":"udiab1.jianshu.com","temp_exp_flag":0,"titFF":"微软雅黑","titFS":12,"titTA":"left"};
|
|
|
</script>
|
|
|
<script type="text/javascript">
|
|
|
var utils = {
|
|
|
initpollyfill:function(){ //启动一些兼容性的API供低版本使用
|
|
|
this.object_assign();
|
|
|
this.json();
|
|
|
},
|
|
|
$: function (selector) {
|
|
|
return document.getElementById(selector); //考虑兼容性,一律用id
|
|
|
},
|
|
|
//将css样式转为cssString
|
|
|
toCssStr: function (cssList) {
|
|
|
var newList = JSON.parse(JSON.stringify(cssList));
|
|
|
var cssCollection = [];
|
|
|
for (i in newList) {
|
|
|
var perCssStr;
|
|
|
if (typeof newList[i] === "number" && String(newList[i]).indexOf('px') < 0) { //数字+px
|
|
|
newList[i] = newList[i] + 'px';
|
|
|
perCssStr = i + ":" + newList[i];
|
|
|
cssCollection.push(perCssStr)
|
|
|
continue;
|
|
|
} else if (typeof newList[i] === "string") { //背景色之类的
|
|
|
perCssStr = i + ":" + newList[i];
|
|
|
cssCollection.push(perCssStr);
|
|
|
continue;
|
|
|
} else {
|
|
|
console.error("errMsg", {
|
|
|
newList: newList,
|
|
|
i: i
|
|
|
});
|
|
|
throw new Error('to px is Failed');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
return cssCollection.join(';'); //返回cssString
|
|
|
},
|
|
|
setStyle: function (el, strCss) {
|
|
|
function endsWith(str, suffix) {
|
|
|
var l = str.length - suffix.length;
|
|
|
return l >= 0 && str.indexOf(suffix, l) == l;
|
|
|
}
|
|
|
var sty = el.style,
|
|
|
cssText = sty.cssText;
|
|
|
if (!endsWith(cssText, ';')) {
|
|
|
cssText += ';';
|
|
|
}
|
|
|
sty.cssText = cssText + strCss;
|
|
|
},
|
|
|
object_assign: function () {
|
|
|
if (typeof Object.assign != 'function') {
|
|
|
Object.assign = function (target, varArgs) {
|
|
|
if (target == null) { // TypeError if undefined or null
|
|
|
throw new TypeError('Cannot convert undefined or null to object');
|
|
|
}
|
|
|
var to = Object(target);
|
|
|
for (var index = 1; index < arguments.length; index++) {
|
|
|
var nextSource = arguments[index];
|
|
|
if (nextSource != null) { // Skip over if undefined or null
|
|
|
for (var nextKey in nextSource) {// Avoid bugs when hasOwnProperty is shadowed
|
|
|
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
|
|
|
to[nextKey] = nextSource[nextKey];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return to;
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
//兼容JSON.parse || JSON.Stringify
|
|
|
json:function(){
|
|
|
"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var r,n,o,u,f,a=gap,i=e[t];switch(i&&"object"==typeof i&&"function"==typeof i.toJSON&&(i=i.toJSON(t)),"function"==typeof rep&&(i=rep.call(e,t,i)),typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";if(gap+=indent,f=[],"[object Array]"===Object.prototype.toString.apply(i)){for(u=i.length,r=0;r<u;r+=1)f[r]=str(r,i)||"null";return o=0===f.length?"[]":gap?"[\n"+gap+f.join(",\n"+gap)+"\n"+a+"]":"["+f.join(",")+"]",gap=a,o}if(rep&&"object"==typeof rep)for(u=rep.length,r=0;r<u;r+=1)"string"==typeof rep[r]&&(n=rep[r],o=str(n,i),o&&f.push(quote(n)+(gap?": ":":")+o));else for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o=str(n,i),o&&f.push(quote(n)+(gap?": ":":")+o));return o=0===f.length?"{}":gap?"{\n"+gap+f.join(",\n"+gap)+"\n"+a+"}":"{"+f.join(",")+"}",gap=a,o}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,r){var n;if(gap="",indent="","number"==typeof r)for(n=0;n<r;n+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var r,n,o=t[e];if(o&&"object"==typeof o)for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n=walk(o,r),void 0!==n?o[r]=n:delete o[r]);return reviver.call(t,e,o)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}();
|
|
|
}
|
|
|
}
|
|
|
utils.initpollyfill();
|
|
|
|
|
|
//模板核心代码
|
|
|
var pcInfoFlowImagesTemplate={init:function(b,a,c){this.ads=b||[];this.config=a||{};this.utils=c||{};a.titFF=this.set_font(a.titFF||"");this.configW=a.rsi0;this.configH=a.rsi1;this.initA();this.initContainer();this.initTitle();this.initImg();this.initMidWrapper();this.polyfillIE();this.initlogo()},set_font:function(b){var a=[];"\u5fae\u8f6f\u96c5\u9ed1"===b&&(b="Microsoft YaHei");"\u5b8b\u4f53"===b&&(b="Simsun");0<b.length&&a.push(b);-1===b.indexOf("Simsun")&&a.push("Simsun");-1===b.indexOf("serif")&&
|
|
|
a.push("serif");-1===b.indexOf("Microsoft YaHei")&&a.push("Microsoft YaHei");-1===b.indexOf("san-serif")&&a.push("san-serif");return a.join(",")},initA:function(){this.A=this.utils.$("pc_info_flow_images");this.A.style.width=this.configW+"px";this.A.style.height=this.configH+"px";this.A.setAttribute("href",this.ads[0].curl)},initContainer:function(){this._containerEle=this.utils.$("container");this._containerEle.padding={"padding-left":this.config.conpl||0,"padding-right":this.config.conpr||0,"padding-top":this.config.conpt||
|
|
|
0,"padding-bottom":this.config.conpb||0};this._containerEle.otherSty={width:this.configW-(this._containerEle.padding["padding-left"]+this._containerEle.padding["padding-right"]),height:this.configH-(this._containerEle.padding["padding-top"]+this._containerEle.padding["padding-bottom"]),"background-color":this.config.rss1||"#fff"};this._containerEle.sty=Object.assign(this._containerEle.padding,this._containerEle.otherSty);this.utils.setStyle(this._containerEle,this.utils.toCssStr(this._containerEle.sty))},
|
|
|
initTitle:function(){this._title=this.utils.$("pc_info_flow_images-title");this._title.sty={"font-family":this.config.titFF||"Microsoft YaHei","font-size":this.config.ptFS||12,height:this.config.ptFS+2||12,"line-height":this.config.ptFS||12,"padding-top":this.config.ptPD||0,"margin-bottom":this.config.itecpl||0,color:this.config.ptFC||"#333","font-weight":1==this.config.ptFW&&"bold"||"normal"};this.utils.setStyle(this._title,this.utils.toCssStr(this._title.sty));this._title.innerHTML=this.ads[0].mt_title},
|
|
|
initImg:function(){this._imgWrapper=this.utils.$("img-wrapper");this._imgWrapper.sty={width:this._containerEle.sty.width,height:this.config.imHeight,position:"relative"};var b=document.createDocumentFragment(),a=this.config.imagenum||3;this._imgPerImgWith=Math.floor((this.configW-this._containerEle.sty["padding-left"]-this._containerEle.sty["padding-right"]-(this.config.picSP||0)*(a-1))/a);this._imgPerImgHeight=Math.floor(this.configH-this._containerEle.sty["padding-top"]-this._containerEle.sty["padding-bottom"]-
|
|
|
this._title.sty.height-this._title.sty["padding-top"]-this._title.sty["margin-bottom"]);for(var c=0;c<a;c++){var g=this.ads[0]["mt_img_url_"+c],e={width:this.config.imWidth||this._imgPerImgWith,height:this.config.imHeight||this._imgPerImgHeight,position:"absolute",top:0,left:c*(this.config.imWidth+(this.config.picSP||0))},f=document.createElement("li"),d=document.createElement("img");this.utils.setStyle(f,this.utils.toCssStr(e));d.src=g;d.style.width=e.width+"px";d.style.height=e.height+"px";f.appendChild(d);
|
|
|
b.appendChild(f)}this._imgWrapper.appendChild(b);this.utils.setStyle(this._imgWrapper,this.utils.toCssStr(this._imgWrapper.sty))},initMidWrapper:function(){this._midWrapper=this.utils.$("mid-wrapper");var b=this._title.sty.height+this._title.sty["margin-bottom"]+(this.config.imHeight||this._imgPerImgHeight)+20,a=Math.floor((this._containerEle.sty.height-b)/2);this._midWrapper.sty={width:this._containerEle.sty.width,height:b,"margin-top":0<a&&a||0};this.utils.setStyle(this._midWrapper,this.utils.toCssStr(this._midWrapper.sty))},
|
|
|
polyfillIE:function(){if(7>=document.documentMode){var b=this;this._imgWrapper.onclick=function(a){a=a||event;"img"===(a.target||a.srcElement).nodeName.toLowerCase()&&window.open(b.ads[0].curl)}}},initlogo:function(){window.onload=function(){logo.init({containerId:"img-wrapper",closeDirect:!0,feedbackParentId:"container",deviceType:1})}}};
|
|
|
pcInfoFlowImagesTemplate.init(ads, config, utils);
|
|
|
</script>
|
|
|
|
|
|
|
|
|
</body></html> |