35 lines
897 B
JavaScript
Raw Normal View History

2020-07-01 12:40:32 +08:00
2020-07-01 16:10:42 +08:00
var obox1 = document.createElement("div")
2021-01-05 15:45:10 +08:00
obox1.innerHTML = '<img src = "/img/movie.jpeg" width = "275" height = "370" />';
2020-07-01 16:10:42 +08:00
obox1.style.position = "fixed";
obox1.style.right = "20px";
2021-01-05 15:23:57 +08:00
obox1.style.bottom = "0px";
2021-01-14 12:58:26 +08:00
obox1.style.display = "none";
2020-07-01 13:38:13 +08:00
2021-01-14 12:50:58 +08:00
obox1.setAttribute("class", "movie")
2021-01-17 11:54:23 +08:00
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";
2021-01-17 12:02:07 +08:00
obox2.style.zIndex = "9999";
2021-01-17 11:54:23 +08:00
obox2.style.display = "none";
2020-07-01 16:10:42 +08:00
var sbox = document.getElementsByTagName("body")[0];
sbox.appendChild(obox1);
2021-01-13 10:48:52 +08:00
2021-01-17 12:02:07 +08:00
var rand = Math.random();
console.log(rand);
if (rand > 0.7) {
2021-01-17 11:54:23 +08:00
sbox.appendChild(obox2);
setTimeout(function(){
obox2.style.display = "block";
setTimeout(function(){
obox2.style.display = "none";
}, 10000)
}, 5000)
}