3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4 <title>ExtJS.com Drag and Drop with DOM Elements: Step 1</title>
5 <link rel="stylesheet" type="text/css" href="/ext3/resources/css/ext-all.css" />
6 <script type="text/javascript" src="/ext3/adapter/ext/ext-base.js"></script>
7 <script type="text/javascript" src="/ext3/ext-all-debug.js"></script>
8 <!--<script type="text/javascript" src="dnd.js"></script>-->
10 <style type="text/css">
17 border: 1px solid #999999;
20 -moz-border-radius: 17px;
21 -webkit-border-radius: 17px;
31 -moz-border-radius: 5px;
32 -webkit-border-radius: 5px;
34 border: 1px solid #666666;
36 background-color: #FFFFFF;
42 #cars div, #trucks div {
47 #repair div, #rented div {
57 border: 1px solid #777777;
62 background-color: #99ff99 !important;
66 border: 1px solid #FF0000 !important;
72 <style type="text/css">
79 border: 1px solid #999999;
91 border: 1px solid #666666;
93 background-color: #FFFFFF;
99 #cars div, #trucks div {
104 #repair div, #rented div {
112 border: 1px solid #777777;
117 background-color: #99ff99 !important;
121 border: 1px solid #FF0000 !important;
127 <table class="x-unselectable">
143 <div id="cars" class="availableLot">
144 <div><img src="img/camaro.jpg" class="imgThumb" qtip="Camaro"/></div>
145 <div><img src="img/miata.jpg" class="imgThumb" qtip="Miata"/></div>
146 <div><img src="img/mustang.jpg" class="imgThumb" qtip="Mustang"/></div>
147 <div><img src="img/corvette.jpg" class="imgThumb" qtip="Corvette"/></div>
152 <div id="trucks" class="availableLot trucksLot">
153 <div><img src="img/f150.jpg" class="imgThumb" qtip="F150"/></div>
154 <div><img src="img/tahoe.jpg" class="imgThumb" qtip="Tahoe"/></div>
155 <div><img src="img/tacoma.jpg" class="imgThumb" qtip="Tacoma"/></div>
156 <div><img src="img/s10.jpg" class="imgThumb" qtip="S10"/></div>
163 <td align='center' style="width: 200px;">
166 <td align='center' style="width: 200px;">
169 <td align='center' style="width: 200px;">
175 <div id="rented" class="availableLot rented"></div>
178 <div id="repair" class="availableLot repair"></div>
186 <script type="text/javascript">
188 Ext.onReady(function() {
189 Ext.QuickTips.init();
193 // Configure the cars to be draggable
194 var carElements = Ext.get('cars').select('div');
195 Ext.each(carElements.elements, function(el) {
196 var dd = new Ext.dd.DD(el, 'carsDDGroup', {
199 Ext.apply(dd, overrides);
202 var truckElements = Ext.get('trucks').select('div');
203 Ext.each(truckElements.elements, function(el) {
204 var dd = new Ext.dd.DD(el, 'trucksDDGroup', {
207 Ext.apply(dd, overrides);