js桌球小游戏在线试玩地址:http://keleyi.com/game/13/
游戏截图:
完整代码,保存到html文件可以试玩:
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title>js实现web页面台球游戏特效 - 柯乐义</title> 6 <link href="http://keleyi.com/game/13/css/keleyi.css" rel="stylesheet" type="text/css"> 7 <script type="text/javascript" src="http://keleyi.com/game/13/js/keleyi.js"></script> 8 </head> 9 <body> 10 <div id="table"> 11 <div id="scoreBoard"></div> 12 </div> 13 <div class="bot"> 14 <div id="tips"></div> 15 <div class = "ctrl"> 16 <div id="force"></div> 17 <div id="shootPos"> 18 <div id="dot"></div> 19 </div> 20 </div> 21 </div> 22 23 <div style="width:780px;margin:0px auto;clear:both;">来源:<a href="http://keleyi.com/" target="_blank">柯乐义</a> <a href="http://keleyi.com/game/">更多游戏</a> <a href="http://keleyi.com/a/bjad/mroxdkos.htm" target="_blank">原文</a> <font color="#FFFFFF">适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. </font></div> 24 </body> 25 </html>
转载自:http://keleyi.com/a/bjad/mroxdkos.htm
web前端:http://www.cnblogs.com/jihua/p/webfront.html