This commit is contained in:
liujianhuan 2021-01-18 11:33:49 +08:00
commit 2b2d625526
2 changed files with 21 additions and 0 deletions

BIN
img/support.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -8,6 +8,27 @@ obox1.style.display = "none";
obox1.setAttribute("class", "movie")
var obox2 = document.createElement("div")
obox2.innerHTML = '<img src = "/img/support.png" width = "200" height = "90" />';
obox2.style.position = "fixed";
obox2.style.bottom = "0px";
obox2.style.left = "0px";
obox2.style.zIndex = "9999";
obox2.style.display = "none";
var sbox = document.getElementsByTagName("body")[0];
sbox.appendChild(obox1);
var rand = Math.random();
console.log(rand);
if (rand > 0.7) {
sbox.appendChild(obox2);
setTimeout(function(){
obox2.style.display = "block";
setTimeout(function(){
obox2.style.display = "none";
}, 10000)
}, 5000)
}