Skip to content

Commit 0202e23

Browse files
committed
add blog/default.asp
1 parent ebffae9 commit 0202e23

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

blog/default.asp

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<html>
2+
<title></title>
3+
<script>
4+
var _hmt = _hmt || [];
5+
(function() {
6+
var hm = document.createElement("script");
7+
hm.src = "//hm.baidu.com/hm.js?6b862532551ab821a572e486bca05514";
8+
var s = document.getElementsByTagName("script")[0];
9+
s.parentNode.insertBefore(hm, s);
10+
})();
11+
</script>
12+
<script language=javascript>
13+
var get = new Object();
14+
get = GetRequest();
15+
var year=2007;
16+
id = get['id'];
17+
if(typeof(id) == 'undefined')
18+
location.href = '/';
19+
if(id>118 && id<154){
20+
year = 2008;
21+
}else if(id>153 && id<176){
22+
year = 2009;
23+
}else if(id>175 && id<182){
24+
year = 2010;
25+
}else if(id>181 && id<198){
26+
year = 2011;
27+
}else if(id>197 && id<231){
28+
year = 2012;
29+
}else if(id>230 && id<253){
30+
year = 2013;
31+
}else if(id>252 && id<304){
32+
year = 2014;
33+
}else if(id==304){
34+
year = 2015;
35+
}else if(id>304){
36+
year = 2016;
37+
}
38+
url = '/blog/'+year+'/'+id+'.html';
39+
location.href=url;
40+
41+
function GetRequest() {
42+
var url = location.search; //获取url中"?"符后的字串
43+
var theRequest = new Object();
44+
if (url.indexOf("?") != -1) {
45+
var str = url.substr(1);
46+
strs = str.split("&");
47+
for(var i = 0; i < strs.length; i ++) {
48+
theRequest[strs[i].split("=")[0]]=(strs[i].split("=")[1]);
49+
}
50+
}
51+
return theRequest;
52+
}
53+
</script>

0 commit comments

Comments
 (0)