define the image size as% of js

time

Active member
Code:
<script type="text/javascript">
    $(document).ready(function(){
    $('.block_img_1').resizecrop({
      width:372,
      height:200,
      vertical:"top"
    }); 
$('.block_img_2').resizecrop({
      width:250,
      height:200,
      vertical:"top"
    }); 
$('.block_img_3').resizecrop({
      width:203,
      height:200,
      vertical:"top"
    }); 
$('.block_img_4').resizecrop({
      width:203,
      height:200,
      vertical:"top"
    }); 
$('.block_img_5').resizecrop({
      width:203,
      height:200,
      vertical:"top"
    }); 
  }); 
</script>

js defines the image size in pixels, how can I define the image size in %

Thanks
 
It's not supported by the jQuery plugin. If you want to change it, you can attempt to directly modify the source, but I'm not sure that will work 100% correctly.
 
Top Bottom