030-manual.html (924B)
1 <!DOCTYPE html> 2 <?xml version="1.0" encoding="utf-8"?> 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <title>Drag and drop of overlapping links: fixed position</title> 6 <style type="text/css"> 7 span, strong 8 {color:green; 9 background-color:yellow;} 10 strong 11 {color:red;} 12 div 13 {height:2em; 14 position:fixed; 15 top:10px; 16 left:10px;} 17 div + div 18 {z-index:2;} 19 p 20 {margin-top:3em;} 21 </style> 22 <script type="application/ecmascript"> 23 function start(event,feedback) 24 {event.dataTransfer.effectAllowed = 'copy'; 25 event.dataTransfer.addElement(document.querySelector(feedback));} 26 </script> 27 </head> 28 <body> 29 <div> 30 <a href="data:text/plain,1" ondragstart="start(event,'strong')"> </a> 31 </div> 32 <div> 33 <a href="data:text/plain,2" ondragstart="start(event,'span')">Link</a> 34 </div> 35 <p>Try to drag link above. You should see word <span>PASS</span> not <strong>FAIL</strong> in feedback overlay all the time.</p> 36 </body> 37 </html>