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};
相关文章推荐
- display the local image online base on IE and Fire fox
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- Get to the Top on Google: Tips and Techniques to Get Your Site to the Top of the Search Engine Ranki
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- whether the results are the same of getClass().getName() called in child class and parent class?
- How to get the value of a form element : check box and radio button
- HOW TO: Tune and Scale Performance of Applications That Are Built on the .NET Framework -zt from MS
- Get and display the size of file and directory in Linux system using du command 获取和现实linux文件大小(三)
- relying on packaging to define the extension of the main artifact has been deprecated and is schedul
- Harry Potter and the Goblet of Fire
- 使用JavaScript展开/折叠TreeView中所有节点(Expand and Collapse All Nodes of asp.net Treeview on the client with javascript)
- 【Hackerrank】Get the value of the node at a specific position from the tail
- jQuery:mouseover and Increase the Size of an Image
- Discover the difference among Types: is operator,typeof keyword and GetType method
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- Get the Url of a Hyperlink when the Mouse moves Over a TWebBrowser Document
- Qt How to get the width and height of a widget