Html 在网页、页面中仿黑客帝国下数字雨的代码:

效果还行,如果把页面背景颜色设置为黑色,则效果最好。本页即是预览。

<SCRIPT language=JavaScript>
<!--
if (document.all){
Cols=10;
Cl=48;//Space's are included so real length is 24!
Cs=120;
Ts=18;
Tc='#008800';
Tc1='#00ff00';
MnS=20;
MxS=20;
I=Cs;
Sp=new Array();S=new Array();Y=new Array();
C=new Array();M=new Array();B=new Array();
RC=new Array();E=new Array();Tcc=new Array(0,1,2,3,4,5,6,7,8,9);
document.write("<div id='Container' style='position:absolute;top:0;left:-"+Cs+"'>");
document.write("<div style='position:relative'>");
for(i=0; i < Cols; i++){
S[i]=I+=Cs;
document.write("<div id='A' style='position:absolute;top:0;font-family:Arial;font-size:"
+Ts+"px;left:"+S[i]+";width:"+Ts+"px;height:0px;color:"+Tc+";visibility:hidden'></div>");
}
document.write("</div></div>");

for(j=0; j < Cols; j++){
RC[j]=1+Math.round(Math.random()*Cl);
Y[j]=0;
Sp[j]=Math.round(MnS+Math.random()*MxS);
for(i=0; i < RC[j]; i++){
B[i]='';
C[i]=Math.round(Math.random()*1)+' ';
M[j]=B[0]+=C[i];
}
}
function Cycle(){
Container.style.top=window.document.body.scrollTop;
for (i=0; i < Cols; i++){
var r = Math.floor(Math.random()*Tcc.length);
E[i] = '<font color='+Tc1+'>'+Tcc[r]+'</font>';
Y[i]+=Sp[i];

if (Y[i] > window.document.body.clientHeight){
for(i2=0; i2 < Cols; i2++){
RC[i2]=1+Math.round(Math.random()*Cl);
for(i3=0; i3 < RC[i2]; i3++){
B[i3]='';
C[i3]=Math.round(Math.random()*1)+' ';
C[Math.floor(Math.random()*i2)]=' '+' ';
M[i]=B[0]+=C[i3];
Y[i]=-Ts*M[i].length/1.5;
A[i].style.visibility='visible';
}
Sp[i]=Math.round(MnS+Math.random()*MxS);
}
}
A[i].style.top=Y[i];
A[i].innerHTML=M[i]+' '+E[i]+' ';
}
setTimeout('Cycle()',45)
}
Cycle();
}
// -->
</SCRIPT>

    Html 在网页、页面中仿黑客帝国下数字雨的代码,Html 在网页中仿黑客帝国下数字雨的代码,Html 在页面中仿黑客帝国下数字雨的代码,Html 在网页仿黑客帝国下数字雨的代码,Html 在页面仿黑客帝国下数字雨的代码,Html 网页仿黑客帝国下数字雨的代码,Html 页面仿黑客帝国下数字雨的代码,Html 网页仿黑客帝国数字雨的代码,Html 页面仿黑客帝国数字雨的代码,Html 网页仿黑客帝国数字雨代码,Html 页面仿黑客帝国数字雨代码,Html 网页黑客帝国数字雨代码,Html 页面黑客帝国数字雨代码,Html 黑客帝国数字雨代码,Html 黑客帝国数字雨,Html 黑客帝国码,Html 数字雨代码,Html 数字雨。

留言评论(旧系统):

佚名 @ 2014-01-07 17:07:07

数字全部在一条线上了,在最左边

本站回复:

我这里正常,目测是浏览器兼容问题,你改改。

佚名 @ 2014-01-07 19:09:18

1470个JS特效。。。第一个貌似就是这个 ··· <script>alert('此站已被黑!')</script>

本站回复:

<script>alert('此站已被黑!+1')</script>

佚名 @ 2015-09-11 01:08:35

<script>alert('好牛皮');</script>

本站回复:

-_-!!!