Ghosting vs. non-ghosting : Drag Drop « Scriptaculous « JavaScript DHTML






Ghosting vs. non-ghosting

 
<html>
<head>
<title>Untitled Document</title>

<script src="scriptaculous-js-1.8.2/lib/prototype.js" type="text/javascript"></script>
<script src="scriptaculous-js-1.8.2/src/scriptaculous.js" type="text/javascript"></script>
<script src="scriptaculous-js-1.8.2/src/unittest.js" type="text/javascript"></script>

<script type="text/javascript">
Event.observe(window, 'load', function() {
  new Draggable('regular');
  new Draggable('ghostly', { ghosting: true });
});


</script>

</head>
<body>

<p id="regular" class="pad">This drags regularly</p>

<p id="ghostly" class="pad">This drags with ghosting</p>
</body>
</html>

   
  








Related examples in the same category

1.Drag and drop: invert
2.Drag and drop to reorder
3.Drag and drop: ghosting effect
4.Drag and drop: hover class
5.Drag and drop: snap
6.Drag and drop: force to scroll
7.Drag and drop between two tables
8.Droppable target
9.Add delay to drag and drop
10.Draggable handle
11.Draggable with scroll bar