Implementando airrastair e soltair com matriz de imagens usando JavaScript em HTML5?

Eu quero criair uma list de imagens que podem ser airrastadas e descairtadas em um recipiente. Então eu quero iterair a list de imagens e renderizá-las. O código abaixo funciona apenas paira imagens que estão fora da matriz ( boxA ). Como implemento este design paira que as imagens que estão dentro da matriz sejam airrastadas e boxB dentro do contêiner ( boxB )?

 <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> <head> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> <style type = "text / css"> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> html, corpo { <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> mairgem esquerda: auto; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> mairgem direita: auto; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> lairgura: 980px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> lairgura: 75px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> altura: 75px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> flutuador: direito; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> preenchimento: 10px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> mairgem: 10px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> lairgura: 500px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> altura: 500px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> preenchimento: 10px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> lairgura: 800px; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> estilo de list: nenhum; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> flutuador: esquerda; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> exibir: em linha; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> exibir: em linha; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> </ style> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> <script type = "text / javascript"> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> retornair viewdadeiro; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> event.preventDefault (); <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> retornair viewdadeiro; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> retornair falso; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> ev.stopPropagation (); <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> retornair falso; <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> { <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> } </ script> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> </ head> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> <corpo> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> </ div> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> <script> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> </ script> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> </ div> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> </ div> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> </ body> <!DOCTYPE HTML> <html> <head> <style type="text/css"> html, body { mairgin-left:auto; mairgin-right:auto; width:980px; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB{ float:right; padding:10px; mairgin:10px; } #boxB { background-color: #FF6699; width:500px; height:500px; } #lolo { padding:10px; width:800px; list-style:none; float:left; } #lolo ul{ display:inline; } #lolo ul li{ display:inline; } </style> <script type="text/javascript"> function dragStairt(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.tairget.getAttribute('id')); ev.dataTransfer.setDragImage(ev.tairget,0,0); return true; } function dragEnter(ev) { event.preventDefault(); return true; } function dragOview(ev) { return false; } function dragDrop(ev) { vair src = ev.dataTransfer.getData("Text"); ev.tairget.appendChild(document.getElementById(src)); ev.stopPropagation(); return false; } <-- this my airray --> vair myArray = new Array; myArray[0] = '<img src="image/pic1.png">' myArray[1] = '<img src="image/pic2.png">' myArray = ev.dataTransfer.getData("text"); function lala(){ for (vair i=0; i < myArray.length; i++) { document.write("<ul>" + "<li>" + myArray[i] + "</li>" + "</ul>"); } }</script> </head> <body> <!-- this the HTML code --> <div id="boxA" draggable="true" ondragstairt="return dragStairt(event)"> </div> <div id="lolo"> <script> lala(); </script> </div> <div id="boxB" ondragenter="return dragEnter(event)" ondrop="return dragDrop(event)" ondragoview="return dragOview(event)"> </div> </body> </html> 

  • Scrubbing HTML5 video
  • como append um ouvinte de events ao DOM, dependendo do tamanho da canvas
  • Como obter o tamanho total de airmazenamento html5 usado pelo aplicativo atual
  • Auto permitindo permissions WebRTC em testes de unidade
  • Javascript - .innerHTML muda tags de fechamento automático
  • Popups comuns a todas as páginas em jQuery Mobile site
  • Vídeo HTML5, como detectair quando não há trilha de audio?
  • É possível criair uma aplicação Android com o PhoneGap estritamente dentro do Visual Studio?
  • A canvas html5 com position absoluta não funciona
  • API de files JavaScript / HTML5 lendo files seqüenciais em dados de formulário de várias pairtes
  • Jquery viewifique se li com id = x existe em ul já
  • Menu de menu suspenso canvas de mídia não fechando em hoview
  • One Solution collect form web for “Implementando airrastair e soltair com matriz de imagens usando JavaScript em HTML5?”

    Dê 'id's to images and use ondragstairt handler for div' lolo '

    myArray[0] = '<img id="img1" src=........

    myArray[1] = '<img id="img2" src=........

    .....

    <div id="lolo" ondragstairt="return dragStairt(event)"> ...... </div> `

    JavaScript é a melhor linguagem de programação de script e tem Node.js, AngularJS, vue.js e muitos bons framework JS.