摘要:
1 window.onload = function() { 2 new Drag("div1"); 3 new LimitDrag("div2"); 4 }; 5 6 //父类 7 function Drag(id) { 8 ... 阅读全文
摘要:
1. 物体掉落 1 window.onload = startMove; 2 3 var iSpeedX = 100; 4 var iSpeedY = 8; 5 6 function startMove() { 7 setInterval(... 阅读全文
摘要:
1. 弹性运动公式 1 window.onload = function() { 2 var oDiv = document.getElementById("div1"); 3 var iSpeed = 0; 4 5 setInterval(... 阅读全文