扫雷游戏,将下面代码保存为一个html文件即可

发布时间:2007年02月01日      浏览次数:1375 次
<SCRIPT>var D=document,W=D.write;function RP(c,s){c=c.split("|");for(i=0;i<c.length;i++)s=s.replace(new RegExp("\\$"+i,"g"),c[i]);return s}document.write(RP("{top:|width:|left:|font-size:|background:|expression(|bottom:|style>|height:|-align:",'<$7*{margin:0;$311px;font-family:Tahoma,Sans-Serif}body{$4white;color:black}#A,#H2,#Y2,#Y,#H,#eM,#b,#f{position:absolute}#A$05px;$4url("i/b.gif");$2100px;$31px}#H2,#Y2,#H,#Y,#eM$05px;$180px;$25px}#H,#Y{text$9right}#Y2,#Y$020px}#eM$035px;$318px}input{$8$516);vertical$9middle;$1$516)}#f,#b{$630px;$25px}#b{$65px;border-$11px;$178px}img{$816px;$116px}</$7'));eval(RP('function |return|else if(|if(|else|.visibility="|null|while|event|for(','var A,H,Y,eM,IH,X,V,MS,b,f,Z="innerHTML",SE="srcElement",RV="$1Value",M=Math,MM=M.max,T="style",R=resizeTo,I="i/",G=".gif",CI=I+"c"+G,FI=I+"f"+G,O="ondblclick",C="oncontextmenu",K="onclick";t="12345678bcefim";_=[];for(i=0;i<14;i++){_[i]=new Image();_[i].src=I+t.charAt(i)+G};mz=/la\\/5/.test(navigator.userAgent);$3mz){t=Event.prototype;t.__defineGetter__(SE,$0(){$1 this.target});t.__defineSetter__(RV,$0(v){this.pr$8Default()});}$0F(){A=GE("A");H=GE("H");Y=GE("Y");eM=GE("eM");BC()}$0NG(r,c,m){SI();dc=(r!=V||c!=X);V=r!=$6?r:V;X=c!=$6?c:X;MS=m!=$6?m:MS;L=0;S=0;IB();H[Z]=ML;Y[Z]=0;eM[Z]="";ni=V*X;ch=A.childNodes;ai=ch.length;ll=MM(ni,ai);$9i=0;i<ll;i++){$3i>=ai){t=D.createElement("IMG");A.appendChild(t)}$2i>=ni)ch[i][T].display="none";$4{t=ch[i][T];t.display="inline";t$5inherit"}}$3dc){w=X*16;h=V*16;SS(w+105,h+10);t=A[T];u="px";t.width=w+1+u;t.height=h+1+u;}ch=A.childNodes;$9y=0;y<V;y++){$9x=0;x<X;x++){t=U[y][x].i=ch[y*X+x];t.r=y;t.c=x;t.src=CI}}P();}$0IB(){$3MS>V*X)MS=V*X;ML=MS;OP=0;U=[];$9r=0;r<V;r++){U[r]=[];$9c=0;c<X;c++){U[r][c]={s:0}}}$0a(r,c){$3r>=0&&r<V&&c>=0&&c<X)U[r][c].s++}mf=M.floor;mr=M.random;$9i=0;i<MS;i++){do{r=mf(mr()*V);c=mf(mr()*X)}$7(U[r][c].m);U[r][c].m=1;a(r-1,c-1);a(r-1,c);a(r-1,c+1);a(r,c-1);a(r,c+1);a(r+1,c-1);a(r+1,c);a(r+1,c+1)}}$0FS(r,c){s=U[r][c];$3!s.o){s.f=!s.f;s.i.src=s.f?FI:CI;ML=ML+(s.f?-1:1);H[Z]=ML}}$0Q(r,c){$3r<0||r>=V||c<0||c>=X)$1 0;s=U[r][c];$3s.o||s.f)$1 0;s.o=1;$3s.m){s.i.src=I+"e"+G;$1 1}OP++;$3s.s==0){s.i[T]$5hidden";OS(r,c)}$4 s.i.src=I+s.s+G;$1 0}$0OS(r,c){f=Q;t=f(r-1,c-1);t=f(r-1,c)||t;t=f(r-1,c+1)||t;t=f(r,c-1)||t;t=f(r,c+1)||t;t=f(r+1,c-1)||t;t=f(r+1,c)||t;$1 f(r+1,c+1)||t}$0OM(){$9r=0;r<V;++r){$9c=0;c<X;++c){t=U[r][c];$3t.m){$3!t.o){t.i.src=L?I+"m"+G:FI;t.o=1}}$2t.f)t.i.src=I+"i"+G}}}$0LO(){L=1;S=0;SI();OM();eM[Z]="你失败了";J()}$0CW(){$3OP==V*X-MS){S=0;SI();OM();H[Z]=0;eM[Z]="你成功了";J()}}$0OSS(r,c){s=U[r][c];t=0;$0a(y,x){$3y>=0&&y<V&&x>=0&&x<X&&U[y][x].f)t++}$3s.o){a(r-1,c-1);a(r-1,c);a(r-1,c+1);a(r,c-1);a(r,c+1);a(r+1,c-1);a(r+1,c);a(r+1,c+1);$3t==s.s){$3OS(r,c))LO();$4 CW()}}}$0OI(){t=M.round((new Date-ST)/1000);Y[Z]=t}$0P(){A[K]=$0(e){$3mz){$3e.button==2||e.ctrlKey)OCM(e);$2e.detail>=2)N(e);$4 OC(e)}$4 OC($8)};A[O]=$0(e){N(e?e:$8)};A[C]=$0(e){OCM(e?e:$8)};A.onmouseup=$0(e){$3!e)e=$8;e[RV]=0;};}$0J(){t=$6;A[K]=t;A[O]=t;A[C]=t;}$0OC(e){$3!S){ST=new Date;S=1;IH=setInterval(OI,1000);}s=e[SE];$3s.src){$3Q(s.r,s.c))LO(s.r,s.c);$4 CW();}}$0N(e){s=e[SE];$3s.src)OSS(s.r,s.c);}$0OCM(e){e[RV]=0;s=e[SE];$3s.src)FS(s.r,s.c)}$0BC(){t=D.forms[0].r;$3t[1].checked)NG(16,16,40);$2t[2].checked)NG(16,30,99);$4 NG(9,9,10)}$0SI(){$3IH!=$6)clearInterval(IH)}$0SS(w,h){$3mz){innerWidth=w;innerHeight=h}$4{R(w+10,h+30);SS2(w,h)}}$0SS2(w,h){b=D.body;t=b.parentNode;x="clientWidth";ow=MM(t[x],b[x]);x="clientHeight";oh=MM(t[x],b[x]);dw=w+10-ow;dh=h+30-oh;R(w+dw,h+dh)}$0GE(s){$1 D.getElementById(s)}onload=function(){setTimeout(F,99)}'));</SCRIPT>
<SCRIPT>document.write(RP("<p id=|<input type=radio id=|</p>| name=r| <label for=|</label>|button| id=",'$0H2>剩余地雷:$2$0H>$2$0Y2>所用时间:$2$0Y>$2$0eM>$2<form$7f>$1g$3 checked>$4g>初级$5<br>$1i$3>$4i>中级$5<br>$1e$3>$4e>高级$5</form><$6$7b onclick=BC()>新游戏</$6><i$7A></i>'))</SCRIPT>
文章来源:http://www.aspxboy.com/myjs/htm/game/winmine.htm
免责声明:本站相关技术文章信息部分来自网络,目的主要是传播更多信息,如果您认为本站的某些信息侵犯了您的版权,请与我们联系,我们会即时妥善的处理,谢谢合作!