1 function handleDragStart(e) {2 this.style.opacity = '0.4'; // this / e.target is the source node.3 }4 5 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////6 7 function handleDragStart(e) {8 this.style.opacity = '0.4'; // this / e.target is the source node.9 }10 11 function handleDragOver(e) {12 if (e.preventDefault) {13 e.preventDefault(); // Necessary. Allows us to drop.14 }15 16 e.dataTransfer.dropEffect = 'move'; // See the section on the DataTransfer object.17 18 return false;19 }20 21 function handleDragEnter(e) {22 // this / e.target is the current hover target.23 this.addClassName('over');24 }25 26 function handleDragLeave(e) {27 this.removeClassName('over'); // this / e.target is previous target element.28 }29 30
Enlace
El enlace para compartir es: