Web servers - CD-559Appendix F . Examples from Parts III and

CD-559Appendix F . Examples from Parts III and IV

Click on the button and in the DIV/image to see the coordinate values for the event object.

NN6 Mouse Event Coordinates:
target:
clientX, clientY: …With scrolling:
layerX, layerY:
pageX, pageY: Within Element:
screenX, screenY:
currentTarget NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Listing 29-20 shows the power of the currentTargetproperty in revealing the element that is processing an event during event propagation. Similar to the code in Listing 29-7, this example is made simpler because it lets the event object s properties do more of the work to reveal the identity of each element that processes the event. Event listeners assigned for various propagation modes are assigned to a variety of nodes in the document. After you click the button, each listener in the propagation chain fires in sequence. The alert dialog shows which node is processing the event. And, as in Listing 29-7, the eventPhase property is used to help display the propagation mode in force at the time the event is processed by each node. (NN6) eventObject.currentTarget
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

Leave a Reply