Código de ejemplo 1 - Arrastre

<html>
<head>
<title>Drag1</title>

<script type="text/javascript" src="mootools-core.js"></script>
<script type="text/javascript" src="mootools-more.js"></script>
<script type="text/javascript">
window.addEvent("domready",function(){
   arrastre=new Drag($("caja1"))
});
</script>

<style type="text/css">
#caja1 { width: 80px; height: 80px; background-color: blue; margin: 20px; position: relative}
</style>

</head>
<body>
<h1>clase Drag</h1>
<div id="caja1">
<p>caja 1</p>
</div>
</body>
</html>