📄 0613ye2.htm
字号:
<html>
<head>
<title>很酷的数字现象</title>
<style type="text/css">
<!--
body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px}
A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }
A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#000000">
<br>
<br>
<center><font color=red face="隶书" size=6>很酷的数字现象</font></center>
<script language="JavaScript">
<!-- Matrix by kurt.grigg@virgin.net
if (document.all){
X=new Array();
for(i=0; i < 3; i++){
X[i]=Math.round(Math.random()*1)
}
Imsg='0'+' '+'1'+' '+'0'+' '+'1'+' '+'0'+' '
+X[0]+' '+X[1]+' '+X[1]+' '+'0'+' '+'1'+' ';
var msg=Imsg+Imsg;
L=msg.length;
L2=msg.length-10;
I=-10;
S=new Array();
T=new Array();
mix=new Array();
stp=new Array();
pos=new Array();
txt=new Array();
O=new Array();
RC=new Array("1","0");
document.write("<div id='Container' style='position:absolute;top:0;left:0'>")
for(i=0; i < msg.length/2; i++){
S[i]=I+=12;
document.write("<div id='A' style='position:absolute;top:0;left:"+S[i]+";width:10;height:100px;"
+"font-family:Arial,Verdana;font-size:12px;color:#00bb00'></div>");
}
document.write("</div>");
for(i=0; i < msg.length/2; i++){
T[i]=msg;
pos[i]=0;
stp[i]=Math.random()*2;
mix[i]=Math.round(Math.random()*6);
O[i]=40+Math.round(Math.random()*60);
}
function Matrix(){
var r=Math.floor(Math.random()*RC.length);
var Q="<div style='position:relative;color:#00ff00'>"+RC[r]+"</div>";
Container.style.top=window.document.body.scrollTop;
for(i=0; i < msg.length/2; i++){
pos[i]+=stp[i];
txt[i]=T[i].substring(mix[i],pos[i])+' '+Q+' ';
A[i].innerHTML=txt[i];
A[i].style.filter='alpha(opacity = '+O[i]+')';
if (pos[i] > L){
pos[i]=0;
stp[i]=Math.random()*2;
L=10+Math.round(Math.random()*L2);
mix[i]=Math.round(Math.random()*6);
O[i]=40+Math.round(Math.random()*60)
}
}
setTimeout('Matrix()',10);
}
Matrix();
}
// -->
</script>
<center>
<table border=5 bordercolor=blue borderlight=green>
<tr><td align=center><font size=4 color=red face="Arial, Helvetica, sans-serif"><strong>左上角为效果显示</strong></font></td></tr>
</table></center>
<br>
<br><br>
<br><br>
<br>
<center>
<textarea name=source rows=12 cols=45 class=yk9>
脚本说明:
把如下代码加入区域中
<script language="JavaScript">
<!-- Matrix by kurt.grigg@virgin.net
if (document.all){
X=new Array();
for(i=0; i < 3; i++){
X[i]=Math.round(Math.random()*1)
}
Imsg='0'+' '+'1'+' '+'0'+' '+'1'+' '+'0'+' '
+X[0]+' '+X[1]+' '+X[1]+' '+'0'+' '+'1'+' ';
var msg=Imsg+Imsg;
L=msg.length;
L2=msg.length-10;
I=-10;
S=new Array();
T=new Array();
mix=new Array();
stp=new Array();
pos=new Array();
txt=new Array();
O=new Array();
RC=new Array("1","0");
document.write("<div id='Container' style='position:absolute;top:0;left:0'>")
for(i=0; i < msg.length/2; i++){
S[i]=I+=12;
document.write("<div id='A' style='position:absolute;top:0;left:"+S[i]+";width:10;height:100px;"
+"font-family:Arial,Verdana;font-size:12px;color:#00bb00'></div>");
}
document.write("</div>");
for(i=0; i < msg.length/2; i++){
T[i]=msg;
pos[i]=0;
stp[i]=Math.random()*2;
mix[i]=Math.round(Math.random()*6);
O[i]=40+Math.round(Math.random()*60);
}
function Matrix(){
var r=Math.floor(Math.random()*RC.length);
var Q="<div style='position:relative;color:#00ff00'>"+RC[r]+"</div>";
Container.style.top=window.document.body.scrollTop;
for(i=0; i < msg.length/2; i++){
pos[i]+=stp[i];
txt[i]=T[i].substring(mix[i],pos[i])+' '+Q+' ';
A[i].innerHTML=txt[i];
A[i].style.filter='alpha(opacity = '+O[i]+')';
if (pos[i] > L){
pos[i]=0;
stp[i]=Math.random()*2;
L=10+Math.round(Math.random()*L2);
mix[i]=Math.round(Math.random()*6);
O[i]=40+Math.round(Math.random()*60)
}
}
setTimeout('Matrix()',30);
}
Matrix();
}
// -->
</script>
</textarea>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide
function goHist(a)
{
history.go(a);
}
//-->
</script>
<FORM METHOD="post">
<INPUT TYPE="button" VALUE="返回" onClick="goHist(-1)" style="background-color: #8000FF; color: rgb(255,255,255)">
</form>
</center>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -