[jQuery] Re: How to create a div by click + drag

2009-01-03 Thread Richard D. Worth
For more flexibility you may want to bind the mousemove and mouseup functions to the document. - Richard On Tue, Dec 16, 2008 at 7:49 PM, Kean wrote: > > Hi Nejo31, > > I am too lazy to code, so I will mainly pseudo code. > > var initx; > var inity; > var resize = function(e){ >created.heig

[jQuery] Re: How to create a div by click + drag

2008-12-16 Thread Kean
Hi Nejo31, I am too lazy to code, so I will mainly pseudo code. var initx; var inity; var resize = function(e){ created.height(e.pageY - initY); created.width(e.pageY - initY); }; $("calendar container id").mousedown(function(e){ $("body").append(''); initx = e.pageX; inity = e.