Posted By

onefastsnail on 05/24/12


Tagged


Versions (?)

placeholder images


 / Published in: Other
 

  1. $(document).ready(function(){
  2. $("img").each(function(index){
  3. var src = $(this).attr("src");
  4. var src = "http://placehold.it/"+$(this).width()+"x"+$(this).height();
  5. //var src = "http://lorempixum.com/"+$(this).width()+"/"+$(this).height();
  6. console.log(src);
  7. $(this).attr("src", src);
  8. });
  9. });

Report this snippet  

You need to login to post a comment.