15.02.2013 Views

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

clientX<br />

clientY<br />

layerX<br />

layerY<br />

pageX<br />

pageY<br />

screenX<br />

screenY<br />

Chapter 13 ✦ Event Objects (Chapter 29)<br />

NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5<br />

Compatibility ✓<br />

Example<br />

You can see the effects of the coordinate systems and associated NN6 properties<br />

with the page in Listing 29-19. You can view coordinate values for all four measuring<br />

systems, as well as some calculated value. Two clickable objects are provided so<br />

that you can see the differences between an object not in any layer and an object<br />

residing within a layer (although anything you see is clickable, including text<br />

nodes). Figure 13-3 shows the results of a click inside the positioned layer.<br />

Figure 13-3: NN6 event coordinates for a click inside a positioned element<br />

425<br />

(NN6) eventObject.clientX

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!