Merge branch 'develop' of http://git.dev.yoho.cn/ued/yohogirls-mustache into develop
Showing
2 changed files
with
96 additions
and
0 deletions
@@ -79,4 +79,52 @@ | @@ -79,4 +79,52 @@ | ||
79 | </div> | 79 | </div> |
80 | {{/ contentWithAll}} | 80 | {{/ contentWithAll}} |
81 | </div> | 81 | </div> |
82 | +<div id="div-adv-iframe" style="display:none"></div> | ||
83 | +<script type="text/javascript"> | ||
84 | +function createIframe() { | ||
85 | + var i = document.createElement("iframe"); | ||
86 | + var timestamp = new Date().getTime(); | ||
87 | + // 0828号10点1440727200000 - 29号10点 1440813600000 GIRL首页焦点图第一帧 曝光代码 #2 | ||
88 | + if (timestamp > 1440727200000 && timestamp <= 1440813600000) { | ||
89 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_2.html"; | ||
90 | + } | ||
91 | + // 0829号10点1440813600000 - 30号10点1440900000000 GIRL首页焦点图第一帧 曝光代码 #6 | ||
92 | + else if (timestamp > 1440813600000 && timestamp <= 1440900000000) { | ||
93 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_6.html"; | ||
94 | + } | ||
95 | + // 0831号10点1440986400000 - 1号 10点1441072800000 GIRL首页焦点图第一帧 曝光代码 #2 | ||
96 | + else if (timestamp > 1440986400000 && timestamp <= 1441072800000) { | ||
97 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_2.html"; | ||
98 | + } | ||
99 | + // 0901号10点1441072800000 - 2号10点 1441159200000 GIRL右侧标识 曝光代码 #4 | ||
100 | + else if (timestamp > 1441072800000 && timestamp <= 1441159200000) { | ||
101 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_4.html"; | ||
102 | + } | ||
103 | + // 0902号10点1441159200000 - 3号10点 1441245600000 GIRL首页焦点图第一帧 曝光代码 #6 | ||
104 | + else if (timestamp > 1441159200000 && timestamp <= 1441245600000) { | ||
105 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_6.html"; | ||
106 | + } | ||
107 | + // 0907号10点1441591200000 - 8号10点 1441677600000 GIRL首页焦点图第一帧 曝光代码 #2 | ||
108 | + else if (timestamp > 1441591200000 && timestamp <= 1441677600000) { | ||
109 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_2.html"; | ||
110 | + } | ||
111 | + // 0909号10点1441764000000 - 10号10点 1441850400000 GIRL首页焦点图第一帧 曝光代码 #6 | ||
112 | + else if (timestamp > 1441764000000 && timestamp <= 1441850400000) { | ||
113 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_6.html"; | ||
114 | + } | ||
115 | + // 0911号10点1441936800000 - 12号10点 1442023200000 GIRL首页焦点图第一帧 曝光代码 #6 | ||
116 | + else if (timestamp > 1441936800000 && timestamp <= 1442023200000) { | ||
117 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_6.html"; | ||
118 | + } | ||
119 | + i.scrolling="no"; i.frameborder="0"; i.width="0"; i.height="0"; | ||
120 | + document.getElementById("div-adv-iframe").appendChild(i); | ||
121 | +}; | ||
122 | +if (window.addEventListener) { | ||
123 | + window.addEventListener("load", createIframe, false); | ||
124 | +} else if (window.attachEvent) { | ||
125 | + window.attachEvent("onload", createIframe); | ||
126 | +} else { | ||
127 | + window.onload = createIframe; | ||
128 | +} | ||
129 | +</script> | ||
82 | {{> layout/footer_jian}} | 130 | {{> layout/footer_jian}} |
@@ -77,4 +77,52 @@ | @@ -77,4 +77,52 @@ | ||
77 | </div> | 77 | </div> |
78 | {{/ contentWithAll}} | 78 | {{/ contentWithAll}} |
79 | </div> | 79 | </div> |
80 | +<div id="div-adv-iframe" style="display:none"></div> | ||
81 | +<script type="text/javascript"> | ||
82 | +function createIframe() { | ||
83 | + var i = document.createElement("iframe"); | ||
84 | + var timestamp = new Date().getTime(); | ||
85 | + // 0828号10点1440727200000 - 29号10点 1440813600000 GIRL首页焦点图第一帧 曝光代码 #2 | ||
86 | + if (timestamp > 1440727200000 && timestamp <= 1440813600000) { | ||
87 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_2.html"; | ||
88 | + } | ||
89 | + // 0829号10点1440813600000 - 30号10点1440900000000 GIRL首页焦点图第一帧 曝光代码 #6 | ||
90 | + else if (timestamp > 1440813600000 && timestamp <= 1440900000000) { | ||
91 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_6.html"; | ||
92 | + } | ||
93 | + // 0831号10点1440986400000 - 1号 10点1441072800000 GIRL首页焦点图第一帧 曝光代码 #2 | ||
94 | + else if (timestamp > 1440986400000 && timestamp <= 1441072800000) { | ||
95 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_2.html"; | ||
96 | + } | ||
97 | + // 0901号10点1441072800000 - 2号10点 1441159200000 GIRL右侧标识 曝光代码 #4 | ||
98 | + else if (timestamp > 1441072800000 && timestamp <= 1441159200000) { | ||
99 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_4.html"; | ||
100 | + } | ||
101 | + // 0902号10点1441159200000 - 3号10点 1441245600000 GIRL首页焦点图第一帧 曝光代码 #6 | ||
102 | + else if (timestamp > 1441159200000 && timestamp <= 1441245600000) { | ||
103 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_6.html"; | ||
104 | + } | ||
105 | + // 0907号10点1441591200000 - 8号10点 1441677600000 GIRL首页焦点图第一帧 曝光代码 #2 | ||
106 | + else if (timestamp > 1441591200000 && timestamp <= 1441677600000) { | ||
107 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_2.html"; | ||
108 | + } | ||
109 | + // 0909号10点1441764000000 - 10号10点 1441850400000 GIRL首页焦点图第一帧 曝光代码 #6 | ||
110 | + else if (timestamp > 1441764000000 && timestamp <= 1441850400000) { | ||
111 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_6.html"; | ||
112 | + } | ||
113 | + // 0911号10点1441936800000 - 12号10点 1442023200000 GIRL首页焦点图第一帧 曝光代码 #6 | ||
114 | + else if (timestamp > 1441936800000 && timestamp <= 1442023200000) { | ||
115 | + i.src="http://ad.yoho.cn/yoho/Yoho_Ad20150828_6.html"; | ||
116 | + } | ||
117 | + i.scrolling="no"; i.frameborder="0"; i.width="0"; i.height="0"; | ||
118 | + document.getElementById("div-adv-iframe").appendChild(i); | ||
119 | +}; | ||
120 | +if (window.addEventListener) { | ||
121 | + window.addEventListener("load", createIframe, false); | ||
122 | +} else if (window.attachEvent) { | ||
123 | + window.attachEvent("onload", createIframe); | ||
124 | +} else { | ||
125 | + window.onload = createIframe; | ||
126 | +} | ||
127 | +</script> | ||
80 | {{> layout/footer_fan}} | 128 | {{> layout/footer_fan}} |
-
Please register or login to post a comment