Mega Code Archive

 
Categories / JavaScript DHTML / Scriptaculous
 

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>