Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/11/2011, 02:03
Avatar de jor_0203
jor_0203
 
Fecha de Ingreso: octubre-2011
Ubicación: mexico
Mensajes: 760
Antigüedad: 12 años, 6 meses
Puntos: 8
Respuesta: dezplazar menu con el maus tanto izquierda como derecha

les voy a poner un ejemplo para que vean mas o menos lo que estoy buscando

Código HTML:
Ver original
  1. <title>System Drag And Drop Example</title>
  2. <script type="text/javascript">
  3. function m(oEvent) {
  4.                     if (oEvent.button == 1) {
  5.                     oEvent.srcElement.dragDrop();
  6.                                             }
  7.                    }
  8.            
  9.             function n(oEvent) {
  10.                 oEvent.dataTransfer.setData("text", "This is a red square");
  11.             }                        
  12.         </script>
  13. </head>
  14.     <body>
  15.  <p>arastra el contenido alimput con el maus</p>
  16.  <p>
  17. <div style="background-color: red; height: 100px; width: 100px" onmousemove="m(event)" ondragstart="n(event)">arrastrame</div>
  18.  </p>
  19.         <p><input type="text" value="" /></p>
  20.     </body>
  21. </html>