您的位置:首页 > 其它

get the position of mouse base on IE and Fire fox

2010-03-04 19:37 543 查看
 

for IE:
  
     ev=ev||window.event;
  
     return {x:ev.offsetX,y:ev.offsetY};
    
for Fire fox:     

 

   ev=ev||top.window.content.event;

 

    return {x:ev.clientX,y:ev.clientY};
   
    
    
   
  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ie
相关文章推荐