两个自由落体与抛物运动的JS

自由落体 [runcode height="200"] 横向系数: (0-1) 纵向系数: (0-1) 速度:(20-1000) var i = null; function demo(hp,vp,sp) { var f=document.getElementById('fall'); f.style.right='0px'; f.style.bottom='40px'; i&&clearInterval(i); var h=1,v=1,hp=(hp>0&&hp0&&vp20 || sp1000)clearInterval(i); if(b>-210){ v+=2 ...

自由落体

提示:你可以先修改部分代码再运行。

抛物运动

提示:你可以先修改部分代码再运行。

转载请注明文章转载自:网站前端,web前端,前端脚本,前端优化|时代前端 [http://www.52shidai.com]
本文链接地址:两个自由落体与抛物运动的JS

标签:,

随机日志推荐

    发表评论

    *

    * 绝不会泄露



    Copyright © 网站前端,web前端,前端脚本,前端优化|时代前端 and WPYOU All Rights Reserved.

    Powered by Wordpress and Theme by WPYOU