摘要: 面向对象版:function Drag(id){ var _this = this; this.disX = 0; this.disY = 0; this.oDiv = document.getElementById(id); this.oDiv.onmousedown = function(ev){ _this.fnDown(ev); return false; };}Drag.prototype.fnDown = function(ev){ var _this = this; var oEvent ... 阅读全文
posted @ 2013-11-07 16:10 Oo坚oO 阅读(188) 评论(0) 推荐(0)