最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

offsetY Property

Internet Development Index

Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event.

Syntax

event.offsetY [ = iCoord ]

Possible Values

iCoordInteger that specifies or receives the y-coordinate, in pixels.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

The property is read-only in Microsoft® Internet Explorer 4.0, and read/write in Internet Explorer 5 and later.

The coordinates match the offsetLeft and offsetTop properties of the object. Use offsetParent to find the container object that defines this coordinate system.

Example

This example uses the offsetY property to determine the mouse position relative to the container that fired the event, and displays the mouse coordinates in the status bar at the bottom of the window.

<SCRIPT>
function offsetCoords()
{
var offsetInfo = ""
offsetInfo = "The x coordinate is: " + window.event.offsetX + "\r"
offsetInfo += "The y coordinate is: " + window.event.offsetY + "\r"
alert(offsetInfo);
}
</SCRIPT>
</HEAD>
<BODY onmousemove="window.status = 'X=' + window.event.offsetX +
' Y=' + window.event.offsetY"
ondblclick="offsetCoords()">
:
<DIV onclick="offsetCoords();" . . . position:absolute; top:200;
left:300;">
:
</DIV>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

event
南充市| 天等县| 黑河市| 驻马店市| 资中县| 迭部县| 石阡县| 广宁县| 英山县| 昌图县| 金溪县| 巍山| 镇江市| 衡东县| 鄂伦春自治旗| 鸡东县| 麟游县| 曲阜市| 星座| 潼关县| 从化市| 林州市| 大洼县| 丹凤县| 建阳市| 黄冈市| 凤山市| 资中县| 旺苍县| 健康| 上蔡县| 萨迦县| 北京市| 安乡县| 靖宇县| 邮箱| 彭州市| 卢龙县| 阿拉善左旗| 沛县| 黔南|