Change the attribution to the Taga



  • There's a tag. <img src="/image123h100w100.jpg">♪ Like jquery h100w100h200w200 After the pages are downloaded?



  • <img src="/image123h100w100.jpg" class="needs-higher-resolution" />
    
    $(document).ready(function(){
    
      $(".needs-higher-resolution").attr("src", function(index, src){
        $(this).removeClass("needs-higher-resolution"); // optional
        return src.replace("h100w100", "h200w200");
      });
    
    });
    

    Grundy - http://api.jquery.com/attr/#attr-attributeName-function




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2