In Netscape, mouse positions are available within a layer object. These may not be the same positions as the mouse coordinates within a window. This is because a layer may have been scrolled with respect to the window. Nevertheless if you are working on the layer, you need coordinates that are relative to your target to save having to compute them.
See also: | Event.layerY |
Prev | Home | Next |
Event.keyCode | Up | Event.layerY |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |