摘要: 1. window.eventIE:有window.event对象FF:没有window.event对象。可以通过给函数的参数传递event对象。如onmousemove=doMouseMove(event)2. 鼠标当前坐标IE:event.x和event.y。FF:event.pageX和event.pageY。通用:两者都有event.clientX和event.clientY属性。3. 鼠标当前坐标(加上滚动条滚过的距离)IE:event.offsetX和event.offsetY。FF:event.layerX和event.layerY。4. 标签的x和y的坐标位置:style.po 阅读全文
posted @ 2012-09-23 20:30 夜雨_Jason 阅读(118) 评论(0) 推荐(0) 编辑