修改首页内容
This commit is contained in:
@@ -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);
|
||||
});
|
||||
Reference in New Issue
Block a user