资源预览内容
第1页 / 共22页
第2页 / 共22页
第3页 / 共22页
第4页 / 共22页
第5页 / 共22页
第6页 / 共22页
第7页 / 共22页
第8页 / 共22页
第9页 / 共22页
第10页 / 共22页
亲,该文档总共22页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
使用表格eacript anuag=JaScrita fangxan;fangxian;varsk=nAry();sk=5,5;sk=,4;s=5,3;va ln=3;v zhanshichuneiba;var shiwu=1,15;vr sudu=250;va mvedong=true;var shifoucongziue;fucon kydown()f(evnkeyCoe=38)f(fanxing!=2)angian;if(fngxang=2)fangxiang;f(even.kCde=40)f(fangxang!=)angxang;if(agxing=)fangxang;f(eventkCd=3)if(fngiang!=4)fangxiang=3;i(angxiang=4)fagxia=;if(even.eyCode=39)if(angxiang!=3)fgxiang4;(fangxng=3)fagxing=3;unton kashi()i(shifouconghi)shfoconzhi=lse;document.getElemtd(sk0).syl.bacgrounColo = red;doument.getElmetyI(s1).syle.bacgrundColo red;dcment.getElementyId(sk).stylebackroundCor =red;documet.getElmntById(shiwu)tlebackgoundClor =be;me();eslert(你要先重置);cti cngzi()shifouchogzhitre;shiwu=15,15;hu2;angxing=4;k=5,5;sk,4;sk2=5,3;lon3;var mdoumnt.gleentByTagNam(td);for(var 0;n40;n+)n.ylebakgroundolor = eow;dng=true;fnction don()zhshihunei=klng-1;for(va log-1;m;m-)skm=skm-1v i=sk0split(,);f(fanxing=1)0-;ki0+,+i1if(fagxig=2)i0+;s0=i0+,+i1if(fngxiag=)i-;k=i0+,1if(ngxiang=)i1+;sk0=i0+,i1functiozhehasengwu()vr ;ar y;x=Math.ound(Mth.randm()*19);y=Math.round(Mth.rado()*9);six+,+y;chnshiw();fncton chasengiw()for(r=0;mong;m+)f(hiwu=skm)zhenchnshengshwu();ocumnt.getlemntById(shiwu).style.backgodColr =ble;fucion chishiw()i(shiwu=sk0)ong+;sklg-1zhnschunwea;dcen.getElementByI(sklng-1)stye.ackgroColor red;chanshgshiwu();uncon jishuah()ar=0.spli(,);f(i019|i19)alert(你死求);movegfalse;(lng=6)shudu=200;if(lon)shudu=10;if(lng=2)shud=100;f(lng=15)hudu=8;f(lon=1)hdu=5;if(long25)lert(你真N 你赢了);chogzh();moen=fale;funtio moe()dong();ishujis();or(vr m=0;ong;m+)doumet.getEemenById(sk).style.backgrundCr = ed;documet.geementById(zhanshichueia).seacgrdClr = elo;chishiu();i(mve)stTimeou(move(),shudu);/sript / /td td id=0,2 golor=ylowwidth=2 height=2 /td t id=0,5 bgolo=yellow with= heht=20 td d=0,6 bgol=elw widt=2 height=20 /t tdd=0, clr=yellw with20hegh=20 d d=0,12 bgcolr=yelow idth=2 ight20 td id0,13 bgoloyellow width=20 heigh=0 /td td id=0,5bclr=yllowwidth=2 hight=2 tdi=0, bgclor=yloidth=2 higt=2 /td td id=0,18 bgcolo=yllowdth=20ht20 / td id=1,0 golyellow wdth=20 heht=2 id=1,3bgcoor=ew dth=20 eih20 tdd=1,4 bgcolor=yell wdt=20 hh= t =1,5 gcloryelow with=igh=20 tdd=1,6bgcoloyelow h=20 eiht=20td /td td td id=1,9 bgol=yeowwidth=0 hih
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号