替换 文件 C:\Users\Qingdaer\AppData\Roaming\secoresdk\360se6\Application\14.1.1012.0
下的 errorpage.zip
可以自定义里面的网页
我使用的是,功能随机时间开始播放一个视频
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>网页无法访问</title>
<style>
#all {
text-align: center;
}
#error {
font-size: 188px;
}
#error1 {
font-size: 18px;
}
#video {
width: 50%;
max-width: 666px;
min-width: 588px;
border-radius: 18px;
}
</style>
<script>
function setStyle(a) {
document.getElementById(a).controls = "controls";
}
</script>
</head>
<body>
<div id="all">
<video id="video" autoplay muted loop onclick="setStyle(this.id)">
<source src="snh48.mp4" type="video/mp4">
</video>
<div id="error">404</div>
<div id="error1">Oh no , 网页走丢了</div>
</div>
<script>
<!-- 调小音量 -->
document.getElementById("video").volume = 0.2;
< !--随机时间开始 -->
window.onload = playBySeconds;
function playBySeconds() {
var num = Math.random() * 238;
let myVideo = document.getElementById('video');
myVideo.currentTime = num;
}
</script>
</body>
</html>
视频地址
game.di1.ren