JavaScript Reference/Javascript Properties/layerY — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:21, 26 мая 2010
"layerY" Example
<html>
<body>
<script>
function function1(myEvent) {
document.getElementById("myX").innerHTML = myEvent.layerX;
document.getElementById("myY").innerHTML = myEvent.layerY;
}
document.onmousemove = function1;
</script>
<p>
<b>Layer X Coordinate:</b>
<span id="myX">0</span>
</p>
<p>
<b>Layer Y Coordinate:</b>
<span id="myY">0</span>
</p>
<button onclick="alert(event.type);">Event Type</button>
</body>
</html>
"layerY" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |event |
+----------------+--------------------------------------------------------------+
"layerY" Syntax and Note
Note:
Read-only property.
Sets either the cursor"s Y coordinate, or
the object height which triggers the onResize event.
Syntax:
event.layerY
eventName.layerY