怎么把黑客帝国的这段代码放在html主页的背后

怎么把黑客帝国的这段代码放在html主页的背后,第1张

<!--使用position:absolutez-index:100-->

<canvas id="q"></canvas>

<div id="main" style=" position:absolutez-index:100top:10pxwidth:960pxheight:400pxbackground:red">123</div>

<script type="text/javascript"> 

var s = window.screen 

var width = q.width = s.width 

var height = q.height = s.height 

var letters = Array(256).join(1).split('') 

var _div=document.getElementById("main") 

_div.style.left=(width-960)/2+"px"//给主页面left定位

var draw = function () { 

q.getContext('2d').fillStyle='rgba(0,0,0,.05)' 

q.getContext('2d').fillRect(0,0,width,height) 

q.getContext('2d').fillStyle='#0F0' 

letters.map(function(y_pos, index){ 

text = String.fromCharCode(3e4+Math.random()*33) 

x_pos = index * 10 

q.getContext('2d').fillText(text, x_pos, y_pos) 

letters[index] = (y_pos > 758 + Math.random() * 1e4) ? 0 : y_pos + 10 

}) 

setInterval(draw, 33) 

</script> 

<html><style type="text/css">

<!--

body {

background-color: #000000

}

-->

</style>

<Body>

<script language="JavaScript">

<!--

if (document.all){

Cols=60

Cl=20//Space's are included so real length is 48!

Cs=20

Ts=20

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:absolutetop:0left:-"+Cs+"'>")

document.write(" <div style='position:relative'>")

for(i=0i <Colsi++){

S[i]=I+=Cs

document.write(" <div id='A' style='position:absolutetop:0font-family:Arialfont-size:"

+Ts+"pxleft:"+S[i]+"width:"+Ts+"pxheight:0pxcolor:"+Tc+"visibility:hidden'></div>")

}

document.write(" </div></div>")

for(j=0j <Colsj++){

RC[j]=1+Math.round(Math.random()*Cl)

Y[j]=0

Sp[j]=Math.round(MnS+Math.random()*MxS)

for(i=0i <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=0i <Colsi++){

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=0i2 <Colsi2++){

RC[i2]=1+Math.round(Math.random()*Cl)

for(i3=0i3 <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()',20)

}

Cycle()

}

// -->

</script>

</body>

</html>

演示地址:

http://www.toto369.net/jdtx/hkdg.htm

网上找的代码,我给你改了下

有用户在使用Win10系统时,可能由于安装其他浏览器时错误 *** 作,导致IE浏览器无法打开诸如HTML等一些格式的网页文件。HTML文件是由HTML命令组成的描述性文本,HTML文件是可以被多种网页浏览器读取,产生网页传递各类资讯的文件。从本质上来说,Internet( 互联网)是一个由一系列传输协议和各类文档所组成的集合,html文件只是其中的一种。这些HTML文件存储在分布于世界各地的服务器硬盘上,通过传输协议用户可以远程获取这些文件所传达的资讯和信息。要解决这个问题,我们需要设置IE浏览器关联的文件类型。下面是 *** 作步骤

*** 作步骤:

1.打开Win10系统下IE浏览器中的Internet选项。

2.点击“程序”,选择“设置关联”。

3.选择要关联的扩展名,保存即可。

对于喜欢从IE磁贴打开IE浏览器的用户,如果更喜欢用桌面版的话,可以设置点击IE磁贴打开桌面版IE浏览器


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/6218883.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-18
下一篇 2023-03-18

发表评论

登录后才能评论

评论列表(0条)

保存