特效介绍
html5+js打造的中国象棋,木质的背景和木质的棋盘,很有中国风,还可以换肤。玩家可选择新手水平、中级水平和大师水平,只有中级水平通过,才可以使用大师水平。兼容的浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗。不支持IE8及以下浏览器。
使用方法
1、在head区域引入5imoban.net.css。
2、在body区域引入下面的代码:
01 | < div class = "box" id = "box" > |
02 | < div class = "chess_left" > |
03 | < canvas id = "chess" >对不起,您的浏览器不支持HTML5,请升级浏览器至IE9、firefox或者谷歌浏览器!</ canvas > |
04 | < audio src = "audio/click.wav" id = "clickAudio" preload = "auto" ></ audio > |
06 | < audio src = "audio/select.wav" id = "selectAudio" preload = "auto" ></ audio > |
08 | < div class = "bn_box" id = "bnBox" > |
09 | < input type = "button" name = "offensivePlay" id = "tyroPlay" value = "新手水平" /> |
10 | < input type = "button" name = "offensivePlay" id = "superPlay" value = "中级水平" /> |
11 | < input type = "button" name = "button" id = "" value = "大师水平" disabled /> |
16 | < input type = "button" name = "regret" id = "regretBn" value = "悔棋" /> |
17 | < input type = "button" name = "billBn" id = "billBn" value = "棋谱" class = "bn_box" /> |
18 | < input type = "button" name = "stypeBn" id = "stypeBn" value = "换肤" /> |
22 | < div class = "chess_right" id = "chessRight" > |
23 | < select name = "billList" id = "billList" > |
25 | < ol id = "billBox" class = "bill_box" > |
28 | < div id = "moveInfo" class = "move_info" > </ div > |
30 | < script src = "js/common.js" ></ script > |
31 | < script src = "js/play.js" ></ script > |
32 | < script src = "js/AI.js" ></ script > |
33 | < script src = "js/bill.js" ></ script > |
34 | < script src = "js/gambit.js" ></ script > |
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!