• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

define the image size as% of js

time

Active member
#1
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
 

Jeremy

Well-known member
#5
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.