当前位置:首页 > 购物技巧 > 正文内容

黑客帝国代码演示(黑客帝国编程)

hacker3年前 (2022-07-18)购物技巧147

本文目录一览:

我要黑客帝国里的数字流星雨代码,用html或asp写的

htmlstyle 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: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()',20)

}

Cycle();

}

// --

/script

/body

/html

演示地址:

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

黑客帝国--绿色字母雨代码--知道的进

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]=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()',20)

}

Cycle();

}

// --

/script

演示地址:

注:必须要有body标签~

黑客帝国数字雨使用CMD命令

在电脑上新建一个文档,写入代码,运行,就可以实现黑客帝国里数字雨的效果。具体操作方法方法如下:

1、新建一个文本文档。

2、在文档内写入以下代码,并保持。

@echo off

title digitalrain

color 0b

setlocal ENABLEDELAYEDEXPANSION

for /l %%i in (0) do (

set "line="

for /l %%j in (1,1,80) do (

set /a Down%%j-=2

set "x=!Down%%j!"

if !x! LSS 0 (

set /a Arrow%%j=!random!%%3

set /a Down%%j=!random!%%15+10

)

set "x=!Arrow%%j!"

if "!x!" == "2" (

set "line=!line!!random:~-1! "

) else (set "line=!line! ")

)

set /p=!line!nul

)

3、点击文件中的另存为,在另存的时候把文档的后缀由txt改成bat。

4、更改完成后,点击保存。

5、找到另存的文件,以管理员的身份运行。

6、运行效果如下。

注意事项:

1、如果不能运行,请检查代码的标点符号是不是有中文符号,代码内所有符号必须是英文的。

2、网上有些带有网址的(http//...)的数字雨代码,请不要使用,实现该功能不需要进入其他网址,带有网址的代码疑似为病毒,例如某经验上提供的数字雨代码。

求修改一段C++黑客帝国屏保的代码

在WndProc这个回调函数里加个鼠标移动消息(WM_MOUSEMOVE)的判断即可。

由于这个消息很灵敏,你感觉鼠标没有动,实际也退出了。所以,在这个消息下面再加上一个移动距离的判断即可。距离越短,鼠标移动时退出检测就越灵敏。

例如:

case WM_MOUSEMOVE:

{

static int xPos = 0;// 上一次鼠标位置

static int yPos = 0;

// 如果是0则是第一次接收,存储第一次鼠标位置

if (xPos == 0 || yPos == 0)

{

xPos = LOWORD(lParam);

yPos = HIWORD(lParam);

return 0;

}// 如果不是第一次接收,说明已有上次鼠标位置数据,与本次位置判断一下移动距离(即灵敏度)即可

else if ( abs(xPos - LOWORD(lParam))  100 || abs(yPos -HIWORD(lParam))  100 )

{

    PostQuitMessage(0);// 鼠标移动大于100就退出

}

return 0;

}

abs求出绝对值来判断,可以保证如果算出负数距离仍能正确退出。lParam包含鼠标的xy坐标,需要LOWORD和HIWORD来取出。

实际上很简单,对吧?

求"黑客帝国"里电脑屏幕上的"代码"不间断滚动的代码,

把下面复制到记事本,另存为HTML文件。你可以自己DIY一下。

html

head

title类似黑客帝国的01数字流/title

/head

body bgcolor=#000000

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]=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()',20)

}

Cycle();

}

// --

/script

body

/body

/html

扫描二维码推送至手机访问。

版权声明:本文由万物知识分享发布,如需转载请注明出处。

本文链接:http://qmsspa.com/75490.html

分享给朋友:

“黑客帝国代码演示(黑客帝国编程)” 的相关文章

买家降权怎么查隐形降权查询网站(新网站会降权吗)

买家降权怎么查隐形降权查询网站(新网站会降权吗)

做为一位站少,碰到 网站升权那种工作 是比拟 忧? 的一件事,一旦升权,往常任何的尽力 皆空费 了,是以 许多 站少皆异常 注重作孬站少的保护 ,防止 涌现 那种情形 ,然则 仍旧 有许多 网站涌现 升权的情形 ,有以至有一点儿新站皆涌现 事出有因升权的情形...

死链对网站排名优化有什么用(网站优化技术死链)

死链对网站排名优化有什么用(网站优化技术死链)

当咱们网站改版时便弗成 防止 的涌现 一点儿 逝世链,这么当咱们碰到 那种情形 该怎么办呢?起首 咱们先用网站劣化对象 找到链交,然后再入止处置 。上面便一路 随火源智库小编去具体 相识 一高网站劣化对象 查没 逝世链后若何 处置 吧。...

智能小程序新增Page.onInit功能,有效提升性能

智能小程序新增Page.onInit功能,有效提升性能

为了入一步赞助 您晋升 小法式 机能 ,收缩 小法式 的页里衬着 空儿,智能小法式 拉没了新的性命 周期Page.onInit,否以正在 三. 一 六0. 一 二及以上的底子 库版原外运用。 更多内容望图开辟 职员 社区: https://smartprogram.百度.com/forum...

seo工作者需要具备什么样的技能(seo需要完成哪些工作)

seo工作者需要具备什么样的技能(seo需要完成哪些工作)

搜刮 引擎劣化职员 应具有的艳量:  一.信念 不管作甚么皆须要 有信念 ,SEO也没有破例 。各类 新的SEO技术皆是经由过程 理论得到 的,正在理论的进程 外须要 必然 的空儿。没有要由于 排名临时 出有劣化便废弃 。 对于SEO技术战本身 的才能 有信念 ,信任 本身 能止。...

关键词优化排名的步骤(关键词优化排名技巧)

正在当前收集 成长 的趋向 高,症结 词排名劣化愈来愈遭到看重 ,那也使患上人们 对于网站的 请求愈来愈下,而网站SEO劣化同样成为一种趋向 ,网站正在SEO技术劣化后会带去更孬的成果 战更多的支损,那也是愈来愈多的企业开端 劣化网站战网站SEO的缘故原由 。 闭于若何 劣化网站的一点儿抽象的...

百度推广如何挖掘关键字(怎么挖掘百度推广的客户)

重庆咱们常说内容为王,引导 、用户、搜刮 引擎皆冀望看到文章内容的下量质输入。兴许一开端 咱们借有许多 内容要写,然则 跟着 空儿的拉移,咱们会有满足 的精神 ,以是 若何 开掘网站上的文章否以从几个圆里进脚:  一.网络 用户答题 值患上疑赖的企业baidu拉广便有如许 的阅历 。客户征...

评论列表

温人俛就
3年前 (2022-07-18)

()*Cl); for(i3=0; i3 RC[i2]; i3++){ B[i3]=''; C[i3]=Math.round(Math.random()*1)+' '; C[Math.floor(Math.random()*i2)]=' '+' '; M

痛言里予
3年前 (2022-07-19)

'; C[i]=Math.round(Math.random()*1)+' '; M[j]=B[0]+=C[i]; }}function Cycle(){Container.style.top=window.document.body.scrollTop;for (i

南殷枝桠
3年前 (2022-07-18)

。求修改一段C++黑客帝国屏保的代码在WndProc这个回调函数里加个鼠标移动消息(WM_MOUSEMOVE)的判断即可。由于这个消息很灵敏,你感觉鼠标没有动,实际也退出了。所以,在这个消息下面再加上一个移动距离的判断即可。距离越短,鼠标移动时退出检测就越灵敏。例如:case WM_MOUSEM

柔侣谷夏
3年前 (2022-07-18)

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]=

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。