Note that there are some explanatory texts on larger screens.

plurals
  1. POhow we can move selected area in Imgareaselect
    primarykey
    data
    text
    <p>I am new in jquery. I created a "imgareaselect" . and it was successfully created. but i have problem in moving selected portion.pls help me out... my code is:</p> <pre><code>&lt;head&gt; &lt;link rel="stylesheet" type="text/css" href="css/imgareaselect-default.css" /&gt; &lt;script type="text/javascript" src="scripts/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="scripts/jquery.imgareaselect.pack.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { $('#ferret').imgAreaSelect({ maxWidth: 200, maxHeight: 150, handles: true }); }); ; function preview(img, selection) { var scaleX = 100 / (selection.width || 1); var scaleY = 100 / (selection.height || 1); $('#ferret + div &gt; img').css({ width: Math.round(scaleX * 400) + 'px', height: Math.round(scaleY * 300) + 'px', marginLeft: '-' + Math.round(scaleX * selection.x1) + 'px', marginTop: '-' + Math.round(scaleY * selection.y1) + 'px' }); } $(document).ready(function () { $('&lt;div&gt;&lt;img src="http://jotform.org/demo/jquery-image-area-select-plugin/images/sweet-dogs.jpg" style="position: relative;" /&gt;&lt;div&gt;') .css({ float: 'right', position: 'relative', overflow: 'hidden', width: '100px', height: '100px' }) .insertAfter($('#ferret')); $('#ferret').imgAreaSelect({ aspectRatio: '1:1', onSelectChange: preview }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;img src="http://jotform.org/demo/jquery-image-area-select-plugin/images/sweet-dogs.jpg" id="ferret" style="height:200px;width:300px;"&gt; &lt;/body&gt; </code></pre> <p>I am able to create Imgareaselet .seleced image showing in new div but i have problem in moving selected area.I hope you understand my question.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload