资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
诘屈聱牙之javascript中国象棋
IE6.0 Only
非XHTML标准,可能IE 7.0也看不了....哈哈
蓝方先走
<style> * { font:24px arial, "宋体"; font-weight:bold; color:white; cursor:default; } table { table-layout:fixed; border-collapse:collapse; position:absolute; left:50px; top:50px; } td { width:80px; height:80px; border:1px solid silver; color:black; text-align:center; line-height:80px; } img.i1 { width:78px; height:78px; } img.i2 { width:49px; height:49px; } img.i3 { width:25px; height:49px; } .chessman_red { background:url(/attachments/2007/3/29/20070329_2187cc5e9def581951f2v22EfdUSXQ7J.jpg); width:50px; height:50px; line-height:50px; text-align:center; } .chessman_blue { background:url(/attachments/2007/3/29/20070329_5caa80c54f776b93bd582BwraVRWXf43.jpg); width:50px; height:50px; line-height:50px; text-align:center; } </style> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%3E%20%0D%0Avar%20tb%3B%20%0D%0Avar%20cch%3Dnew%20Array()%3B%20%0D%0Avar%20his%3Dnew%20Array()%3B%20%0D%0Avar%20players%3D%5B%22red%22%2C%22blue%22%5D%3B%20%0D%0Avar%20curPlayer%3D1%3B%20%0D%0A%0D%0Awindow.onload%3Dfunction()%7B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20document.onselectstart%3Dfunction()%7B%20return(false)%3B%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20document.onclick%3Ddo_click%3B%20%0D%0A%20%20%20%20document.oncontextmenu%3Ddo_context%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tb%3Ddocument.createElement(%22table%22)%3B%20%0D%0A%20%20%20%20document.body.appendChild(tb)%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20for(var%20i%3D0%3Bi%3C9%3Bi%2B%2B)%7B%20%0D%0A%20%20%20%20%20%20%20%20r%3Dtb.insertRow()%3B%20%0D%0A%20%20%20%20%20%20%20%20if(i%3D%3D4)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20c%3Dr.insertCell()%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20c.colSpan%3D8%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20c.style.width%3D%22720px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20c.style.fontSize%3D%2242px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20c.style.fontFamily%3D%22%E9%9A%B6%E4%B9%A6%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20c.innerText%3D%22%E6%A5%9A%20%20%20%E6%B2%B3%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%E6%B1%89%20%20%20%E7%95%8C%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20continue%3B%20%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20for(var%20j%3D0%3Bj%3C8%3Bj%2B%2B)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20c%3Dr.insertCell()%3B%20%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_3f2ffb6cdf0bda991381AOcfwLJOmIcK.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i1%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22291%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%2251%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_fec757c6d7874546161f8TGsDqEABNts.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i1%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22371%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%2251%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_fec757c6d7874546161f8TGsDqEABNts.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i1%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22291%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22131%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_3f2ffb6cdf0bda991381AOcfwLJOmIcK.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i1%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22371%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22131%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_3f2ffb6cdf0bda991381AOcfwLJOmIcK.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i1%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22291%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22611%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_fec757c6d7874546161f8TGsDqEABNts.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i1%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22371%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22611%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_fec757c6d7874546161f8TGsDqEABNts.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i1%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22291%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22691%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_3f2ffb6cdf0bda991381AOcfwLJOmIcK.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i1%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22371%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22691%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22106%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22186%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22586%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22186%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22106%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22586%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22586%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22586%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22186%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22266%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22346%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22266%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22506%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22266%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22186%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22506%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22346%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22506%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0bf3ba9aa9f7af079806V71jCPmo4YgX.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i2%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22506%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22506%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0b05dbadff2eb90fdc79Ftu6O43rTus6.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i3%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%2250%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22266%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_0b05dbadff2eb90fdc79Ftu6O43rTus6.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i3%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%2250%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22506%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_f751e991e2d883fd916262Mzpct8ylkt.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i3%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22665%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22266%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20tmp%3Dnew%20Image()%3B%20%0D%0A%20%20%20%20tmp.src%3D%22%2Fattachments%2F2007%2F3%2F29%2F20070329_f751e991e2d883fd916262Mzpct8ylkt.jpg%22%3B%20%0D%0A%20%20%20%20tmp.className%3D%22i3%22%3B%20%0D%0A%20%20%20%20document.body.appendChild(tmp)%3B%20%0D%0A%20%20%20%20with(tmp.style)%7B%20%0D%0A%20%20%20%20%20%20%20%20position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20left%3D%22665%22%3B%20%0D%0A%20%20%20%20%20%20%20%20top%3D%22506%22%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20createChessman(%22%E8%BB%8A%22%2C0%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E8%BB%8A%22%2C8%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E9%A6%AC%22%2C1%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E9%A6%AC%22%2C7%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E7%82%AE%22%2C1%2C2%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E7%82%AE%22%2C7%2C2%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E7%9B%B8%22%2C2%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E7%9B%B8%22%2C6%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E4%BB%95%22%2C3%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E4%BB%95%22%2C5%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%B8%85%22%2C4%2C0%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%85%B5%22%2C0%2C3%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%85%B5%22%2C2%2C3%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%85%B5%22%2C4%2C3%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%85%B5%22%2C6%2C3%2C%22red%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%85%B5%22%2C8%2C3%2C%22red%22)%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20createChessman(%22%E8%BB%8A%22%2C0%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E8%BB%8A%22%2C8%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E9%A6%AC%22%2C1%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E9%A6%AC%22%2C7%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E7%82%AE%22%2C1%2C7%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E7%82%AE%22%2C7%2C7%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E8%B1%A1%22%2C2%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E8%B1%A1%22%2C6%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%A3%AB%22%2C3%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%A3%AB%22%2C5%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%B0%86%22%2C4%2C9%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%8D%92%22%2C0%2C6%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%8D%92%22%2C2%2C6%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%8D%92%22%2C4%2C6%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%8D%92%22%2C6%2C6%2C%22blue%22)%3B%20%0D%0A%20%20%20%20createChessman(%22%E5%8D%92%22%2C8%2C6%2C%22blue%22)%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20createChessman(text%2Cx%2Cy%2Cplayer)%7B%20%0D%0A%20%20%20%20var%20nd%3Ddocument.createElement(%22div%22)%3B%20%0D%0A%20%20%20%20nd.className%3D%22chessman_%22%2Bplayer%3B%20%0D%0A%20%20%20%20nd.innerText%3Dtext%3B%20%0D%0A%20%20%20%20nd.player%3Dplayer%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20nd.moveTo%3Dchessman_moveTo%3B%20%0D%0A%20%20%20%20nd.destory%3Dchessman_destory%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20document.body.appendChild(nd)%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20nd.moveTo(x%2Cy%2Ctrue)%3B%20%0D%0A%20%20%20%20%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20chessman_moveTo(x%2Cy%2Cforce)%7B%20%0D%0A%20%20%20%20var%20mi%2C%20ma%2C%20mn%3B%20%0D%0A%20%20%20%20if(!force)%7B%20%0D%0A%20%20%20%20%20%20%20%20switch(this.innerText)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E8%BB%8A%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(this.x!%3Dx%26%26this.y!%3Dy)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(this.x%3D%3Dx)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mi%3Dy%3Ethis.y%3Fthis.y%3Ay%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ma%3Dy%3Ethis.y%3Fy%3Athis.y%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for(var%20i%3Dmi%2B1%3Bi%3Cma%3Bi%2B%2B)if(cch%5Bi*9%2Bthis.x%5D)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mi%3Dx%3Ethis.x%3Fthis.x%3Ax%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ma%3Dx%3Ethis.x%3Fx%3Athis.x%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for(var%20i%3Dmi%2B1%3Bi%3Cma%3Bi%2B%2B)if(cch%5Bthis.y*9%2Bi%5D)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E9%A6%AC%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(!((Math.abs(this.x-x)%3D%3D2%26%26Math.abs(this.y-y)%3D%3D1)%7C%7C(Math.abs(this.x-x)%3D%3D1%26%26Math.abs(this.y-y)%3D%3D2)))return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(Math.abs(this.x-x)%3D%3D2%26%26cch%5Bthis.y*9%2B(this.x%2Bx)%2F2%5D)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(Math.abs(this.y-y)%3D%3D2%26%26cch%5B(this.y%2By)%2F2*9%2Bthis.x%5D)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E5%A3%AB%22%3A%20case%20%22%E4%BB%95%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(x%3C3%7C%7Cx%3E5%7C%7C(!(y%3C3%7C%7Cy%3E6))%7C%7CMath.abs(this.x-x)!%3D1%7C%7CMath.abs(this.y-y)!%3D1)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E7%9B%B8%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(Math.abs(this.x-x)!%3D2%7C%7CMath.abs(this.y-y)!%3D2%7C%7Cy%3E4)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(cch%5B(this.y%2By)%2F2*9%2B(this.x%2Bx)%2F2%5D)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E8%B1%A1%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(Math.abs(this.x-x)!%3D2%7C%7CMath.abs(this.y-y)!%3D2%7C%7Cy%3C5)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(cch%5B(this.y%2By)%2F2*9%2B(this.x%2Bx)%2F2%5D)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E5%B8%85%22%3A%20case%20%22%E5%B0%86%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(x%3C3%7C%7Cx%3E5%7C%7C(!(y%3C3%7C%7Cy%3E6))%7C%7C(!((Math.abs(this.x-x)%3D%3D1%26%26Math.abs(this.y-y)%3D%3D0)%7C%7C(Math.abs(this.x-x)%3D%3D0%26%26Math.abs(this.y-y)%3D%3D1))))return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E5%85%B5%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2Fif(curPlayer%252%3D%3D0)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(y%3C5)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(y-this.y!%3D1)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(!((y-this.y%3D%3D1%26%26x%3D%3Dthis.x)%7C%7C(y%3D%3Dthis.y%26%26Math.abs(this.x-x)%3D%3D1)))return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(y%3E4)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(y-this.y!%3D-1)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(!((y-this.y%3D%3D-1%26%26x%3D%3Dthis.x)%7C%7C(y%3D%3Dthis.y%26%26Math.abs(this.x-x)%3D%3D1)))return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E5%8D%92%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2Fif(curPlayer%252%3D%3D0)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(y%3E4)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(y-this.y!%3D-1)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(!((y-this.y%3D%3D-1%26%26x%3D%3Dthis.x)%7C%7C(y%3D%3Dthis.y%26%26Math.abs(this.x-x)%3D%3D1)))return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(y%3C5)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(y-this.y!%3D1)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(!((y-this.y%3D%3D1%26%26x%3D%3Dthis.x)%7C%7C(y%3D%3Dthis.y%26%26Math.abs(this.x-x)%3D%3D1)))return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%E7%82%AE%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(this.x!%3Dx%26%26this.y!%3Dy)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(cch%5By*9%2Bx%5D%26%26cch%5By*9%2Bx%5D.player!%3Dthis.player)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mn%3D0%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(this.x%3D%3Dx)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mi%3Dy%3Ethis.y%3Fthis.y%3Ay%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ma%3Dy%3Ethis.y%3Fy%3Athis.y%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for(var%20i%3Dmi%2B1%3Bi%3Cma%3Bi%2B%2B)if(cch%5Bi*9%2Bthis.x%5D)mn%2B%2B%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(mn!%3D1)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mi%3Dx%3Ethis.x%3Fthis.x%3Ax%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ma%3Dx%3Ethis.x%3Fx%3Athis.x%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for(var%20i%3Dmi%2B1%3Bi%3Cma%3Bi%2B%2B)if(cch%5Bthis.y*9%2Bi%5D)mn%2B%2B%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(mn!%3D1)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(this.x%3D%3Dx)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mi%3Dy%3Ethis.y%3Fthis.y%3Ay%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ma%3Dy%3Ethis.y%3Fy%3Athis.y%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for(var%20i%3Dmi%2B1%3Bi%3Cma%3Bi%2B%2B)if(cch%5Bi*9%2Bthis.x%5D)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mi%3Dx%3Ethis.x%3Fthis.x%3Ax%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ma%3Dx%3Ethis.x%3Fx%3Athis.x%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for(var%20i%3Dmi%2B1%3Bi%3Cma%3Bi%2B%2B)if(cch%5Bthis.y*9%2Bi%5D)return(false)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20case%20%22%22%3A%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%20%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20cch%5Bthis.y*9%2Bthis.x%5D%3Dnull%3B%20%0D%0A%20%20%20%20cch%5By*9%2Bx%5D%3Dthis%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20if(!force)his.push(%22move%20%22%2Bthis.player%2B%22%20%22%2Bthis.innerText%2B%22%20%22%2Bthis.x%2B%22%2C%22%2Bthis.y%2B%22%20%22%2Bx%2B%22%2C%22%2By)%3B%20%0D%0A%20%20%20%20this.style.position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20this.style.left%3D25%2Bx*80%3B%20%0D%0A%20%20%20%20this.style.top%3D25%2By*80%3B%20%0D%0A%20%20%20%20this.x%3Dx%3B%20%0D%0A%20%20%20%20this.y%3Dy%3B%20%0D%0A%20%20%20%20return(true)%3B%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20chessman_destory()%7B%20%0D%0A%20%20%20%20var%20tmp%3B%20%0D%0A%20%20%20%20his.push(%22destory%20%22%2Bthis.player%2B%22%20%22%2Bthis.innerText%2B%22%20%22%2Bthis.x%2B%22%2C%22%2Bthis.y)%3B%20%0D%0A%20%20%20%20tmp%3Ddocument.createElement(%22div%22)%3B%20%0D%0A%20%20%20%20tmp.className%3D%22chessman_%22%2Bthis.player%3B%20%0D%0A%20%20%20%20tmp.innerText%3Dthis.innerText%3B%20%0D%0A%20%20%20%20tmp.style.float%3D%22left%22%3B%20%0D%0A%20%20%20%20eval(%22d_his_%22%2Bthis.player).appendChild(tmp)%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20this.parentNode.removeChild(this)%3B%20%0D%0A%20%20%20%20%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20exchange()%7B%20%0D%0A%20%20%20%20var%20x%2C%20y%3B%20%0D%0A%20%20%20%20var%20ccch%3Dnew%20Array()%3B%20%0D%0A%20%20%20%20for(var%20i%3D0%3Bi%3Ccch.length%3Bi%2B%2B)%7B%20%0D%0A%20%20%20%20%20%20%20%20if(!cch%5Bi%5D)continue%3B%20%0D%0A%20%20%20%20%20%20%20%20x%3Di%259%3B%20%0D%0A%20%20%20%20%20%20%20%20y%3DparseInt(i%2F9)%3B%20%0D%0A%20%20%20%20%20%20%20%20ccch%5B(9-y)*9%2Bx%5D%3Dcch%5Bi%5D%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20for(var%20i%3D0%3Bi%3Cccch.length%3Bi%2B%2B)%7B%20%0D%0A%20%20%20%20%20%20%20%20if(!ccch%5Bi%5D)continue%3B%20%0D%0A%20%20%20%20%20%20%20%20x%3Di%259%3B%20%0D%0A%20%20%20%20%20%20%20%20y%3DparseInt(i%2F9)%3B%20%0D%0A%20%20%20%20%20%20%20%20ccch%5Bi%5D.moveTo(x%2Cy%2Ctrue)%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20cch%3Dccch%3B%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20do_click()%7B%20%0D%0A%20%20%20%20var%20x%2C%20y%3B%20%0D%0A%20%20%20%20var%20o%3Devent.srcElement%3B%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20if(o.player)%7B%20%0D%0A%20%20%20%20%20%20%20%20if(document.currentChessman)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20if(document.currentChessman.player%3D%3Do.player)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman.style.border%3D%22%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman%3Do%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman.style.border%3D%221px%20solid%20%22%2Bdocument.currentChessman.player%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(!document.currentChessman.moveTo(o.x%2Co.y))return%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20o.destory()%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman.style.border%3D%22%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman%3Dnull%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2Fexchange()%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20curPlayer%2B%2B%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20if(o.player!%3Dplayers%5BcurPlayer%252%5D)return%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman%3Do%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman.style.border%3D%221px%20solid%20%22%2Bdocument.currentChessman.player%3B%20%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20if(document.currentChessman)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20if(((event.x-50)%2580%3E25%26%26(event.x-50)%2580%3C55)%7C%7C((event.y-50)%2580%3E25%26%26(event.y-50)%2580%3C55))return%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20x%3DMath.round((event.x%2Bdocument.body.scrollLeft-50)%2F80)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20y%3DMath.round((event.y%2Bdocument.body.scrollTop-50)%2F80)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20if(x%3E-1%26%26x%3C9%26%26y%3E-1%26%26y%3C10)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(!document.currentChessman.moveTo(x%2Cy))return%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman.style.border%3D%22%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.currentChessman%3Dnull%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2Fexchange()%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20curPlayer%2B%2B%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%7D%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20do_context()%7B%20%0D%0A%20%20%20%20if(document.currentChessman)%7B%20%0D%0A%20%20%20%20%20%20%20%20document.currentChessman.style.border%3D%22%22%3B%20%0D%0A%20%20%20%20%20%20%20%20document.currentChessman%3Dnull%3B%20%0D%0A%20%20%20%20%20%20%20%20return(false)%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20undo()%7B%20%0D%0A%20%20%20%20var%20o%2C%20s%2C%20t%2C%20p%2C%20x1%2C%20x2%2C%20x3%2C%20y1%2C%20y2%2C%20y3%3B%20%0D%0A%20%20%20%20if(his.length%3D%3D0)return%3B%20%0D%0A%20%20%20%20s%3Dhis.pop().split(%22%20%22)%3B%20%0D%0A%20%20%20%20if(s%5B0%5D%3D%3D%22move%22)%7B%20%0D%0A%20%20%20%20%20%20%20%20x1%3DNumber(s%5B3%5D.split(%22%2C%22)%5B0%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20y1%3DNumber(s%5B3%5D.split(%22%2C%22)%5B1%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20x2%3DNumber(s%5B4%5D.split(%22%2C%22)%5B0%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20y2%3DNumber(s%5B4%5D.split(%22%2C%22)%5B1%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20o%3Dcch%5By2*9%2Bx2%5D%3B%20%0D%0A%20%20%20%20%20%20%20%20o.moveTo(x1%2Cy1%2Ctrue)%3B%20%0D%0A%20%20%20%20%20%20%20%20curPlayer--%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%7Delse%20if(s%5B0%5D%3D%3D%22destory%22)%7B%20%0D%0A%20%20%20%20%20%20%20%20p%3Ds%5B1%5D%3B%20%0D%0A%20%20%20%20%20%20%20%20t%3Ds%5B2%5D%3B%20%0D%0A%20%20%20%20%20%20%20%20x1%3DNumber(s%5B3%5D.split(%22%2C%22)%5B0%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20y1%3DNumber(s%5B3%5D.split(%22%2C%22)%5B1%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20s%3Dhis.pop().split(%22%20%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20x2%3DNumber(s%5B3%5D.split(%22%2C%22)%5B0%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20y2%3DNumber(s%5B3%5D.split(%22%2C%22)%5B1%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20x3%3DNumber(s%5B4%5D.split(%22%2C%22)%5B0%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20y3%3DNumber(s%5B4%5D.split(%22%2C%22)%5B1%5D)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20o%3Dcch%5By3*9%2Bx3%5D%3B%20%0D%0A%20%20%20%20%20%20%20%20o.moveTo(x2%2Cy2%2Ctrue)%3B%20%0D%0A%20%20%20%20%20%20%20%20curPlayer--%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20createChessman(t%2Cx1%2Cy1%2Cp)%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%7D%20%0D%0A%0D%0A%0D%0A%3C%2Fscript%3E"> <input type="button" value="重开" onclick="window.location.reload();" style="position:absolute; left:800px;"> <input type="button" value="悔棋" onclick="undo();" style="position:absolute; left:900px;"> <div id="d_his_red" style="font-size:12px; color:#333;position:absolute; left:800px; top:450px; width:120px; height:300px; overflow:auto;"></div> <div id="d_his_blue" style="font-size:12px; color:#333;position:absolute; left:800px; top:100px; width:120px; height:300px; overflow:auto;"></div>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程