摘要:
1. 侧边栏广告 1 window.onload = window.onresize = window.onscroll = function() { 2 var oDiv = document.getElementById("div1"); 3 4 //页... 阅读全文
摘要:
1 window.oncontextmenu = function(ev) { 2 var ul = document.getElementById("ul1"); 3 var oEvent = ev || event; 4 5 ... 阅读全文
摘要:
1 window.onload = function() { 2 var content = document.getElementById("content"); 3 var info = document.getElementById("info"); ... 阅读全文
摘要:
1 var oEvent = ev || event; 2 var oDiv = document.getElementById("div1"); 3 4 //keyCode 5 //左:37; 6 //上:38; ... 阅读全文
摘要:
1 window.onload = function() { 2 var oDiv = document.getElementById("div1"); 3 var disX = 0; 4 var disY = 0; 5 6 ... 阅读全文
摘要:
1 window.onload = function() { 2 var content = document.getElementById("content"); 3 4 content.onkeypress = function(ev) { 5 ... 阅读全文
摘要:
1 function setCookie(name, value, day) { 2 var oDate = new Date(); 3 oDate.setDate(oDate.getDate() + day); 4 document.coo... 阅读全文
摘要:
1. 弹性运动公式 1 window.onload = function() { 2 var oDiv = document.getElementById("div1"); 3 var iSpeed = 0; 4 5 setInterval(... 阅读全文
摘要:
1. 匀速运动 1 /** 2 * @param obj - 待改变的对象 3 * @param json - 待改变的属性列表 4 * @return func - 链式调用 5 */ 6 function startMove(obj, j... 阅读全文
摘要:
1. 物体掉落 1 window.onload = startMove; 2 3 var iSpeedX = 100; 4 var iSpeedY = 8; 5 6 function startMove() { 7 setInterval(... 阅读全文