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

clientX Property

Internet Development Index

Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.

Syntax

event.clientX [ = iXPos ]

Possible Values

iXPosInteger that specifies or receives the x-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.

Because the clientX property returns a value relative to the client, you can add the value of the scrollLeft property to determine the distance of the x-coordinate from the edge of the body element.

Within a viewlink, the client area begins at the edge of the master element.

Example

This example uses the clientX property to determine the mouse position relative to the window. The status window shows the mouse position at all times.

<SCRIPT>
function clientCoords()
{
var offsetInfo = ""
clientInfo = "The x coordinate is: " + window.event.clientX + "\r"
clientInfo += "The y coordinate is: " + window.event.clientY + "\r"
alert(clientInfo);
}
</SCRIPT>
</HEAD>
<BODY onmousemove="window.status = 'X=' + window.event.clientX +
' Y=' + window.event.clientY"
ondblclick="clientCoords()">
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
嘉定区| 百色市| 大石桥市| 永昌县| 公主岭市| 江安县| 洪江市| 万全县| 五台县| 革吉县| 隆尧县| 顺义区| 都昌县| 特克斯县| 麟游县| 克东县| 洪江市| 宁陕县| 会宁县| 日土县| 靖边县| 阜城县| 长宁县| 新安县| 崇义县| 汪清县| 凤山市| 绍兴市| 阿鲁科尔沁旗| 和平区| 札达县| 新密市| 郯城县| 定远县| 洪湖市| 宕昌县| 遵化市| 勐海县| 永仁县| 宾川县| 阳泉市|