修改首页内容

This commit is contained in:
季圣华
2019-11-08 12:57:21 +08:00
parent e07c3d1790
commit 6be4f9014f
2 changed files with 20 additions and 5 deletions

View File

@@ -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);
});