Commit 6be4f901 authored by 季圣华's avatar 季圣华
Browse files

修改首页内容

parent e07c3d17
......@@ -50,7 +50,11 @@
</a>
</li>
<li class="treeview">
<a target="_blank" style="color:yellow;font-weight: bold"
<a target="_blank" class="aliyun" style="color:yellow;font-weight: bold;display: none;"
href="https://www.aliyun.com/acts/hotsale?userCode=axva2vlr">
<i class="fa fa-cloud"></i> 阿里云促销中
</a>
<a target="_blank" class="tencent" style="color:yellow;font-weight: bold;display: none;"
href="https://cloud.tencent.com/act/cps/redirect?fromSource=gwzcw.3018172.3018172.3018172&redirect=10140&cps_key=4fb6482d716575dcb7b8fe600d93766a&from=activity">
<i class="fa fa-cloud"></i> 腾讯云促销中
</a>
......
......@@ -418,8 +418,19 @@ $(function () {
});
})
//根据时间戳决定展示aliyun还是tencent
function autoChangeTip() {
var timestamp=new Date().getTime();
var checkShow = timestamp%2;
if(checkShow) {
$(".aliyun").show();
$(".tencent").hide();
} else {
$(".aliyun").hide();
$(".tencent").show();
}
}
setInterval(function () {
autoChangeTip();
},10*1000);
});
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment