<div class="codetitle"> <span><a style="CURSOR: pointer" data="83376" class="copybut" id="copybut83376" onclick="doCopy('code83376')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code83376"> <br> <br> <br><title>hello</title> <br><meta http-equiv="content-type" content="text/html;charset=utf-8"> <br><link rel="Stylesheet" type="text/css" href="http:10.19.1.55/lib/extjs/resources/css/ext-all.css"> <br><script type="text/javascript" src="http:10.19.1.55/lib/extjs/bootstrap.js"></script> <br><script type="text/javascript" src="http:10.19.1.55/lib/extjs/locale/ext-lang-zh_CN.js"></script> <br><style type="text/css"> <BR></style> <br><script type="text/javascript"> <BR>Ext.onReady(function(){ <BR>var drags=document.getElementsByTagName('li'); <BR>for(var i=0;i<drags.length;i++) <BR>{ <BR>Ext.dd.Registry.register(drags[i]); <BR>} <BR>new Ext.dd.DragZone('today'); <BR>new Ext.dd.DragZone('tmrw'); <br><br>function drop(dropNodeData,source,event,dragNodeData) <BR>{ <BR>var dragged=source.dragData.ddel; <BR>var sourceContainer=source.el.dom; <BR>var desContainer=this.getEl(); <BR>sourceContainer.removeChild(dragged); <BR>desContainer.appendChild(dragged); <br><br>return true; <BR>} <BR>var cfg={onNodeDrop:drop}; <BR>new Ext.dd.DropZone('today',cfg); <BR>new Ext.dd.DropZone('tmrw',cfg); <BR>}) <BR></script> <br> <br> <br><h1>Today</h1> <br><ul id="today"> <br><li>shopping</li> <br><li>haircut</li> <br> </ul> <br><h1>Tomorrow</h1> <br><ul id="tmrw"> <br><li>123</li> <br><li>456</li> <br> </ul> <br> <br> <br> </div>