Jcrop with resizing preview?

This is what I did in mine: function showPreview(photoDiv, coords, maxX, maxY) { var rx = maxX / coords. W; var ry = maxY / coords. H; rx = (rx == 0)?1 : rx; ry = (ry == 0)?1 : ry; photoX = $("#" + photoDiv + " #photo").width(); photoY = $("#" + photoDiv + " #photo").height(); $("#" + photoDiv + " #preview").

Css({ width: Math. Round(rx * photoX) + 'px', height: Math. Round(ry * photoY) + 'px', marginLeft: '-' + Math.

Round(rx * coords. X) + 'px', marginTop: '-' + Math. Round(ry * coords.

Y) + 'px' }); } I guess maxX will refer to your $targ_w This is setup this way because I have multiple jCrop instances in one page. Edit it depending on your setup.

This is what I did in mine: function showPreview(photoDiv, coords, maxX, maxY) { var rx = maxX / coords. W; var ry = maxY / coords. H; rx = (rx == 0)?1 : rx; ry = (ry == 0)?1 : ry; photoX = $("#" + photoDiv + " #photo").width(); photoY = $("#" + photoDiv + " #photo").height(); $("#" + photoDiv + " #preview").

Css({ width: Math. Round(rx * photoX) + 'px', height: Math. Round(ry * photoY) + 'px', marginLeft: '-' + Math.

Round(rx * coords. X) + 'px', marginTop: '-' + Math. Round(ry * coords.

Y) + 'px' }); } I guess maxX will refer to your $targ_w. This is setup this way because I have multiple jCrop instances in one page. Edit it depending on your setup.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions