欢迎您来到网页代码站!
设为首页
加入收藏
留 言 板
精品美文
在线手册
如果您关闭了浏览器的javascript,可能导致页面部分功能无法显示,请开启javascript以便正常浏览本网页。网页代码站(www.webdm.cn)谢谢您的支持!
代码首页
菜单导航
表格相关
表单及按钮
层和布局
计算转换
游戏娱乐
广告代码
图片特效
浏览器相关
日期时间
背景特效
文本链接
按标题搜索
按内容搜索
热搜:
div
css
推荐
js
菜单
广告
flash
TAB
时间
焦点图
布局
按钮
您的当前位置:
网页代码站
>>
游戏娱乐
>> 可调节速度的撞击小球
可调节速度的撞击小球
分类:
游戏娱乐
时间:2010-03-06 点击:
关键词:
JS
|
css
|
网页代码
|
代码
|
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>可调节速度的撞击小球 - www.webdm.cn</title> </head> <body onLoad="welcometext()"> <script LANGUAGE="JavaScript"> var speed=500; var hellotext="1"; var thetext=""; var started=false; var step=0; var times=1; function welcometext(){ times--;if(times==0){ if(started==false){started=true; document.forms[0].message.value=hellotext; setTimeout("anim()",1)}thetext=hellotext}} function showformtext(txt){ thetext=txt; setTimeout(welcometext());times++} function anim(){step++;if(step==15){step=1} if(step==1){document.forms[0].message.value='Ping-Pong*____________|_____________Ping-Pong'} if(step==2){document.forms[0].message.value='Ping-Pong_____________|____________*Pign-Pong'} if(step==3){document.forms[0].message.value='Ping-Pong____*________|_____________Ping-Pong'} if(step==4){document.forms[0].message.value='Ping-Pong_____________|________*____Ping-Pong'} if(step==5){document.forms[0].message.value='Ping-Pong________*____|_____________Ping-Pong'} if(step==6){document.forms[0].message.value='Ping-Pong_____________|____*________Ping-Pong'} if(step==7){document.forms[0].message.value='Ping-Pong____________*|_____________Ping-Pong'} if(step==8){document.forms[0].message.value='Ping-Pong_____________|*____________Ping-Pong'} if(step==9){document.forms[0].message.value='Ping-Pong_____________|___*_________Ping-Pong'} if(step==10){document.forms[0].message.value='Ping-Pong_________*___|_____________Ping-Pong'} if(step==11){document.forms[0].message.value='Ping-Pong_____________|______*______Ping-Pong'} if(step==12){document.forms[0].message.value='Ping-Pong______*______|_____________Ping-Pong'} if(step==13){document.forms[0].message.value='Ping-Pong_____________|__________*__Ping-Pong'} if(step==14){document.forms[0].message.value='Ping-Pong__*__________|_____________Ping-Pong'} if(step==15){document.forms[0].message.value='Ping-Pong_____________|_____________Ping-Pong'} setTimeout("anim()",speed)} function delay(){if(speed==500){speed=10}else{speed=500}} </script> <form><INPUT Type="text" Name="message" Size="44"><p> <INPUT Type="button" Value="快速/减速" onClick="delay()"></form> <br /> <a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码! </body> </html>
运行代码
全选代码
复制代码
保存代码
友情提示
可调节速度的撞击小球。
一、如果您使用的浏览器版本为IE6.0、360浏览器V3.0.8.1版本或者IE的更低版本浏览本页面,建议您升级浏览器至IE7以上,上面的“运行”按钮可能不能用,但您可按以下方式查看。
运行代码方式:
1、点击“复制”按钮;
2、在桌面建立一个txt文档;
3、粘贴复制的代码;
4、最后把txt的扩展名改为“htm”或“html”;
5、完成,打开即可看到效果。
二、如果您使用FireFox或者非IE浏览器,建议您使用IE7以上版本。上面的“复制”按钮失效,请您“全选”,以普通方式复制!
三、某些代码因需加载完Jquery等之类比较大的JS文件,如果您看不到效果,请您刷新页面!
四、某些代码不能完全兼容各浏览器,还请您再次修改才能使用!给您带来的不便!尽请谅解!谢谢您的支持!
来顶一下
上一篇:
颜色调节器
下一篇:
用一小段JS让鼠标右键在网页中失效
智力方格游戏
超简单射击游戏
动脑小游戏
JavaScript游戏之在线弹球
JS+CSS漂亮的滑出提示层
可控制的跳舞小人
JavaScript猜数字游戏
JavaScript小游戏之堆积游戏
用JS来模拟一个跳舞游戏
永远经典的俄罗斯方块
问问
|
贴吧
|
查询
|
给我留言
|
精品美文
|
友情链接
| |
本站承接网站开发业务
版权声明
|
广告服务
|
联系我们
|
网站地图
|
关于我们
| |
滇ICP备08101440号
Powered by
网页代码站
(网页即"web" + 代码即"dm" + "cn" = webdm.cn) | 最专业的代码下载网站 - 致力为中国站长提供高质量的代码!