ActiveDen

Auto image resize

143 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Germany
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
joomlaianer says

i need a javascript plugin that automaticly resizes the images depending on the monitor resolution.

is there a solution ?

355 posts
  • Envato Staff
  • Reviewer
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
  • Contributed a Tutorial to a Tuts+ Site
  • Beta Tester
+4 more
Philo01 staff says

You can use jQuery to get the width and height of the browser and use this data to resize images.

$(window).width();   // returns width of browser viewport
$(document).width(); // returns width of HTML document
$(window).height();   // returns height of browser viewport
$(document).height(); // returns height of HTML document
131 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 4-5 years
  • Ukraine
  • Author had a File in an Envato Bundle
  • Referred more than 2000 users
  • Bought between 10 and 49 items
  • Exclusive Author
+1 more
Semenov says
143 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Germany
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
joomlaianer says

thanks so much for your replys.

does this also work if i resize my current browser window ?

by
by
by
by
by