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

x Property

Internet Development Index

Sets or retrieves the x-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.

Syntax

event.x [ = iX ]

Possible Values

iXInteger 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.

In browser versions earlier than Internet Explorer 5, the x property retrieves a coordinate relative to the client.

This property returns the x-coordinate of the closest relatively positioned parent element of the element that fires the event. If the event firing element is relatively positioned, then the x-coordinate from the boundary of the element is returned. If the event firing element and all of its parent elements are not relatively positioned, then the x property returns a coordinate relative to the body element.

If the mouse is outside the window when the event is called, this property returns -1.

Example

This example displays the current mouse position in the browser's status window.

<BODY onmousemove="window.status = 'X=' + window.event.x +
' Y=' + window.event.y">

Standards Information

There is no public standard that applies to this property.

Applies To

event
文登市| 卓尼县| 上蔡县| 平顶山市| 吕梁市| 大冶市| 哈尔滨市| 兖州市| 建始县| 光山县| 郑州市| 南靖县| 宁都县| 胶州市| 伊金霍洛旗| 清丰县| 即墨市| 宁安市| 乐安县| 通化市| 申扎县| 永安市| 黎城县| 星子县| 静宁县| 南华县| 天长市| 石河子市| 平度市| 平谷区| 海晏县| 含山县| 万山特区| 泗阳县| 高台县| 凭祥市| 石林| 乌苏市| 达日县| 伽师县| 皮山县|