tailieunhanh - JavaScript Bible, Gold Edition part 175
JavaScript Bible, Gold Edition part 175. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | CD-232 Part VI Appendixes onDragEnter onDragLeave NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Listing 15-38 shows the onDragEnter and onDragLeave event handlers in use. The simple page displays via the status bar the time of entry to one element of the page. When the dragged cursor leaves the element the onDragLeave event handler hides the status bar message. No drop target is defined for this page so when you drag the item the cursor remains as the no drop cursor. Listing 15-38 Using onDragEnter and onDragLeave Event Handlers HTML HEAD TITLE onDragEnter and onDragLeave Event Handlers TITLE SCRIPT LANGUAGE JavaScript function showEnter status Entered at new Date false function clearMsg status false SCRIPT HEAD BODY H1 onDragEnter showEnter onDragLeave clearMsg onDragEnter and onDragLeave Event Handlers H1 HR P Select any character s from this paragraph and slowly drag it around the page. When the dragging action enters the large header above the status bar displays when the onDragEnter event handler fires. When you leave the header the message is cleared Appendix F Examples from Parts III and IV CD-233 via the onDragLeave event handler. P BODY HTML onDragOver NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example See Listing 15-37 of the onDrag event handler to see how the onDragOver event handler contributes to making an element a drop target. onDragStart NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example See Listing 15-37 of the onDrag event handler to see how to apply the onDragStart event handler in a typical drag-and-drop scenario. onDrop NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example See Listing 15-37 of the onDrag event handler to see how to apply the onDrop event handler in a typical drag-and-drop scenario. CD-234 Part VI Appendixes onFilterChange NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility .
đang nạp các trang xem trước