Dragable DIV using javascript
<p>I want to make Dragable div
i know this can be done using Jquery plug in but i don't want to use because i just need only dragable function.
so tell me how can i make dragable function 
i have did this</p>

<pre><code>$(document).ready(function(e){
                $("#eve").mousemove(function(e){
                    var p=$(this);
                    var offset = p.offset();
                    var ol=offset.left;
                    var ot=offset.top;
                    var l=e.pageX-ol;
                    var t=e.pageY-ot;
                    var eX=e.pageX;
                    var eY=e.pageY;
                    var htm="left:"+ol+" top:"+ot+"&lt;br/&gt;";
                    htm+="eX:"+eX+" eY:"+eY+"&lt;br/&gt;";
                    htm+="curX:"+l+" curY:"+t+"&lt;br/&gt;";
                    htm+="l:"+(ol-l)+" t:"+(ot-t);
                    p.html(htm);
                   p.css({left:((eX-3))+"px",top:((eY-3))+"px"});
                });
</code></pre>
