开发者

In jQuery, how do you make a mousedown() event trigger a resizeable box feature?

In jQuery, how do you make a mousedown() event trigger a resizeable box feature? A similar idea is cropping. You click on the picture and drag your mouse and it creates a box to the size of your c开发者_运维问答hoosing.

$("div").mousedown().resizeable();

or

$("div").mousedown(function(){ $("div").resizeable()}


Maybe you want the jCrop plugin?

Oops I just realized it the same link as the one Nick added as a comment - please give him credit if this is what you needed.

Edit: I found another crop plugin called imgAreaSelect.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜