无聊时写的游戏
*{padding:0;margin:0}
body{ background:#FFFFFF}
img{display:inline;float:left;position:absolute;}
#chat{display:inline;float:left;position:absolute;font-weight:bold;font-size:16px;}
h1{float:left}
span{float:left;font-size:32px;font-weight:bold;margin:0 20px}
#score{color:red}
#time{color:green}
#restart{clear:both;color:blue;text-align:center;font-size:32px;font-weight:bold;margin:0 20px;display:none; cursor:pointer}
啊! 这人好囧,快抓住他!得分:0剩余:60秒重新开始
剩骑士,来抓我啊?
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
推荐阅读
正则表达式判断是否存在中文和全角字符和判断包含中文字符串长度
判断是否存在中文和全角字符 str.match(/[^x00-xff]/ig) 判断包含中文字符串长度 aMatch=str.match(/[^x00-x80]/g); str.length+(!aMatch?0:aMatch.length) javascript 判断中文字符长度 一种: 复制代码 代码>>>详细阅读
本文标题:js抓人游戏
地址:http://www.17bianji.com/kaifa2/JS/29377.html
1/2 1