炫酷的代码雨

相信大家都看过《黑客帝国》吧,里面的代码雨是不是非常炫酷 ?今天带大家做出代码雨。

bat文件

bat1

@echo off 
 
:: Code by hxuan999 2006-11-12 CMD@XP 
 
:: http://www.cn-dos.net/forum/viewthread.php?tid=24418 
 
setlocal ENABLEDELAYEDEXPANSION 
 
color 02 
 
for /l %%i in (1,1,80) do ( 
 
set Down%%i=0 
 
) 
 
:loop 
 
for /l %%j in (1,1,80) do ( 
 
set /a Down%%j-=1 
 
if !down%%j! LSS 0 ( 
 
set /a Arrow%%j=!random!%%4 
 
set /a Down%%j=!random!%%15+10 
 
) 
 
if "!Arrow%%j!" == "1" ( 
 
set /a chr=!random!%%2 
 
set /p=!chr!

命名为:代码雨1.bat

bat2

@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!

(照上面命名为代码雨.bat  以此类推)

bat3

@echo off 
color 02 
:start 
echo %random% %random% %random% %rangom% %random% %random% %rangom% %random% %random% %random% %random% %rangom% %rangom% 
goto start 

html文件





命名为:代码雨4.html

演示(html)

炫酷的代码雨_第1张图片

 更多

更多代码雨持续更新,抢先体验戳这里

你可能感兴趣的:(html)