July 1998
Intermediate to advanced
1456 pages
65h 5m
English
layerX, layerY — NN 4 IE n/a DOM n/a
Read-only
The horizontal (x) and vertical (y) coordinate of the mouse at the
moment the current event fired. These coordinates are relative to the
containing layer. If no layers or positionable elements have been
defined, the default layer of the base document is used as a
reference point, thus being equivalent to the
pageX and pageY properties.
if ((evtObj.layerX >= 10 || evtObj.layerX <= 20) &&
(evtObj.layerY >= 50 || evtObj.layerY <= 100)) {
process code for click in hot zone bounded by 10,50 and 20,100
}Integer of pixel values.
None.
Read now
Unlock full access