Change img src to css background in a loop

Change img src to css background in a loop

Hi,
i receive 10 img from a RSS feed.
I'd like to take the img src and put it in a css background's container (a)
Here's what i write
$(document).ready(function(){
    $(".ffffound p a ").each(function() {
        $(this).css("background","url(' + $(this).img.attr("src") + ') no-repeat 0 0"  );
        $(this).img.remove();
    });
});

As you can see, i'm totally null in coding (javascript nor jquery).
Can you help please ?