title: jQuery.attr('src') replace not working in FF
body: <p>Strange issue. This code is working perfectly in Chrome / IE. However it does not work in FF 3.6 for some reason. Console shows no JS errors.</p>
  
  <p>It is supposed to look for all images with a specific src attribute and on hover replace the src (I am aware of other approaches like css hover etc, there is a reason why I use this technique - it's not simply rollovers, it's animated video thumbs).</p>
  
  <pre><code>$("img[src*='libraries/phpthumb/phpThumbYT.php']").each(function(){
  var t=$(this);
  var src1= t.attr('src'); // initial src
  var old_src = src1.substring(src1.lastIndexOf('media/'), src1.lenght);; // extract old source attr    
  var media_id = old_src.substring(6,8); // extract media ID (directory name)
  if ( old_src.indexOf("animation=1") != -1 )
  {
      t.hover(function(){
          // on hover
          $(this).attr('src', 'libraries/phpthumb/phpThumbYT.php?w=131&amp;h=92&amp;far=C&amp;iar=1&amp;sfn=3&amp;zc=C&amp;f=gif&amp;src=http://domain.name/media/'+media_id+'/preview.gif');  
      }, function(){
         // on rollout
          $(this).attr('src', src1);
      });
  }
  });
  </code></pre>
  
  <p>I suspect that there might be a problem with the selector maybe? Any ideas?</p>