$(window).scroll(function(){
$('img').each(function(){
if($(this).attr("src") == ""){
if(($(this).offset().top +$(this).wisth()/2) < ($(window).height()+$(window).scrollTop())){
$(this).attr("src", $(this).attr("x-src"));
}
}
});
});
$('img').each(function(){
if($(this).attr("src") == ""){
if(($(this).offset().top +$(this).wisth()/2) < ($(window).height()+$(window).scrollTop())){
$(this).attr("src", $(this).attr("x-src"));
}
}
});
});