Update myscript.js

This commit is contained in:
Jianhuan Liu 2021-02-01 21:01:29 +08:00 committed by GitHub
parent 975e10b26a
commit 761da3aa47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ obox1.style.display = "none";
obox1.setAttribute("class", "movie") obox1.setAttribute("class", "movie")
var obox2 = document.createElement("div") var obox2 = document.createElement("div")
obox2.innerHTML = '<img src = "/img/support.gif" width = "200" height = "125" />'; obox2.innerHTML = '<img src = "/img/movie.jpeg" width = "275" height = "370" />';
obox2.style.position = "fixed"; obox2.style.position = "fixed";
obox2.style.bottom = "0px"; obox2.style.bottom = "0px";
obox2.style.left = "0px"; obox2.style.left = "0px";
@ -22,13 +22,13 @@ sbox.appendChild(obox1);
var rand = Math.random(); var rand = Math.random();
console.log(rand); console.log(rand);
if (rand > 1) { if (rand > 0.5) {
sbox.appendChild(obox2); sbox.appendChild(obox2);
setTimeout(function(){ setTimeout(function(){
obox2.style.display = "block"; obox2.style.display = "block";
setTimeout(function(){ setTimeout(function(){
obox2.style.display = "none"; obox2.style.display = "none";
}, 10000) }, 30000)
}, 5000) }, 5000)
} }