-
screenx
(計算機術語)
鎖定
在W3標註中,screenX 事件屬性可返回事件發生時鼠標指針相對於屏幕的水平座標
- 中文名
- screenx
- 含 義
- 可返回事件發生
- 語 法
- event.screenX
- 代碼示例
- <html><head>
screenx術語解釋
screenx語法
event.screenX
screenx代碼示例
<html>
<head>
<script type="text/javascript">
function show_coords(event) {
x=event.screenX
y=event.screenY
alert("X coords: " + x + ", Y coords: " + y)
}
</script>
</head>
<body onmousedown="show_coords(event)">
<p>Click in the document. An alert box will alert the x and y coordinates of the cursor.</p>
</body>
</html>
- 參考資料
-
- 1. screenX 事件屬性 .w3school[引用日期2014-07-20]
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:8次歷史版本
- 最近更新: 格斗天王2046