$(function() {
  $('#container a.pics').click(function() {
     var temp = $(this).attr("href");
     $('#container span.spanPict').html("<img src='"+temp+"' />");
     return false;
  });
});