上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页
摘要: 1. 侧边栏广告 1 window.onload = window.onresize = window.onscroll = function() { 2 var oDiv = document.getElementById("div1"); 3 4 //页... 阅读全文
posted @ 2015-12-24 20:19 叫我霍啊啊啊 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1 window.oncontextmenu = function(ev) { 2 var ul = document.getElementById("ul1"); 3 var oEvent = ev || event; 4 5 ... 阅读全文
posted @ 2015-12-24 20:18 叫我霍啊啊啊 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 window.onload = function() { 2 var content = document.getElementById("content"); 3 var info = document.getElementById("info"); ... 阅读全文
posted @ 2015-12-24 20:18 叫我霍啊啊啊 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1 var oEvent = ev || event; 2 var oDiv = document.getElementById("div1"); 3 4 //keyCode 5 //左:37; 6 //上:38; ... 阅读全文
posted @ 2015-12-24 20:18 叫我霍啊啊啊 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 window.onload = function() { 2 var oDiv = document.getElementById("div1"); 3 var disX = 0; 4 var disY = 0; 5 6 ... 阅读全文
posted @ 2015-12-24 20:17 叫我霍啊啊啊 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 window.onload = function() { 2 var content = document.getElementById("content"); 3 4 content.onkeypress = function(ev) { 5 ... 阅读全文
posted @ 2015-12-24 20:17 叫我霍啊啊啊 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1 function setCookie(name, value, day) { 2 var oDate = new Date(); 3 oDate.setDate(oDate.getDate() + day); 4 document.coo... 阅读全文
posted @ 2015-12-24 20:16 叫我霍啊啊啊 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1. 弹性运动公式 1 window.onload = function() { 2 var oDiv = document.getElementById("div1"); 3 var iSpeed = 0; 4 5 setInterval(... 阅读全文
posted @ 2015-12-24 20:15 叫我霍啊啊啊 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1. 匀速运动 1 /** 2 * @param obj - 待改变的对象 3 * @param json - 待改变的属性列表 4 * @return func - 链式调用 5 */ 6 function startMove(obj, j... 阅读全文
posted @ 2015-12-24 20:15 叫我霍啊啊啊 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1. 物体掉落 1 window.onload = startMove; 2 3 var iSpeedX = 100; 4 var iSpeedY = 8; 5 6 function startMove() { 7 setInterval(... 阅读全文
posted @ 2015-12-24 20:14 叫我霍啊啊啊 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页