-
Notifications
You must be signed in to change notification settings - Fork 0
/
x.html
59 lines (54 loc) · 1.7 KB
/
x.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>软件下载</title>
<style>
/* 提示框样式 */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 18px;
z-index: 9999;
text-align: center;
padding: 20px;
}
.overlay .message {
background-color: rgba(0, 0, 0, 0.7);
padding: 15px 30px;
border-radius: 10px;
font-size: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
</style>
<script>
function downloadFile() {
window.open('https://dw.oray.com/sunlogin/windows/SunloginClient_15.6.9.16287.exe', '_blank');
<!-- alert("下载已开始,请注意查看!"); -->
}
window.onload = function() {
// 创建提示框
const overlay = document.createElement('div');
overlay.classList.add('overlay');
overlay.innerHTML = `<div class="message">点击屏幕任意地方开始下载</div>`;
document.body.appendChild(overlay);
// 在整个页面上添加点击事件
overlay.addEventListener('click', function() {
downloadFile();
document.body.removeChild(overlay); // 移除提示框
});
}
</script>
</head>
<body>
</body>
</html>