Code:
<script>
$(function() {
var images = ["chococat.gif","comic.gif","devil.gif","eye.gif"];
$('<img>').attr({'src':''+images[1],'id':'bg','title':''}).appendTo('#bg-wrapper').parent().fadeIn(1000);
$('.change').click(function(e) {
e.preventDefault();
var image = images[Math.floor(Math.random()*images.length)];
$('#bg').parent().fadeOut(800, function() {
$('#bg').attr('src', image);
$(this).fadeIn(800);
});
});
});
</script>