China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-20 12:18
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Recommendation][Challenge Idea] Use a script to simulate the digital rain from The Matrix DigestI View 27,138 Replies 67
Floor 31 Posted 2006-11-09 21:45 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Floors 26 and 27 are too amazing, going beyond DOS batch processing.
This would require more professional tools like 3DMAX or Maya to achieve more effects, but it loses the meaning of the "thinking challenge" that the forum moderator advocated for using DOS batch processing~:)
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 32 Posted 2006-11-09 23:40 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
Featured!
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 33 Posted 2006-11-10 00:05 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
This is the digital rain in HTML

digital_rain.htm


<html>
<head>
<title>Digital Rain</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor=#000000 scroll=no>
<!-------------------------------->
<script language="JavaScript">
<!--
if (document.all){
Cols=33;
Cl=10;//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=1+Math.round(Math.random()*Cl);
Y=0;
Sp=Math.round(MnS+Math.random()*MxS);
for(i=0; i < RC; i++){
B='';
C=Math.round(Math.random()*1)+' ';
M=B+=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+'</font>';
Y+=Sp;

if (Y > window.document.body.clientHeight){
for(i2=0; i2 < Cols; i2++){
RC=1+Math.round(Math.random()*Cl);
for(i3=0; i3 < RC; i3++){
B='';
C=Math.round(Math.random()*1)+' ';
C=' '+' ';
M=B+=C;
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>


"digital_rain.htm" is very resource-intensive. You can appropriately reduce "Cols=33;"

digital_rain.bat


@echo off
>%temp%\Temp.vbs echo set WshShell = Wscript.CreateObject("Wscript.Shell")
>>%temp%\Temp.vbs echo set ie=wscript.createobject("internetexplorer.application","event_")
>>%temp%\Temp.vbs echo ie.fullscreen=0
>>%temp%\Temp.vbs echo ie.menubar=0
>>%temp%\Temp.vbs echo ie.addressbar=0
>>%temp%\Temp.vbs echo ie.toolbar=0
>>%temp%\Temp.vbs echo ie.statusbar=0
>>%temp%\Temp.vbs echo ie.resizable=0
>>%temp%\Temp.vbs echo ie.width=360
>>%temp%\Temp.vbs echo ie.height=300
>>%temp%\Temp.vbs echo ie.navigate "%cd:\=/%/数码雨.htm"
>>%temp%\Temp.vbs echo ie.left=fix((ie.document.parentwindow.screen.availwidth-ie.width)/2)
>>%temp%\Temp.vbs echo ie.top=fix((ie.document.parentwindow.screen.availheight-ie.height)/2)
>>%temp%\Temp.vbs echo ie.visible=1

>>%temp%\Temp.vbs echo dim wmi
>>%temp%\Temp.vbs echo set wnd=ie.document.parentwindow
>>%temp%\Temp.vbs echo set id=ie.document.all

>>%temp%\Temp.vbs echo do while true
>>%temp%\Temp.vbs echo wscript.sleep 200
>>%temp%\Temp.vbs echo WshShell.AppActivate ("数码雨 - Microsoft Internet Explorer")
>>%temp%\Temp.vbs echo loop

>>%temp%\Temp.vbs echo sub event_onquit
>>%temp%\Temp.vbs echo wscript.quit
>>%temp%\Temp.vbs echo end sub
start %temp%\Temp.vbs
Floor 34 Posted 2006-11-10 00:22 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
A bit fake, not like, heh heh
I remember in the movie: The positions of the numbers are fixed, and then the transformation of each number in its fixed position creates an illusion of falling.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 35 Posted 2006-11-11 06:28 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
Here are the translated texts:

First code block:
<TITLE>Digital Rain ☆Produced by DOS Union pengfei☆</TITLE>

<BODY text=#00ff00 vLink=#008000 aLink=#008000 link=#008000 bgColor=#000000
background="" onload=writetext();>
<DIV id=nothing style="WIDTH: 889px; HEIGHT: 259px"></DIV>
<DIV align=center>
<SCRIPT language=JavaScript>
<!--
if (document.all){
Cols=10;
Cl=48;//Spaces are included so the real length is 24!
Cs=120;
Ts=18;
Tc='#008800';
Tc1='#00ff00';
MnS=20;
MxS=20;
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,2,3,4,5,6,7,8,9);
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=1+Math.round(Math.random()*Cl);
Y=0;
Sp=Math.round(MnS+Math.random()*MxS);
for(i=0; i < RC; i++){
B='';
C=Math.round(Math.random()*1)+' ';
M=B+=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+'</font>';
Y+=Sp;

if (Y > window.document.body.clientHeight){
for(i2=0; i2 < Cols; i2++){
RC=1+Math.round(Math.random()*Cl);
for(i3=0; i3 < RC; i3++){
B='';
C=Math.round(Math.random()*1)+' ';
C=' '+' ';
M=B+=C;
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()',45)
}
Cycle();
}
// -->
</SCRIPT>
</DIV></TD></TR></TABLE></SCRIPT><BGSOUND balance=0
src="http://www.chinahacker.com/mid/topic.mid" volume=0 loop=20></TR>
<P align=center><FONT size=7><B><I><FONT
color=#ff0000></FONT></I></B></FONT></P>
<P align=center><FONT size=7><B><I><FONT
color=#ff0000>www.cn-dos.net</FONT></I></B></FONT></P>

Second code block:
<center><body background="http://www.bnbsdo.cn/scan.gif"><br></center>
<BGSOUND balance=0 src="http://www.bnbsdo.cn/fbi.mp3 " volume=-1 loop="-1">
<BODY text=#ffffff vLink=#ffffff aLink=#ffffff link=#ff0000 bgColor=#000000>
<p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>
<center><font size=8 face="Arial Black"><font color=#CC0000>www.cn-dos.net</font></center>
<title>Digital Rain ☆Produced by DOS Union pengfei☆</title>

<SCRIPT language=JavaScript>
<!--
if (document.all){
Cols=10;
Cl=48;//Spaces are included so the real length is 24!
Cs=120;
Ts=18;
Tc='#ffff00';
Tc1='#0099ff';
MnS=20;
MxS=20;
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,2,3,4,5,6,7,8,9);
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=1+Math.round(Math.random()*Cl);
Y=0;
Sp=Math.round(MnS+Math.random()*MxS);
for(i=0; i < RC; i++){
B='';
C=Math.round(Math.random()*1)+' ';
M=B+=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+'</font>';
Y+=Sp;

if (Y > window.document.body.clientHeight){
for(i2=0; i2 < Cols; i2++){
RC=1+Math.round(Math.random()*Cl);
for(i3=0; i3 < RC; i3++){
B='';
C=Math.round(Math.random()*1)+' ';
C=' '+' ';
M=B+=C;
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()',45)
}
Cycle();
}
// -->
</SCRIPT>
[ Last edited by pengfei on 2006-11-26 at 10:36 AM ]
Floor 36 Posted 2006-11-11 07:15 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Well, Brother pengfei's this webpage is the "authentic" digital rain, heh heh
Floor 37 Posted 2006-11-11 07:22 ·  IANA 局域网IP(Private-Use)
中级用户
★★
蝴蝶之吻
Credits 430
Posts 177
Joined 2006-09-20 12:00
19-year member
UID 63170
From 广东深圳
Status Offline
I post the source code of the character stream in *The Matrix* for you to see, this is it!@#$%^&*()


This code comes from This's My Life Guestbook
Here is the effect address:
http://www.sqbook.com/asp/home/sqbook/index.
asp?adminuser=cnbohu

Character Stream in *The Matrix*


<html>
<head>
<title>This's My Life Guestbook--->View Messages</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>

<script language="JavaScript">
n=1
function n0(){if(n>1)n--}
function n1(){if(n<9)n++;if(n>9)n=1}
function s1(){if(n==1)MM_showHideLayers

('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide','Layer7','','hide','Layer8','','hide','Layer9','','

hide');
if(n==2)MM_showHideLayers

('Layer1','','hide','Layer2','','show','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide','Layer7','','hide','Layer8','','hide','Layer9','','

hide');
if(n==3)MM_showHideLayers

('Layer1','','hide','Layer2','','hide','Layer3','','show','Layer4','','hide','Layer5','','hide','Layer6','','hide','Layer7','','hide','Layer8','','hide','Layer9','','

hide');
if(n==4)MM_showHideLayers

('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','show','Layer5','','hide','Layer6','','hide','Layer7','','hide','Layer8','','hide','Layer9','','

hide');
if(n==5)MM_showHideLayers

('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','show','Layer6','','hide','Layer7','','hide','Layer8','','hide','Layer9','','

hide');
if(n==6)MM_showHideLayers

('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','show','Layer7','','hide','Layer8','','hide','Layer9','','

hide');
if(n==7)MM_showHideLayers

('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide','Layer7','','show','Layer8','','hide','Layer9','','

hide');
if(n==8)MM_showHideLayers

('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide','Layer7','','hide','Layer8','','show','Layer9','','

hide');
if(n==9)MM_showHideLayers

('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide','Layer7','','hide','Layer8','','hide','Layer9','','

show')
}
</script>
<script language="JavaScript">
nn=0;
function s0(){if(nn==0){document.onmousedown = sc;document.ondblclick = initialize;}
else {document.onmousedown = sc1;document.ondblclick = initialize1;}
}
var currentpos, timer;
function initialize(){
timer = setInterval("scrollwindow()", 1);
}
function sc(){
clearInterval(timer);
}
function scrollwindow(){
currentpos = document.body.scrollTop;
window.scroll(0, ++currentpos);
if(currentpos != document.body.scrollTop){
sc();
}
}
document.onmousedown = sc;
document.ondblclick = initialize;
var currentpos1, timer1;
function initialize1(){
timer1 = setInterval("scrollwindow1()", 1);
}
function sc1(){
clearInterval(timer1);
}
function scrollwindow1(){
currentpos1 = document.body.scrollTop;
window.scroll(0, --currentpos1);
if(currentpos1 != document.body.scrollTop){
sc1();
}
}
</script>

</head>

<body leftmargin="0" background="" topmargin="0" bgcolor=#000000>
<script language="JavaScript">

//-- Google Analytics Urchin Module
//-- Copyright 2005 Google, All Rights Reserved.

//-- Urchin On Demand Settings ONLY
var _uacct=""; // set up the

Urchin Account
var _userv=1; // service mode (0=local,1=remote,2=both)

//-- UTM User Settings
var _ufsc=1; // set client info

flag (1=on|0=off)
var _udn="auto"; // (auto|none|domain) set the domain name for cookies
var _uhash="on"; // (on|off) unique domain hash for

cookies
var _utimeout="1800"; // set the inactive session timeout in seconds
var _ugifpath="/__utm.gif"; // set the web path to the __utm.gif file
var

_utsp="|"; // transaction field separator
var _uflash=1; // set flash version detect option (1=on|0=off)
var _utitle=1;

// set the document title detect option (1=on|0=off)
var _ulink=0; // enable linker functionality (1=on|0=off)
var _uanchor=0;

// enable use of anchors for campaign (1=on|0=off)
var _utcp="/"; // the cookie path for tracking

//-- UTM Campaign Tracking Settings
var

_uctm=1; // set campaign tracking module (1=on|0=off)
var _ucto="15768000"; // set timeout in seconds (6 month default)
var

_uccn="utm_campaign"; // name
var _ucmd="utm_medium"; // medium (cpc|cpm|link|email|organic)
var _ucsr="utm_source"; // source
var _uctr="utm_term";

// term/keyword
var _ucct="utm_content"; // content
var _ucid="utm_id"; // id number
var _ucno="utm_nooverride"; // don't override

//-- Auto/Organic

Sources and Keywords
var _uOsr=new Array();
var _uOkw=new Array();
_uOsr="google"; _uOkw="q";
_uOsr="yahoo"; _uOkw="p";
_uOsr="msn"; _uOkw

="q";
_uOsr="aol"; _uOkw="query";
_uOsr="aol"; _uOkw="encquery";
_uOsr="lycos"; _uOkw="query";
_uOsr="ask";

_uOkw="q";
_uOsr="altavista"; _uOkw="q";
_uOsr="search"; _uOkw="q";
_uOsr="netscape"; _uOkw="s";
_uOsr="cnn"; _uOkw="query";
_uOsr="looksmart"; _uOkw="qt";
_uOsr="about"; _uOkw="terms";
_uOsr="mamma"; _uOkw="query";
_uOsr="alltheweb"; _uOkw="q";
_uOsr="gigablast"; _uOkw="q";
_uOsr="voila"; _uOkw="kw";
_uOsr="virgilio"; _uOkw="qs";
_uOsr="live"; _uOkw="q";
_uOsr

="baidu"; _uOkw="wd";
_uOsr="alice"; _uOkw="qs";

//-- Auto/Organic Keywords to Ignore
var _uOno=new Array();
//_uOno="urchin";
//_uOno

="urchin.com";
//_uOno="www.urchin.com";

//-- Referral domains to Ignore
var _uRno=new Array();
//_uRno=".urchin.com";

//-- **** Don't modify below this point ***
var

_uff,_udh,_udt,_ubl=0,_udo="",_uu,_ufns=0,_uns=0,_ur="-",_ufno=0,_ust=0,_ubd=document,_udl=_ubd.location,_udlh="",_uwv="1";
var _ugifpath2="http://www.google-

analytics.com/__utm.gif";
if (_udl.hash) _udlh=_udl.href.substring(_udl.href.indexOf('#'));
if (_udl.protocol=="https:") _ugifpath2="https://ssl.google-

analytics.com/__utm.gif";
if (!_utcp || _utcp=="") _utcp="/";
function urchinTracker(page) {
if (_udl.protocol=="file:") return;
if (_uff && (!page || page==""))

return;
var a,b,c,v,z,k,x="",s="",f=0;
var nx=" expires=Sun, 18 Jan 2038 00:00:00 GMT;";
var dc=_ubd.cookie;
_udh=_uDomain();
if (!_uVG()) return;
_uu=Math.round

(Math.random()*2147483647);
_udt=new Date();
_ust=Math.round(_udt.getTime()/1000);
a=dc.indexOf("__utma="+_udh);
b=dc.indexOf("__utmb="+_udh);
c=dc.indexOf

("__utmc="+_udh);
if (_udn && _udn!="") { _udo=" domain="+_udn+";"; }
if (_utimeout && _utimeout!="") {
x=new Date(_udt.getTime()+(_utimeout*1000));
x="

expires="+x.toGMTString()+";";
}
if (_ulink) {
if (_uanchor && _udlh && _udlh!="") s=_udlh+"&";
s+=_udl.search;
if(s && s!="" && s.indexOf("__utma=")>=0) {
if

(!(_uIN(a=_uGC(s,"__utma=","&")))) a="-";
if (!(_uIN(b=_uGC(s,"__utmb=","&")))) b="-";
if (!(_uIN(c=_uGC(s,"__utmc=","&")))) c="-";
v=_uGC(s,"__utmv=","&");


z=_uGC(s,"__utmz=","&");
k=_uGC(s,"__utmk=","&");
if ((k*1) != ((_uHash(a+b+c+z+v)*1)+(_udh*1))) {_ubl=1;a="-";b="-";c="-";z="-";v="-";}
if (a!="-" && b!="-" &&

c!="-") f=1;
else if(a!="-") f=2;
}
}
if(f==1) {
_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;
_ubd.cookie="__utmb="+b+"; path="+_utcp+";"+x+_udo;


_ubd.cookie="__utmc="+c+"; path="+_utcp+";"+_udo;
} else if (f==2) {
a=_uFixA(s,"&",_ust);
_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;


_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;
_ufns=1;
} else if (a>=0 && b>=0 && c>=0) {


_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
} else {
if (a>=0) a=_uFixA(_ubd.cookie,";",_ust);
else a=_udh+"."+_uu+"."+_ust+"."+_ust+"."+_ust+".1";


_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;
_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;


_ufns=1;
}
if (_ulink && v && v!="" && v!="-") {
v=_uUES(v);
if (v.indexOf(";")==-1) _ubd.cookie="__utmv="+v+"; path="+_utcp+";"+nx+_udo;
}
_uInfo(page);
_ufns=0;


_ufno=0;
_uff=1;
}
function _uInfo(page) {
var p,s="",dm="",pg=_udl.pathname+_udl.search;
if (page && page!="") pg=_uES(page,1);
_ur=_ubd.referrer;
if (!_ur || _ur=="")

{ _ur="-"; }
else {
dm=_ubd.domain;
if(_utcp && _utcp!="/") dm+=_utcp;
p=_ur.indexOf(dm);
if ((p>=0) && (p<=8)) { _ur="0"; }
if (_ur.indexOf("

")==(_ur.length-1)) { _ur="-"; }
}
s+="&utmn="+_uu;
if (_ufsc) s+=_uBInfo();
if (_uctm) s+=_uCInfo();
if (_utitle && _ubd.title && _ubd.title!="")

s+="&utmdt="+_uES(_ubd.title);
if (_udl.hostname && _udl.hostname!="") s+="&utmhn="+_uES(_udl.hostname);
s+="&utmr="+_ur;
s+="&utmp="+pg;
if (_userv==0 || _userv==2)

{
var i=new Image(1,1);
i.src=_ugifpath+"?"+"utmwv="+_uwv+s;
i.onload=function() {_uVoid();}
}
if (_userv==1 || _userv==2) {
var i2=new Image(1,1);


i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS();
i2.onload=function() { _uVoid(); }
}
return;
}
function _uVoid() { return; }
function _uCInfo

() {
if (!_ucto || _ucto=="") { _ucto="15768000"; }
if (!_uVG()) return;
var c="",t="-",t2="-",t3="-",o=0,cs=0,cn=0,i=0,z="-",s="";
if (_uanchor && _udlh && _udlh!

="") s=_udlh+"&";
s+=_udl.search;
var x=new Date(_udt.getTime()+(_ucto*1000));
var dc=_ubd.cookie;
x=" expires="+x.toGMTString()+";";
if (_ulink && !_ubl) {
z=_uUES

(_uGC(s,"__utmz=","&"));
if (z!="-" && z.indexOf(";")==-1) { _ubd.cookie="__utmz="+z+"; path="+_utcp+";"+x+_udo; return ""; }
}
z=dc.indexOf("__utmz="+_udh);
if (z>

-1) { z=_uGC(dc,"__utmz="+_udh,";"); }
else { z="-"; }
t=_uGC(s,_ucid+"=","&");
t2=_uGC(s,_ucsr+"=","&");
t3=_uGC(s,"gclid=","&");
if ((t!="-" && t!="") || (t2!="-"

&& t2!="") || (t3!="-" && t3!="")) {
if (t!="-" && t!="") c+="utmcid="+_uEC(t);
if (t2!="-" && t2!="") { if (c != "") c+="|"; c+="utmcsr="+_uEC(t2); }
if (t3!="-"

&& t3!="") { if (c != "") c+="|"; c+="utmgclid="+_uEC(t3); }
t=_uGC(s,_uccn+"=","&");
if (t!="-" && t!="") c+="|utmccn="+_uEC(t);
else c+="|utmccn=(not+set)";


t=_uGC(s,_ucmd+"=","&");
if (t!="-" && t!="") c+="|utmcmd="+_uEC(t);
else c+="|utmcmd=(not+set)";
t=_uGC(s,_uctr+"=","&");
if (t!="-" && t!="")

c+="|utmctr="+_uEC(t);
else { t=_uOrg(1); if (t!="-" && t!="") c+="|utmctr="+_uEC(t); }
t=_uGC(s,_ucct+"=","&");
if (t!="-" && t!="") c+="|utmcct="+_uEC(t);


t=_uGC(s,_ucno+"=","&");
if (t=="1") o=1;
if (z!="-" && o==1) return "";
}
if (c=="-" || c=="") { c=_uOrg(); if (z!="-" && _ufno==1) return ""; }
if (c=="-" ||

c=="") { if (_ufns==1) c=_uRef(); if (z!="-" && _ufno==1) return ""; }
if (c=="-" || c=="") {
if (z=="-" && _ufns==1) { c="utmccn=(direct)|utmcsr=(direct)|utmcmd=

(none)"; }
if (c=="-" || c=="") return "";
}
if (z!="-") {
i=z.indexOf(".");
if (i>-1) i=z.indexOf(".",i+1);
if (i>-1) i=z.indexOf(".",i+1);
if (i>-1)

i=z.indexOf(".",i+1);
t=z.substring(i+1,z.length);
if (t.toLowerCase()==c.toLowerCase()) cs=1;
t=z.substring(0,i);
if ((i=t.lastIndexOf(".")) > -1) {


t=t.substring(i+1,t.length);
cn=(t*1);
}
}
if (cs==0 || _ufns==1) {
t=_uGC(dc,"__utma="+_udh,";");
if ((i=t.lastIndexOf(".")) > 9) {
_uns=t.substring

(i+1,t.length);
_uns=(_uns*1);
}
cn++;
if (_uns==0) _uns=1;
_ubd.cookie="__utmz="+_udh+"."+_ust+"."+_uns+"."+cn+"."+c+"; path="+_utcp+"; "+x+_udo;
}
if (cs==0

|| _ufns==1) return "&utmcn=1";
else return "&utmcr=1";
}
function _uRef() {
if (_ur=="0" || _ur=="" || _ur=="-") return "";
var i=0,h,k,n;
if ((i=_ur.indexOf("://"))

<0) return "";
h=_ur.substring(i+3,_ur.length);
if (h.indexOf("/") > -1) {
k=h.substring(h.indexOf("/"),h.length);
if (k.indexOf("?") > -1) k=k.substring

(0,k.indexOf("?"));
h=h.substring(0,h.indexOf("/"));
}
h=h.toLowerCase();
n=h;
if ((i=n.indexOf(":")) > -1) n=n.substring(0,i);
for (var ii=0;ii<_uRno.length;ii++) {


if ((i=n.indexOf(_uRno.toLowerCase())) > -1 && n.length==(i+_uRno.length)) { _ufno=1; break; }
}
if (h.indexOf("www.")==0) h=h.substring(4,h.length);
return

"utmccn=(referral)|utmcsr="+_uEC(h)+"|"+"utmcct="+_uEC(k)+"|utmcmd=referral";
}
function _uOrg(t) {
if (_ur=="0" || _ur=="" || _ur=="-") return "";
var i=0,h,k;
if

((i=_ur.indexOf("://")) < 0) return "";
h=_ur.substring(i+3,_ur.length);
if (h.indexOf("/") > -1) {
h=h.substring(0,h.indexOf("/"));
}
for (var

ii=0;ii<_uOsr.length;ii++) {
if (h.toLowerCase().indexOf(_uOsr.toLowerCase()) > -1) {
if ((i=_ur.indexOf("?"+_uOkw+"=")) > -1 || (i=_ur.indexOf("&"+_uOkw

+"=")) > -1) {
k=_ur.substring(i+_uOkw.length+2,_ur.length);
if ((i=k.indexOf("&")) > -1) k=k.substring(0,i);
for (var yy=0;yy<_uOno.length;yy++) {


if (_uOno.toLowerCase()==k.toLowerCase()) { _ufno=1; break; }
}
if (t) return _uEC(k);
else return "utmccn=(organic)|utmcsr="+_uEC(_uOsr)

+"|"+"utmctr="+_uEC(k)+"|utmcmd=organic";
}
}
}
return "";
}
function _uBInfo() {
var sr="-",sc="-",ul="-",fl="-",je=1;
var n=navigator;
if (self.screen) {


sr=screen.width+"x"+screen.height;
sc=screen.colorDepth+"-bit";
} else if (self.java) {
var j=java.awt.Toolkit.getDefaultToolkit();
var s=j.getScreenSize();


sr=s.width+"x"+s.height;
}
if (n.language) { ul=n.language.toLowerCase(); }
else if (n.browserLanguage) { ul=n.browserLanguage.toLowerCase(); }
je=n.javaEnabled()?

1:0;
if (_uflash) fl=_uFlash();
return "&utmsr="+sr+"&utmsc="+sc+"&utmul="+ul+"&utmje="+je+"&utmfl="+fl;
}
function __utmSetTrans() {
var e;
if (_ubd.getElementById)

e=_ubd.getElementById("utmtrans");
else if (_ubd.utmform && _ubd.utmform.utmtrans) e=_ubd.utmform.utmtrans;
if (!e) return;
var l=e.value.split("UTM:");
var i,i2,c;


if (_userv==0 || _userv==2) i=new Array();
if (_userv==1 || _userv==2) { i2=new Array(); c=_uGCS(); }

for (var ii=0;ii<l.length;ii++) {
l=_uTrim(l);
if (l

.charAt(0)!='T' && l.charAt(0)!='I') continue;
var r=Math.round(Math.random()*2147483647);
if (!_utsp || _utsp=="") _utsp="|";
var f=l.split

(_utsp),s="";
if (f.charAt(0)=='T') {
s="&utmt=tran"+"&utmn="+r;
f=_uTrim(f); if(f&&f!="") s+="&utmtid="+_uES(f);
f=_uTrim(f); if(f

&&f!="") s+="&utmtst="+_uES(f);
f=_uTrim(f); if(f&&f!="") s+="&utmtto="+_uES(f);
f=_uTrim(f); if(f&&f!="") s+="&utmttx="+_uES(f

);
f=_uTrim(f); if(f&&f!="") s+="&utmtsp="+_uES(f);
f=_uTrim(f); if(f&&f!="") s+="&utmtci="+_uES(f);
f=_uTrim(f); if(f

&&f!="") s+="&utmtrg="+_uES(f);
f=_uTrim(f); if(f&&f!="") s+="&utmtco="+_uES(f);
} else {
s="&utmt=item"+"&utmn="+r;
f=_uTrim(f);

if(f&&f!="") s+="&utmtid="+_uES(f);
f=_uTrim(f); if(f&&f!="") s+="&utmipc="+_uES(f);
f=_uTrim(f); if(f&&f!="")

s+="&utmipn="+_uES(f);
f=_uTrim(f); if(f&&f!="") s+="&utmiva="+_uES(f);
f=_uTrim(f); if(f&&f!="") s+="&utmipr="+_uES(f);
f

=_uTrim(f); if(f&&f!="") s+="&utmiqt="+_uES(f);
}
if (_userv==0 || _userv==2) {
i=new Image(1,1);
i.src=_ugifpath+"?"+"utmwv="+_uwv+s;
i

.onload=function() { _uVoid(); }
}
if (_userv==1 || _userv==2) {
i2=new Image(1,1);
i2

.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+c;
i2.onload=function() { _uVoid(); }
}
}
return;
}
function _uFlash() {
var

f="-",n=navigator;
if (n.plugins && n.plugins.length) {
for (var ii=0;ii<n.plugins.length;ii++) {
if (n.plugins.name.indexOf('Shockwave Flash')!=-1) {


f=n.plugins.description.split('Shockwave Flash ');
break;
}
}
} else if (window.ActiveXObject) {
for (var ii=10;ii>=2;ii--) {
try {
var fl=eval

("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");
if (fl) { f=ii + '.0'; break; }
}
catch(e) {}
}
}
return f;
}
function __utmLinker(l,h) {
if (!

_ulink) return;
var p,k,a="-",b="-",c="-",z="-",v="-";
var dc=_ubd.cookie;
if (!l || l=="") return;
var iq = l.indexOf("?");
var ih = l.indexOf("#");
if (dc) {


a=_uES(_uGC(dc,"__utma="+_udh,";"));
b=_uES(_uGC(dc,"__utmb="+_udh,";"));
c=_uES(_uGC(dc,"__utmc="+_udh,";"));
z=_uES(_uGC(dc,"__utmz="+_udh,";"));
v=_uES(_uGC

(dc,"__utmv="+_udh,";"));
k=(_uHash(a+b+c+z+v)*1)+(_udh*1);
p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;
}
if (p) {
if (h &&

ih>-1) return;
if (h) { _udl.href=l+"#"+p; }
else {
if (iq==-1 && ih==-1) _udl.href=l+"?"+p;
else if (ih==-1) _udl.href=l+"&"+p;
else if (iq==-1)

_udl.href=l.substring(0,ih-1)+"?"+p+l.substring(ih);
else _udl.href=l.substring(0,ih-1)+"&"+p+l.substring(ih);
}
} else { _udl.href=l; }
}
function __utmLinkPost

(f,h) {
if (!_ulink) return;
var p,k,a="-",b="-",c="-",z="-",v="-";
var dc=_ubd.cookie;
if (!f || !f.action) return;
var iq = f.action.indexOf("?");
var ih =

f.action.indexOf("#");
if (dc) {
a=_uES(_uGC(dc,"__utma="+_udh,";"));
b=_uES(_uGC(dc,"__utmb="+_udh,";"));
c=_uES(_uGC(dc,"__utmc="+_udh,";"));
z=_uES(_uGC

(dc,"__utmz="+_udh,";"));
v=_uES(_uGC(dc,"__utmv="+_udh,";"));
k=(_uHash(a+b+c+z+v)*1)+(_udh*1);


p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;
}
if (p) {
if (h && ih>-1) return;
if (h) { f.action+="#"+p; }
else {
if (iq==-1

&& ih==-1) f.action+="?"+p;
else if (ih==-1) f.action+="&"+p;
else if (iq==-1) f.action=f.action.substring(0,ih-1)+"?"+p+f.action.substring(ih);
else

f.action=f.action.substring(0,ih-1)+"&"+p+f.action.substring(ih);
}
}
return;
}
function __utmSetVar(v) {
if (!v || v=="") return;
if (!_udo || _udo == "") {


_udh=_uDomain();
if (_udn && _udn!="") { _udo=" domain="+_udn+";"; }
}
if (!_uVG()) return;
var r=Math.round(Math.random() * 2147483647);


_ubd.cookie="__utmv="+_udh+"."+_uES(v)+"; path="+_utcp+"; expires=Sun, 18 Jan 2038 00:00:00 GMT;"+_udo;
var s="&utmt=var&utmn="+r;
if (_userv==0 || _userv==2) {
var

i=new Image(1,1);
i.src=_ugifpath+"?"+"utmwv="+_uwv+s;
i.onload=function() { _uVoid(); }
}
if (_userv==1 || _userv==2) {
var i2=new Image(1,1);


i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS();
i2.onload=function() { _uVoid(); }
}
}
function _uGCS() {
var t,c="",dc=_ubd.cookie;
if

((t=_uGC(dc,"__utma="+_udh,";"))!="-") c+=_uES("__utma="+t+";+");
if ((t=_uGC(dc,"__utmb="+_udh,";"))!="-") c+=_uES("__utmb="+t+";+");
if ((t=_uGC

(dc,"__utmc="+_udh,";"))!="-") c+=_uES("__utmc="+t+";+");
if ((t=_uGC(dc,"__utmz="+_udh,";"))!="-") c+=_uES("__utmz="+t+";+");
if ((t=_uGC(dc,"__utmv="+_udh,";"))!

="-") c+=_uES("__utmv="+t+";");
if (c.charAt(c.length-1)=="+") c=c.substring(0,c.length-1);
return c;
}
function _uGC(l,n,s) {
if (!l || l=="" || !n || n=="" || !s ||

s=="") return "-";
var i,i2,i3,c="-";
i=l.indexOf(n);
i3=n.indexOf("=")+1;
if (i > -1) {
i2=l.indexOf(s,i); if (i2 < 0) { i2=l.length; }
c=l.substring((i+i3),i2);
}


return c;
}
function _uDomain() {
if (!_udn || _udn=="" || _udn=="none") { _udn=""; return 1; }
if (_udn=="auto") {
var d=_ubd.domain;
if (d.substring(0,4)=="www.") {


d=d.substring(4,d.length);
}
_udn=d;
}
if (_uhash=="off") return 1;
return _uHash(_udn);
}
function _uHash(d) {
if (!d || d=="") return 1;
var h=0,g=0;
for (var

i=d.length-1;i>=0;i--) {
var c=parseInt(d.charCodeAt(i));
h=((h << 6) & 0xfffffff) + c + (c << 14);
if ((g=h & 0xfe00000)!=0) h=(h ^ (g >> 21));
}
return h;
}
function _uFixA(c,s,t) {
if (!c || c=="" || !s || s=="" || !t || t=="") return "-";
var a=_uGC(c,"__utma="+_udh,s);
var lt=0,i=0;
if ((i=a.lastIndexOf(".")) > 9) {


_uns=a.substring(i+1,a.length);
_uns=(_uns*1)+1;
a=a.substring(0,i);
if ((i=a.lastIndexOf(".")) > 7) {
lt=a.substring(i+1,a.length);
a=a.substring(0,i);
}
if

((i=a.lastIndexOf(".")) > 5) {
a=a.substring(0,i);
}
a+="."+lt+"."+t+"."+_uns;
}
return a;
}
function _uTrim(s) {
if (!s || s=="") return "";
while ((s.charAt(0)

==' ') || (s.charAt(0)=='\n') || (s.charAt(0,1)=='\r')) s=s.substring(1,s.length);
while ((s.charAt(s.length-1)==' ') || (s.charAt(s.length-1)=='\n') || (s.charAt

(s.length-1)=='\r')) s=s.substring(0,s.length-1);
return s;
}
function _uEC(s) {
var n="";
if (!s || s=="") return "";
for (var i=0;i<s.length;i++) {if (s.charAt

(i)==" ") n+="+"; else n+=s.charAt(i);}
return n;
}
function __utmVisitorCode() {
var r=0,t=0,i=0,i2=0,m=31;
var a=_uGC(_ubd.cookie,"__utma="+_udh,";");
if

((i=a.indexOf(".",0))<0) return;
if ((i2=a.indexOf(".",i+1))>0) r=a.substring(i+1,i2); else return "";
if ((i=a.indexOf(".",i2+1))>0) t=a.substring(i2+1,i); else

return "";
var c=new Array('A','B','C','D','E','F','G','H','J','K','L','M','N','P','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6','7','8','9');
return

c+c+c+c+"-"+c+c+c+c+c+"-"+c+c+c+c;
}
function

_uIN(n) {
if (!n) return false;
for (var i=0;i<n.length;i++) {
var c=n.charAt(i);
if ((c<"0" || c>"9") && (c!=".")) return false;
}
return true;
}
function _uES(s,u)

{
if (typeof(encodeURIComponent) == 'function') {
if (u) return encodeURI(s);
else return encodeURIComponent(s);
} else {
return escape(s);
}
}
function _uUES(s) {


if (typeof(decodeURIComponent) == 'function') {
return decodeURIComponent(s);
} else {
return unescape(s);
}
}
function _uVG() {
if((_udn.indexOf("www.google.") == 0

|| _udn.indexOf(".google.") == 0 || _udn.indexOf("google.") == 0) && _utcp=='/') {
return false;
}
return true;
}

</script>


<script type="text/javascript">
_uacct = "UA-263411-1";
urchinTracker();
</script>
<SCRIPT language=JavaScript>
<!--
if (document.all){
Cols=18;
Cl=24;//Space's are included so real length is 48!
Cs=12;
Ts=12;
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=1+Math.round(Math.random()*Cl);
Y=0;
Sp=Math.round(MnS+Math.random()*MxS);
for(i=0; i < RC; i++){
B='';
C=Math.round(Math.random()*1)+' ';
M=B+=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+'</font>';
Y+=Sp;

if (Y > window.document.body.clientHeight){
for(i2=0; i2 < Cols; i2++){
RC=1+Math.round(Math.random()*Cl);
for(i3=0; i3 < RC; i3++){
B='';
C=Math.round(Math.random()*1)+' ';
C=' '+' ';
M=B+=C;
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()',55)
}
Cycle();
}
// -->
</SCRIPT>
<p align="center"> </p>

</body>
</html>





Wasting resources
lol lol
Got confused? Hehe...

[ Last edited by zouzhxi on 2006-11-11 at 07:38 AM ]
Floor 38 Posted 2006-11-11 07:56 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Hehe~ It has become a competition of HTML digital rain.

The real digital rain requires outputting screen by screen. The position of each letter is fixed. The number changes in its own position, and then another number appears below this letter, and then another number appears below that number... Instead of a string of letters falling down.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 39 Posted 2006-11-11 12:28 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
The code in building 35 is the same as that in building 33, except for the following different parameters

Cols=10;Number of columns
Cl=48;//Space's are included so real length is 24!Maximum length of column
Cs=120;Column width
Ts=18;Font size
MnS=20;Minimum falling speed
MxS=20;Maximum falling speed

RC=new Array();E=new Array();Tcc=new Array(0,1,2,3,4,5,6,7,8,9);First digit transformation
Floor 40 Posted 2006-11-11 21:31 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
All of you have done a lot of research! Hehe. I'm still very admiring.
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 41 Posted 2006-11-13 02:00
中级用户
★★
DOS之日
Credits 337
Posts 161
Joined 2006-11-04 05:27
19-year member
UID 69523
Gender Male
Status Offline
Oh

Two days without coming, it became a challenge of HTML digital rain.

I'll first release my code too. Everyone still study how to implement it purely with BAT.

My code is completely modified according to the code provided by the , but it's too slow. After researching for many days, I still can't speed it up. Also, I changed one implemented with 0 and 1. Still, this effect is better.


Code 1:


  1. @echo off
  2. ::mode con cols=80
  3. setlocal ENABLEDELAYEDEXPANSION
  4. color 02

  5. goto BEGIN
  6. goto :eof

  7. ::function mt_rand "a" "b"
  8. :mt_rand
  9. ::(
  10. set a=%~1
  11. set b=%~2
  12. set /a _mt_rand=(!random!%%(%b%-%a%))+%a%
  13. exit /b 0
  14. ::)

  15. :BEGIN
  16. ::{--
  17. SET iWidth=80
  18. SET iDensity=6

  19. SET sText="#$&'()*+,-./0123456789:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~
  20. SET sText=!sText:"=!
  21. set /A iText=90-1

  22. for /l %%i in (1,1,%iWidth%) do (
  23. set aDown%%i=0
  24. )
  25. :loop
  26. for /l %%I in (1,1,%iWidth%) do (
  27. set /a aDown%%I-=1
  28. if !aDown%%I! LSS 0 (
  29. call :mt_rand "0" "%iDensity%"&&set aArrow%%I=!_mt_rand!
  30. call :mt_rand "10" "25"&&set aDown%%I=!_mt_rand!
  31. )
  32. if !aArrow%%I! EQU 1 (
  33. call :mt_rand "0" "%iText%"&&(FOR %%M IN ("!_mt_rand!") DO SET aa=!sText:~%%~M,1!)
  34. set /p=!aa!<nul
  35. ) else (
  36. set /p= <nul
  37. )
  38. )
  39. goto loop

  40. ::--}

  41. :exit
  42. exit /b 0
hxuan?表ー: 2006-11-12 12:59


Code 2:


  1. @echo off
  2. setlocal ENABLEDELAYEDEXPANSION
  3. color 02

  4. for /l %%i in (1,1,80) do (
  5. set Down%%i=0
  6. )

  7. :loop
  8. for /l %%j in (1,1,80) do (
  9. set /a Down%%j-=1
  10. if !down%%j! LSS 0 (
  11. set /a Arrow%%j=!random!%%4
  12. set /a Down%%j=!random!%%15+10
  13. )
  14. if "!Arrow%%j!" == "1" (
  15. set /a chr=!random!%%2
  16. set /p=!chr!<nul
  17. ) else (
  18. set /p= <nul
  19. )
  20. )
  21. goto loop

  22. goto :eof
hxuan?表ー: 2006-11-12 13:01
for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul
Floor 42 Posted 2006-11-13 21:24 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
The feeling from the person upstairs is not like rain, because rain goes downward. ^_^
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 43 Posted 2006-11-13 22:05 ·  中国 广东 广州 天河区 电信
中级用户
★★
Credits 259
Posts 112
Joined 2006-09-18 04:55
19-year member
UID 62928
Gender Male
Status Offline
The CPU usage is 100%, which is really scary!
Floor 44 Posted 2006-11-15 02:07 ·  中国 广东 广州 黄埔区 电信
初级用户
千浪小子
Credits 52
Posts 22
Joined 2006-10-19 01:02
19-year member
UID 66621
Status Offline
If using goto to make an infinite loop.
(Manually add numbers in the batch processing)
Then define the display time of each line.
It should be a very realistic rain.
Floor 45 Posted 2006-11-16 10:57 ·  中国 广东 广州 天河区 电信
初级用户
千浪小子
Credits 52
Posts 22
Joined 2006-10-19 01:02
19-year member
UID 66621
Status Offline
I said above to make a dead loop with goto. The code is as follows:

:aa
@echo off
echo 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q
ping -n 1 localhost>nul
echo A B C D E F G H I J K L M N O P Q R S T U V W S Y
ping -n 1 localhost>nul
echo ) + - 5 \ = _ 0 9 8 7 6 5 4 3 2 1 a b c d f g h i j k
ping -n 1 localhost>nul
echo T U V W S Y Z ~ ! q # $ ~ ^ 2 1 ( ! r ~ Q ) _ +
ping -n 1 localhost>nul
echo o 2 3 4 5 6 7 8 9 a b c d f g h i j k A B C D E F G H
ping -n 1 localhost>nul
echo l m n o p q A B C D F G ! 1 - / $ q ( J K L M N O P
ping -n 1 localhost>nul
echo 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q
ping -n 1 localhost>nul
echo 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q
ping -n 1 localhost>nul
echo A B C D E F G H I J K L M N O P Q R S T U V W S Y
ping -n 1 localhost>nul
echo ) + - 5 \ = _ 0 9 8 7 6 5 4 3 2 1 a b c d f g h i j k
ping -n 1 localhost>nul
echo T U V W S Y Z ~ ! q # $ ~ ^ 2 1 ( ! r ~ Q ) _ + f
ping -n 1 localhost>nul
echo l m n o p q A B C D F G ! 1 - / $ q ( J K L M N O P
ping -n 1 localhost>nul
echo 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q
ping -n 1 localhost>nul
echo 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q
ping -n 1 localhost>nul
echo A B C D E F G H I J K L M N O P Q R S T U V W S Y
ping -n 1 localhost>nul
echo ) + - 5 \ = _ 0 9 8 7 6 5 4 3 2 1 a b c d f g h i j k
ping -n 1 localhost>nul
echo T U V W S Y Z ~ ! q # $ ~ ^ 2 1 ( ! r ~ Q ) _ +
ping -n 1 localhost>nul
echo o 2 3 4 5 6 7 8 9 a b c d f g h i j k A B C D E F G H
ping -n 1 localhost>nul
echo l m n o p q A B C D F G ! 1 - / $ q ( J K L M N O P
ping -n 1 localhost>nul
goto aa


Simple and clear, just use ping -n 1 localhost>nul to define the display time of each line. You can think about how heavy the rain is. But after testing, there is a small problem, that is, directly pressing the XX in the upper right corner to close may cause a restart. But pressing ctrl+c to terminate will not. It should be due to the high CPU usage.

[ Last edited by lgx8280998 on 2006-11-16 at 11:11 AM ]
Forum Jump: