Javascript Shortcode Area
-----Version 110606-----
 hebi-2 

<body onKeyDown="K=event.keyCode-37"><style type="text/css"><!--tt{ font-family: "MS ゴシック"; }-->
</style><tt id=F><script>function R(H){while(D.all["F"+(S=Math.ceil(Math.random()*399))].innerHTML!=C);I(S,H)}
function I(T,H){D.all["F"+T].innerHTML=H}function Y(){if(K+1){P+=[-1,-20,1,20][K];X=D.all["F"+P].innerHTML;
X1=X.slice(-8,-7);if(X!=C)if(X1!="▲"){alert("GAME OVER\n\nSCORE: "+M);return}else{M++;R(U)}I(Z[++L]=P,Q);
I(Z[L-M],C);}setTimeout(Y,70-M);}D=document;K=-1;M=1;L=0;Z=[];S="";C=" ";F1="<font color=";
F2="</font>";U=F1+"\"red\">▲"+F2;Q=F1+"\"blue\">●"+F2;W=F1+"\"green\">■"+F2;for(i=0;i<400;i++)
S+=(i%20?"":"<br>")+"<span id=F"+i+">"+((i+1)%20>1&&i>19&&i<379?C:W)+"</span>";I("",S);R(Q);
P=Z[0]=S;R(U);Y()</script>


使用変数

C
color
D
F1
F2
I -------( Function )
i
id
innerHTML
K
L
M
onKeyDown
P
Q
R -------( Function )
S
type
U
W
X1
X
Y -------( Function )
Z