nerd_owl: Drag'n Drop Scriptacolous Problem

Hi@all,

ich habe dieses Tutorial gemacht und es geht wunderbar!

http://www.tutorialspoint.com/script.aculo.us/scriptaculous_drag_drop.htm

Nur fliegen die Bilder beim loslassen immer so komisch von rechts darein. Kann ich das abstellen? Und wenn ja wie?

LG

  1. Hallo,

    klingt, als hättest du einen Endeffect definiert. Wie seiht dein Code aus?

    vg ichbinich

    --
    alles wird gut...
    1. Hi,

      klingt, als hättest du einen Endeffect definiert. Wie seiht dein Code aus?

      nein, keinen Endeffect definiert.

        
      <script type="text/javascript">  
         window.onload = function() {  
         // Make all the images draggables from draggables division.  
         $A($('draggables').getElementsByTagName('img')).each(  
            function(item) {  
               new Draggable(  
                  item,  
                  {  
                     revert: true,  
                     ghosting: true  
                  }  
               );  
            }  
         );  
        
         Droppables.add(  
           'droparea',  
           {  
              hoverclass: 'hoverActive',  
              onDrop: moveItem  
           }  
        );  
         // Set drop area by default  non cleared.  
         $('droparea').cleared = false;  
      }  
      // The target drop area contains a snippet of instructional  
      // text that we want to remove when the first item  
      // is dropped into it.  
      function moveItem( draggable,droparea){  
         if (!droparea.cleared) {  
            droparea.innerHTML = '';  
            droparea.cleared = true;  
         }  
         draggable.parentNode.removeChild(draggable);  
         droparea.appendChild(draggable);  
      }  
      </script>