-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404script.html
More file actions
29 lines (28 loc) · 995 Bytes
/
404script.html
File metadata and controls
29 lines (28 loc) · 995 Bytes
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
<script language="JavaScript">
<!--
today=new Date();
jran=today.getTime();
function rnd()
{ ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
return jran/(im*1.0);
};
function rand(number)
{
return Math.ceil(rnd()*number);
};
document.write();
for(i=1;i<=1;i++)
{
myNum=(rand(2)); //其中的“5”改成你要随机显示的图片数,对应如下地址;
if(myNum == 1) document.write("<img src='https://raw.github.com/franzzzz/franzzzz.github.com/master/pic/black.jpg' alt="恭喜你找到王狗蛋的第404个宝藏啦!" title="恭喜你找到王狗蛋的第404个宝藏啦!" width="100%" height="97%"/>");
if(myNum == 2) document.write("<img src='https://raw.github.com/franzzzz/franzzzz.github.com/master/pic/yellow.jpg' alt="恭喜你找到王狗蛋的第404个宝藏啦!" title="恭喜你找到王狗蛋的第404个宝藏啦!" width="100%" height="97%"/>");
else
{ document.write();
}
};
document.write();
-->
</script>