最新国产好看的视频,伊人天堂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
韶关市| 泸州市| 井冈山市| 额尔古纳市| 文水县| 鞍山市| 顺平县| 阿图什市| 通州区| 福鼎市| 吉首市| 安庆市| 垦利县| 华容县| 边坝县| 无极县| 秦皇岛市| 北安市| 烟台市| 江山市| 云浮市| 都兰县| 日喀则市| 余江县| 镶黄旗| 吉林省| 桓仁| 武乡县| 高雄县| 岳普湖县| 嘉义市| 雅江县| 南平市| 宁陕县| 东莞市| 简阳市| 崇文区| 巴塘县| 棋牌| 光山县| 石河子市|