跨浏览器实现自定义事件处理
?调用方法:
function test(){var container = document.getElementById("div1");this.container.onmouseMove = this.eventHandler("onMouseMoveMouse");CEvent.addListener(this.container, "mousemove", this.eventHandler("onmapmousemove"));}onMouseMoveMouse.js
Zx.prototype.onmapmousemove = function(evt) {/*var cpointtmp = new ZxPoint(this.container.offsetLeft + evt.clientX - this.mapDiv.offsetLeft, this.container.offsetTop + evt.clientY - this.mapDiv.offsetTop); Theodolite$setPoint(cpointtmp);*/alert("test");}?
?