开发者

With jQuery, how to draw square Divs inside the document, clicking a point in the viewport then moving the mouse?

I want to draw inside the DOM squared Divs, clicking a random point in the viewport then moving the mouse with this effect...

http://www.vegabit.com/test/example_create_div_on_mouse_move.jpg

in jQuery... and with开发者_JS百科out any plugin...

Thank You in advance!

Max


Something like this? http://jsbin.com/azare

found it here http://groups.google.com/group/jquery-en/browse_thread/thread/9158d61a96061873?pli=1


What do you mean draw inside ?

You can drag the div using jquery ui draggable.

Link

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜