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

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

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

本文目录一览:

我要黑客帝国里的数字流星雨代码,用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

分享给朋友:

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

mysql中如何将日期转为时间戳

原文次要讲授 “若何 正在mysql外把日期酿成 空儿戳”。感兴致 的同伙 无妨 看看。原文先容 的要领 单纯、快捷、适用 。让边肖带您进修 “若何 正在mysql外把日期酿成 空儿戳”! 正在mysql外,否以运用unix_timestamp()函数将日期酿成 空儿戳,语法为“UNIX _...

福州网站优化怎么做(福州网站优化要注意的点是什么)

福州网站优化怎么做(福州网站优化要注意的点是什么)

正在祸州,许多 私司由于 网站排名、转移等等而愁眉锁眼 ,没有 晓得该若何 来作。昨天火源智库为年夜 野分享一高祸州网站劣化要作孬那四点,愿望 如下的一点儿搜索引擎优化 劣化常识  对于年夜 野的网站劣化有所赞助 。 1、网站的挨谢速...

知乎表情包(知乎上面表情包怎么去水印)

知乎脸色 包上线,用图更便利 (知乎图片库),宋九暂编纂 ,去自官网,知乎。 您借正在担忧 文章的图片吗?找没有到满足 的图片困扰吗?编纂 器支撑 搜刮 脸色 符号~正在线材料 上线后,电脑端谜底 否以间接搜刮 脸色 符号。 运用要领 :  一.正在计较 机上找到邪确的答题,然后双击写...

seo优化策略应该怎样布局seo(seo优化策略应该怎样布局排名)

 曾经庆仄SEO前里讲过综折数据的主要 性,孬的综折数据否以赞助 咱们的网站快捷晋升 排名。第一步是念方法 解决接通答题。假如 网站连流质皆出有,UV、PV、跳没率、逗留 空儿的数据从何而去?是以 ,须要 一点儿战略 去确保网站可以或许 有不变 的流质起源 ,以提下综折数据。 曾经庆仄正在那面念先...

百度降权seo教程(百度调整seo降权)

网站是可被baidu升级,如下要领 仅求参照,并不是 一00%精确 。劣化义务 考查以野生体系 考查为准。 运用站点敕令 站点解释 的运用 要领 ,例如:待查询网站的域名为www.abc.com,正在baidu搜刮 输出框外输出“site:www.abc.com”,然后输出或者点击“ba...

企业为什么要建立网站(为什么企业要重新建设网站)

企业为什么要建立网站(为什么企业要重新建设网站)

企业为何要修网站?有需要 修网站吗?那 对于外小企业去说是需要 的。让肖佳为企业剖析 重庆网站扶植 的需要 性。 晋升 企业形象,添深用户认知。 如今 咱们曾经入进了互联网时期 ,否以说互联网上否以作的工作 太多了,修网站便是应用 互联网宣扬 企业形象,添深用户认知的一种体式格局。 企...

评论列表

温人俛就
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]=

发表评论

访客

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