title: width returning 0 in jquery
body: <p>i have some jquery script which runs after the window has loaded</p>
  
  <pre><code>$(window).load( function() {
     $('.picture a img').each(function(index) {
         $(this).height(280);
         if ($(this).width() &gt; $(this).height()) {
            alert("yes");
         } else {
            alert("no");
         }
  
     });
  });
  </code></pre>
  
  <p>i always get a "no" from this when i know some of the images should be a "yes". When i trace the script in chrome i noticed that the <code>$(this).width()</code> always returns a 0. ive googled around and some suggestions were that the images havent loaded but here ive used the <code>window.load</code> method which i thought should run once everything has loaded. any ideas??</p>
  
  <p>thanks for any help in advance</p>