I have some problems with this script and I would appreciate some help to get it to work. First I fade out the old image and then I load the new image that in the same time fades in. The new image isn't replaced when I use the fade in!?
$("#image2").click(function () {
    $("#portfolio").fadeOut('slow', function () {
        $("#portfolio").attr("src", "Images/Portfolio/portfolio_strv.jpg", function () {
            $(this).fadeIn(400);
        });
    });
});
 
     
    