Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" language="Javascript">
- $(function(){
- $('#cropbox').Jcrop({
- aspectRatio: 100/70,
- minSize: [200, 140],
- bgColor: 'pink',
- bgOpacity: .2,
- onChange: showCoords
- });
- });
- function showCoords(c){
- $('#x1').val(c.x);
- $('#y1').val(c.y);
- $('#x2').val(c.x2);
- $('#y2').val(c.y2);
- $('#w').val(c.w);
- $('#h').val(c.h);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement