title: Jquery: .onload() function doesn't work in IE
body: <p>The problem is to check in javascript: if there is an image,to add the padding-left. So in Chrom, Mazilla, Opera that works fine, but <strong>onload function</strong> doesn't work in IE7/8, the rest of the script also works fine. </p>
  
  <pre><code>    img.onload = function () {
        $('#text_near_img').css('padding-left', 162);
  };
  
  $('#text_near_img').css('width', 300);
  </code></pre>
  
  <p>Thanks for any ideas.  </p>