Resize all object of a div

Resize all object of a div

it is possible to resize all object  of div ( example img , text ... )  with one command only when te all object download 
I'use  for img  this code


$(document).ready(function (){
$(img).each(function(i) {
  var rap=($(window).height()/600);
  if (($(window).height()<=600)) {rap=1}
  if (($(this).width()>0)&& ($(this).height()>0)) {
  var w =  $(this).width()*rap
  var h = $(this).height()+rap
  $(this).css({ height: h, width: w });
}








but is image of  div not download this image no view 

TK