HTML5-sound drag and drop, html5-Drag and Drop

Source: Internet
Author: User

HTML5-sound drag and drop, html5-Drag and Drop

IE4 was first introduced to the js drag-and-drop function in webpages, and only images and some texts can be dragged and dropped. Any elements in the web page after IE5.5 can be dragged and dropped. HTML5 uses IE as an example to develop drag-and-drop specifications. FireFox3.5, Safari3 +, and Chrome also implement the sound drag and drop function according to HTML5 specifications.

When an element is dragged, the following events are triggered in sequence:

(1) dragstart

(2) drag

(3) dragend

This event is similar to the mousemove event. The targets of the above three events are all dragged elements. By default, the browser will not change the exterior of the dragged element during the drag, but you can modify it by yourself. However, most browsers create a translucent copy of The dragged element, which always moves with the cursor.

When an element is dragged to a valid placement target, the following events occur in sequence:

(1) dragenter

(2) dragover

(3) dragleave or drop

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.