203Chapter 15 .Generic HTML Element Objects Related Items: (Business web site)
Sunday, November 25th, 2007203Chapter 15 .Generic HTML Element Objects Related Items: event.dataTransfer object; onDragEnd, onDragEnter, onDragLeave, onDragOver, onDragStart, onDrop event handlers. onDragEnter onDragLeave NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility These events (not implemented in IE5/Mac) fire during a drag operation. When the cursor enters the rectangular space of an element on the page, the onDragEnter event fires on that element. Immediately thereafter, the onDragLeaveevent fires on the element from which the cursor came. While this may seem to occur out of sequence from the physical action, the events always fire in this order. Depending on the speed of the client computer s CPU and the speed of the user s dragging action, one or the other of these events may not fire especially if the physical action outstrips the computer s capability to fire the events in time. See the discussion of the onDragevent handler earlier in this chapter for more details on the sequence of drag-related events. Example (with Listing 15-38) on the CD-ROM Related Items: onDrag, onDragEnd, onDragOver, onDragStart, onDrop event handlers. onDragOver NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility The onDragOver event (not implemented in IE5/Mac) fires continually while a dragged cursor is atop an element. In the course of dragging from one point on the page to another, the onDragOver event target changes with the element beneath the cursor. If no other drag-related events are firing (the mouse button is still down in the drag operation, but the cursor is not moving), the onDragand onDragOver events fire continually, alternating between the two. You should have the onDragOverevent handler of a drop target element set the event.returnValue property to false. See the discussion of the onDrag event handler earlier in this chapter for more details on the sequence of drag-related events. On the CD-ROM elementObject.onDragOver
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.