判断鼠标是不是在某个元素中
摘要:
// 判断鼠标是不是在某个元素中function isInRect(event,obj){ event = event||window.event; var mouseClickPostion = [event.clientX+document.body.scrollLeft,event.clientY+document.body.scrollTop], listMemuPostion = [obj.offsetLeft, obj.offsetTop], isInRect = ((mouseClickPostion[0]>=listMemuPostion[0]) && m 阅读全文
posted @ 2014-02-05 13:43 jassonfish 阅读(442) 评论(0) 推荐(0) 编辑