📄 blognew2011.js
字号:
var BLOG_AD = {
"scroll": {
'ad': 1,
'rtt': 1,
'adnum': 2,
'ads': {
'0': {
'startdate': '2013-01-25 9:00:00',
'enddate': '2013-01-26 9:30:00',
'warp': 1,
'ads': {
'0': {
"type": "swf",
"pos": "scroll",
"width": 140,
"height": 150,
"click": "",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d2.sina.com.cn/201301/24/475693_140_150_sprite.swf",
"content": ''
},
'1': {
"type": "pic",
"pos": "scroll",
"width": 25,
"height": 150,
"click": "http://sina.allyes.com/main/adfclick?db=sina&bid=507794,573066,578337&cid=0,0,0&sid=580653&advid=7755&camid=89354&show=ignore&url=http://ad-apac.doubleclick.net/clk;265998641;91794089;k?http://e.weibo.com/1904372323/app_1508361567",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d3.sina.com.cn/201301/24/475694_25-150-10k.jpg",
"content": ''
}
}
},
'1': {
'startdate': '2013-01-25 9:00:00',
'enddate': '2013-01-26 9:30:00',
'warp': 1,
'ads': {
'0': {
"type": "swf",
"pos": "scroll",
logurl: 'http://1086.adsina.allyes.com/main/adfshow?user=AFP6_for_SINA|2012_add|2012_blog_tjbw_sxan&db=sina&border=0&local=yes&js=ie',
"width": 140,
"height": 150,
"click": "",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d2.sina.com.cn/201301/19/475027_bw-140x150-0121bud.swf",
"content": ''
},
'1': {
"type": "pic",
"pos": "scroll",
logurl: 'http://1086.adsina.allyes.com/main/adfshow?user=AFP6_for_SINA|2012_add|2012_blog_tjbw_sxan&db=sina&border=0&local=yes&js=ie',
"width": 25,
"height": 150,
"click": "http://sina.allyes.com/main/adfclick?db=sina&bid=512821,578439,583711&cid=0,0,0&sid=586192&advid=15676&camid=90152&show=ignore&url=http://adclick-cn.imrworldwide.com/cgi-bin/b?ci=cn-baiwei2012&cg=0&si=bw00007C/2s&tu=http%3A//cny.bud.cn",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d2.sina.com.cn/201301/19/475028_bw25x150-0121bud.jpg",
"content": ''
}
}
}
}
},
"comment": {
'ad': 1,
'adnum': 3,
'ads': {
'0': {
"type": "txt",
"pos": "comment",
"link": '[商讯]<a href="http://bf.sina.com.cn/newbf/zt/ysqm.html" target="_blank">我有明星气势签名</a>',
"status": {
"adstart": "",
"adend": "",
"adclose": ""
}
},
'1': {
"type": "txt",
"pos": "comment",
"link": '[商讯]<a href="http://sina.allyes.com/main/adfclick?db=sina&bid=277830,334360,339653&cid=0,0,0&sid=334533&advid=7567&camid=52451&show=ignore&url=http://all.vic.sina.com.cn/2011citicgongyi/index.php" target="_blank">爱心签名换梦想,天天派奖</a>',
"status": {
"adstart": "",
"adend": "",
"adclose": ""
}
},
'2': {
"type": "txt",
"pos": "comment",
"link": '[商讯]<a href="http://sina.allyes.com/main/adfclick?db=sina&bid=204720,299859,305135&cid=0,0,0&sid=298939&advid=358&camid=37389&show=ignore&url=http://blog.sina.com.cn/s/blog_705463570100phtd.html?tj=1" target="_blank">提高博客人气新方法</a>',
"status": {
"adstart": "",
"adend": "",
"adclose": ""
}
}
}
},
"video": {
'ad': 1,
'adnum': 2,
'rtt': 1,
'ads': {
'0': {
"type": "swf",
"pos": "video",
"startdate": "2013-1-25 9:00:00",
"enddate": "2013-1-26 9:30:00",
"width": 260,
"height": 190,
"click": "",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d4.sina.com.cn/201301/24/475592_dove_260x190_20k.swf",
<!--$$ jiaqing/2013-1-25 ~ 2013-1-25/B $-->
"content": ''
},
'1': {
"type": "swf",
"pos": "video",
"startdate": "2013-1-23 9:00:00",
"enddate": "2013-1-26 9:30:00",
"width": 260,
"height": 190,
"click": "",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d3.sina.com.cn/201301/21/475074_260190-a.swf",
<!--$$ chenguang/2013-1-23 ~ 2013-1-25/B $-->
"content": ''
}
}
},
"leftsx": {
'ad': 1,
'adnum': 2,
'rtt': 1,
'ads': {
'0': {
"type": "swf",
"pos": "leftsx",
'startdate': '2012-6-29 9:00',
'enddate': '2012-8-02 9:30',
"width": 200,
"height": 200,
"click": "",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d3.sina.com.cn/201209/21/455969.swf",<!--$$ jiayu/2012-6-29 ~ 2012-8-1/B $-->
"ref2": "",
"content": "",
"isusewb": "false",
"addata": {
clickCode: "http://sina.allyes.com/main/adfclick?db=sina&bid=247819,404560,409873&cid=0,0,0&sid=407235&advid=358&camid=46514&show=ignore",
appkey: "",
ralateUid: "",
title: "",
pic: "",
url: ""
},
'txtarr': [{
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}]
},
'1': {
"type": "pic",
"pos": "leftsx",
'startdate': '2012-09-07 9:00',
'enddate': '2012-09-11 9:30',
"width": 200,
"height": 200,
"click": "http://sina.allyes.com/main/adfclick?db=sina&bid=204720,507536,512811&cid=0,0,0&sid=512442&advid=358&camid=37389&show=ignore&url=http://blog.sina.com.cn/lm/blog_7years.html?tj=1",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d1.sina.com.cn/201209/10/453730_200200.gif",
"ref2": "",
"content": "",
"isusewb": "true",
"addata": {
clickCode: "http://sina.allyes.com/main/adfclick?db=sina&bid=247819,404560,409873&cid=0,0,0&sid=407235&advid=358&camid=46514&show=ignore",
appkey: "",
ralateUid: "",
title: "",
pic: "",
url: ""
},
'txtarr': [{
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}, {
"href": "",
"content": ""
}]
}
}
},
"topbanner": {
'ad': 1,
'adnum': 2,
'rtt': 1,
'ads': {
'0': {
"type": "swf",
"pos": "topbanner",
"width": 950,
"height": 45,
'startdate': '2012-12-24 09:00:00',
'enddate': '2012-12-29 09:00:00',
"click": "",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d4.sina.com.cn/201212/19/470278.swf",
"content": ''
},
'1': {
"type": "pic",
"pos": "topbanner",
"width": 950,
"height": 45,
'startdate': '2012-12-24 09:00:00',
'enddate': '2012-12-25 08:59:59',
"click": "http://sina.allyes.com/main/adfclick?db=sina&bid=498476,563417,568689&cid=0,0,0&sid=570669&advid=9318&camid=88523&show=ignore&url=http://edu.sina.com.cn/2012shengdian/",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d4.sina.com.cn/201212/19/470417.jpg",
"content": ''
}
}
},
"jumpin": {
'ad': 0,
'adnum': 1,
'ads': {
'0': {
"type": "swf",
"pos": "jumpin",
"width": 240,
"height": 60,
'startdate': '2011-4-23',
'enddate': '2011-4-29',
"click": "http://www.sina.com.cn/",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "",
"content": ''
}
}
},
"PDPS000000041399": { // 300 * 250 博客正文页,画中画01
'ad': 1,
'adnum': 1,
'rtt': 1,
'ads': {
'0': {
"type": "swf",// 广告类型swf:flash类型, iframe:嵌入html页面广告,空字符串为其它形式广告
"pos": "PDPS000000041399",
"width": 300,
"height": 250,
'startdate': '2012-11-27 00:00:01',
'enddate': '2012-11-27 23:59:59',
"click": "",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d2.sina.com.cn/201211/22/465185_300-250-auto.swf",
"content": ''
}
}
},
"PDPS000000041400": { // 300 * 500 博客正文页,画中画00
'ad': 1,
'adnum': 1,
'rtt': 1,
'ads': {
'0': {
"type": "swf",// 广告类型swf:flash类型, iframe:嵌入html页面广告,空字符串为其它形式广告
"pos": "PDPS000000041400",
"width": 300,
"height": 500,
'startdate': '2012-11-27 00:00:01',
'enddate': '2012-11-27 23:59:59',
"click": "",
"status": {
"adstart": "",
"adend": "",
"adclose": ""
},
"ref": "http://d4.sina.com.cn/201211/22/465184_300-500-auto.swf",
"content": ''
}
}
},
setContent: function(c) {
switch (c.type) {
case "swf":
return '<object id="playerobj" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9" classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 width="' + c.width + '" height="' + c.height + '" type="application/x-shockwave-flash"><param name="movie" value="' + c.ref + '"><param name="wmode" value="transparent"><param name="quality" value="high"><param name="allowscriptaccess" value="always"><param name="scale" value="exactfit"><embed name="playerobj" width="' + c.width + '" height="' + c.height + '" src="' + c.ref + '" quality="high" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" scale="exactfit"></embed></object>';
break;
case "pic":
return '<a href="' + c.click + '" target="_blank"><img src="' + c.ref + '" width=' + c.width + "px height=" + c.height + 'px" /></a>';
break;
case "flv":
return this.playerize(c.width, c.height, c.ref, c.click, c.ref2);
break;
case "txt":
var data = c.txtarr;
var str = "";
for (var i = 0; i < data.length; i++) {
str = str + '<li><p><span class="SG_dot"></span><a href="' + data[i]["href"] + '" target="_blank">' + data[i]["content"] + '</a></p></li>';
}
str = '<ul class="onlylist cmtA_arti">' + str + '</ul>';
return str;
break;
case "iframe":
return '<iframe width="' + c.width + '" height="' + c.height + '" frameborder="0" scrolling="no" src="' + (c.ref) + '"></iframe>';
break;
}
},
playerize: function(width, height, ref, clickfun, ref2) {
return '<iframe width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" src="http://pfp.sina.com.cn/blog/blogplayer.html?flvurl=' + encodeURIComponent(ref) + '&linkurl=' + encodeURIComponent(clickfun) + '&width=' + width + '&height=' + height + '&pic=' + ref2 + '"></iframe>';
}
};
(function() {
BLOG_AD.leftsx.ads["0"].content = BLOG_AD.setContent(BLOG_AD.leftsx.ads["0"]);
BLOG_AD.leftsx.ads["0"].type = "mix";
BLOG_AD.leftsx.ads["1"].content = BLOG_AD.setContent(BLOG_AD.leftsx.ads["1"]);
BLOG_AD.leftsx.ads["1"].type = "mix";
})();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -