中国将棋のjsコード、ただデモして、本当におりることができませんでした。

5035 ワード

<meta http-equiv=「content-type」content=「text/」charset=gb 2312'、<>wwww.jb 51.net中国将棋私たち<title><script>var st=>var qipuid=new Aray()var qipux=new Aray()var qipuy=new Aray()var qipuc=0qipust=「27,8,5,2,3,3」qipust+="24,8,7,1,1,2","qipust+=「29,6,3,15,5,7」qipust+="18,8,3,3,7","qipust+="26,6,2,8,5,8"qipus=qipust.split(",")for(var x=0、qx=0x<qipusz.length;x+=3){qipuid[qx]=qipus[x];qipux[qx]=qipus[x+1]qipuy[qx]=qipus[x+2]qx++;;Function qizhi(yanse、qzhiname、qizhix、id){qizhix=qizhix*50;qizhiy=qizhiy*50;if(yanse==0)yanse="black"else yanse="red"st+="<div id='a"+id+"style='position:absolution;top:「+(qzhiy)+」px;left:「+(qzhix)+」px;カラー:「+yanse+」font-size:50 px'、</div>“st+=”<div id=''b'+id+''style='position:absoute;top:「+(qzhiy+10)+」px;left:「+(qzhix+10)+」px;カラー:ホワイトfont-size:30 px'"+qizhiname+"</div>""function hengxian(qizhix){qizhix=qzhix*50+25;st+="<div style='position:absolute;width:402 px;height:2 pxtop:「+qizhix+」px;left:75 px;background:black;font-size:1'</div>""function shuxian(qizhix){qizhix=qizhix*50+25;st+="<div style='position:absolute;width:2 px;height:450 px;left:「+qizhix+」px;top:75 pxbackground:black;font-size=1'</div>""function point(x,y){var x,y;st+="<div style='position:absolute;width:1 px;height:1 px;left:「+y+」px;top:「+x+」px;background:black;font-size=1'</div>""Fnction linengc(top,left){var top,left;top=50*top+20left=50*left+15;for(var y=0y<=5;y++)point(top,y+left)for(var y=0y<=5;y++)point(top+10,y+left);for(var y=0y<=5;y++)point(top,y+left+15);for(var y=0y<=5;y++)point(top+10,y+left+15);for(var x=0x<=5;x++)point(x+top-5,left+5)for(var x=0x<=5;x++)point(x+top-5,left+15)for(var x=0x<=5;x++)point(x+top+12、left+5)for(var x=0x<=5;x++)point(x+top+12,y+left+9);Function lineanger(top,left){var top,left;top=50*top+20left=50*left+15;for(var y=0y<=5;y++)point(top,y+left)for(var y=0y<=5;y++)point(top+10,y+left);for(var x=0x<=5;x++)point(x+top-5,left+5)for(var x=0x<=5;x++)point(x+top+12,left+5);Function linengl(top,left){var top,left;top=50*top+20left=50*left+15;for(var y=0y<=5;y++)point(top,y+left+15);for(var y=0y<=5;y++)point(top+10,y+left+15);for(var x=0x<=5;x++)point(x+top-5,left+15)for(var x=0x<=5;x++)point(x+top+12,y+left+9);Function duqipu(){if(qipuc)=qipuid.length){alert(今は封盤して、今度は続きます。)return qizhiv(qipuc)、qipuc、qipuc、qipuc、qipuy[qipuc])qipuc+function qizhiv(id,x 2,y 2){var id,x,y,x 2,y 2;x 2=x 2*50y 2=y 2*50luozhi=falseeval("x 1=document.getElemenntById('a"+id+').style.top")re=/px/ix 1=x 1.replace(re,");eval(y 1=document.getElemenntById('a"+id+').style.left);re=/px/iy 1=y 1.replace(re,");qizhim overeloop(id,x 1*1,y 1*1,x 2,y 2)Function Qizhim offeloop(id,x,y,x 2,y 2){var id,x,y;eval("document.getElemenntById('a"+id+').style.top='"+x+"px')eval("document.getElemenntById('b"+id+').style.top='"+(x+10)+px');eval("document.getElemenntById('a"+id+').style.left='"+y+"px')eval("document.getElementById('b"+id+').style.left='+(y+10)+px');if(x!=x 2){if(x>x 2)x-=2;if(x<x 2)x+=2;)if(y!=y 2){if(y>y2)y-=2;if(y<y 2)y+=2;)if(x!=x 2𞓜y!=y 2)setTimeout(「qizhim overeloop(」+id+「,」+x+「,」+y+「,」+x 2+「,」+y 2+「」+y 2+「」」+y 2+「」」,10);else set Timeout(duqipu、1000);function hejie(){st+='<div style='position:absolute;width:350 px;height:48 px;left:100 px;top:277 pxbackground:white;font-size=1'</div>""function start(){for(var x=1;x<=10;x++)hengxian(x);for(var x=1)x<=9;x++)shuxian(x);for(var x=0x<=100;x++)point(x+75,x+225)for(var x=0x<=100;x++)point(x+425,x+225)for(var x=0x<=100;x++)point(525-x,x+225)for(var x=0x<=100;x++)point(175-x,x+225)hejie()line hengc(3,2)line hengc(3,8)LINE hengc(8,2)LINE hengc(8,8)LINE(4,1)LINE hengc(4,3)LINE hengc(4,5)LINE hengc(4,7)LINE hengr(4,9)LINE(7,1)LINE hengc(7、3)LINE hengc(7,5)LINE hengc(7,7)LINE hengr(7,9)qizhi(0、「車」、1、1)qizhi(0、「馬」、1、2、2)qizhi(0、「象」、1、3)qizhi(0、「仕」、1、4、4)qizhi(0,"将",1,5,5);qizhi(0、「仕」、1、6、6)qizhi(0、「象」、1、7、7)qizhi(0、「馬」、1、8、8)qizhi(0、「車」、1、9、9)qizhi(0、「砲」、3、2、10)qizhi(0、「砲」、3、8、11)qizhi(0、「卒」、4、1、12)qizhi(0、「卒」、4、3、13)qizhi(0、「卒」、4、5、14)qizhi(0、「卒」、4、7、15)qizhi(0、「卒」、4、9、16)qizhi(1、「車」、10、1、17)qizhi(1、「馬」、10、2、18)qizhi(1)「相」10,3,19);qizhi(1、「士」、10、4、20)qizhi(1、「かっこいい」、10、5、21)qizhi(1、「士」、10、6、22)qizhi(1)「相」10,7,23);qizhi(1、「馬」、10、8、24)qizhi(1、「車」、10、9、25)qizhi(1、「砲」、8、2、26)qizhi(1、「砲」、8、27)qizhi(1、「兵」、7、1、28)qizhi(1、「兵」、7、3、29)qizhi(1、「兵」、7、5、30)qizhi(1、「兵」、7、7、31)qizhi(1、「兵」、7、9、32)Dcument.body.innerHTML=st;duqipu()</script>[Ctrl+A全選択注:<a href="https://www.jb51.net/article/23421.htm" title="查看具体详情" rel="noreferrer noopener nofollow">引入外部Js需再刷新一下页面才能执行</a>]