ExtJS drag-and-drop effect example

Source: Internet
Author: User

  Drag-and-drop effect presumably everyone has seen it, the implementation of the same way, in the next article for you to describe in detail the use of ExtJS is how to do it

The code is as follows: <html>  <head>  <title>hello</title>  <meta http-equiv= " Content-type "content=" Text/html;charset=utf-8 ">  <link rel=" Stylesheet "type=" text/css "href=" http : "/>  <script type=" text/javascript "src=" http : "></script>  <script type=" text/javascript "src=" http : "></script>  <style type=" Text/css ">  < /style>  <script type= "Text/javascript" >  ext.onready (function () {  var drags= document.getElementsByTagName (' Li ');  for (var i=0;i<drags.length;i++)   {  Ext.dd.Registry.register (Drags[i]); }  new Ext.dd.DragZone (' Today ');  new Ext.dd.DragZone (' tmrw ');     function Drop (dropnodedata,source,event,dragnodedata)   {  var Dragged=source.dragdata.ddel;   VAR sourcecontainer=source.el.dom;&nbsp var Descontainer=this.getel ();  sourcecontainer.removechild (dragged);  Descontainer.appendchild (dragged );    return true; }  var cfg={onnodedrop:drop};  new Ext.dd.DropZone (' Today ', CFG);  new Ext.dd.DropZone (' tmrw ', cfg); })   </script>  </head>  <body>  <h1> today</h1>  <ul id= "Today" >  <li>shopping</li>  <li>haircut</li >  </ul>  <h1>Tomorrow</h1>  <ul id= "TMRW" >  <li>123</li >  <li>456</li>  </ul>  </body>  </html>   
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.