mouseposn.js
来自「Harvestman-最新版本」· JavaScript 代码 · 共 22 行
JS
22 行
function showit(){ document.forms['theform'].xcoord.value=event.x; document.getElementById('spanx').innerHTML='x='+event.x; document.forms.theform.ycoord.value=event.y; document.getElementById('spany').innerHTML='y='+event.y;}function showitMOZ(e){ document.forms['theform'].xcoord.value=e.pageX; document.getElementById('spanx').innerHTML='x='+e.pageX; document.getElementById('spany').innerHTML='y='+e.pageY; document.forms.theform.ycoord.value=e.pageY;}if (!document.all){window.captureEvents(Event.CLICK);window.onclick=showitMOZ;}else{document.onclick=showit;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?