rjfrizz
7/4/2014 - 5:22 PM

replace portion of attribute

replace portion of attribute

// INCREASE PRODUCT IMAGE SIZE
/*
  $("img[src*='.jpg']").each(function(){
    $(this).attr('src',$(this).attr('src').replace('.jpg','.original.jpg')).error(function() {
	    $(this).attr('src',$(this).attr('src').replace('.original.jpg','.jpg'));
		});  
    }); 
*/
	
//]]>