开发者

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

开发者 https://www.devze.com 2023-01-06 05:58 出处:网络
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开发者

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

精彩评论

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