5 .drop-zone {height:100px; width:256px; background:gray; margin:20px;}
7 <script src="jquery-1.4.2.min.js" type="text/javascript"></script>
8 <script src="../client/fileuploader.js" type="text/javascript" ></script>
11 function createDropZone(selector){
12 var element = $(selector)[0];
14 new qq.UploadDropZone({
18 $(element).css('background', 'green');
23 onLeaveNotDescendants: function(){
24 console.log('onLeaveNotDescendants')
25 $(element).css('background', 'gray');
28 $(element).css('background', 'gray');
30 console.log(e.dataTransfer.files);
36 createDropZone('#drop-zone1');
37 createDropZone('#drop-zone2');
43 <div id="drop-zone1" class="drop-zone"><p>drop-zone1</p></div>
44 <div id="drop-zone2" class="drop-zone"><p>drop-zone2</p></div>