查看完整版本: 页面黑客帝国效果

wzmaths 2007-4-18 13:48

页面黑客帝国效果

转自E天下

[quote]<html>
<head>
<title>网页特效|Linkweb.cn/Js|---页面黑客帝国效果</title>
</head><BODY  BGCOLOR=#000000>
<!--将以下代码加入HTML的<Body></Body>之间-->

<script language="JavaScript">
<!--
if (document.all){
Cols=6;
Cl=24;//Space's are included so real length is 48!
Cs=10;
Ts=10;
Tc='#008800';
Tc1='#00ff00';
MnS=20;
MxS=30;
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);
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+=Cs;
document.write("<div id='A' style='position:absolute;top:0;font-family:Arial;font-size:"
+Ts+"px;left:"+S+";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='';
C=Math.round(Math.random()*1)+' ';
M[j]=B[0]+=C;
}
}
function Cycle(){
Container.style.top=window.document.body.scrollTop;
for (i=0; i < Cols; i++){
var r = Math.floor(Math.random()*Tcc.length);
E = '<font color='+Tc1+'>'+Tcc[r]+'</font>';
Y+=Sp;

if (Y > 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=B[0]+=C[i3];
Y=-Ts*M.length/1.5;
A.style.visibility='visible';
}
Sp=Math.round(MnS+Math.random()*MxS);
}
}
A.style.top=Y;
A.innerHTML=M+' '+E+' ';
}
setTimeout('Cycle()',20)
}
Cycle();
}
// -->
</script>
</body></html>[/quote]
演示地址:[url]http://qq888.91.tc/daimayanshi/heikediguoxiaoguo.html[/url]

[[i] 本帖最后由 707609131 于 2008-1-6 10:31 编辑 [/i]]

cnvery 2007-4-18 22:23

有没有演示???

殇〃 2007-4-21 02:04

什么样子的

bug168 2007-4-21 21:04

[quote]原帖由 [i]殇〃[/i] 于 2007-4-21 02:04 发表
什么样子的 [/quote]


页面背景为全黑色的饿

幻古冰神 2007-12-29 19:34

怎么用的···

在哪里放···不知道啊啊啊:Q :Q

共产主义 2007-12-29 21:15

这个适合什么的网站????

蒙奇D.路飛 2007-12-29 21:31

只能作爲效果,沒什麽用處- -

362204803 2007-12-29 22:31

这个适合什么的网站????

495208501 2007-12-30 12:08

演示呢?

707609131 2008-1-6 10:32

加上了演示。漆黑一片。比我的七零星空还黑

707609131 2008-1-6 10:32

加上了演示。漆黑一片。比我的七零星空还黑

2008-1-6 19:10

只有個背景. = =

Mmp゛╪尛赫。 2008-1-7 23:44

这个要放到哪里?

佐佐木 2008-1-14 16:32

``有什么用?~!

蓝洛水深 2008-1-14 20:56

就是黑而已?
我以为是那个很老的那个代码……%

heisechibang 2008-2-2 16:07

一片漆黑

一片漆黑,怎么什么也没有啊
页: [1]
查看完整版本: 页面黑客帝国效果