I am running a horizontal website. I have a gallery which shows only one picture. For not having to refresh the whole page when changing the displayed picture, I used jQuery fadeIn, load and fadeOut. This worked nice in Safari, but in Firefox it jumps to the left edge of the page. So I googled the problem, and I tried to give the parent div a fix width & height and position:relative, while the swapped div also got a fix width/height and position:absolute. This didn't work. I found a blogpost where a similar problem was described and the solution shall be to use fadeTo. Now this is my code and it doesn't work either:
$("#gal").fadeTo(200, 0, function () {
$("#gal").empty().load(galleryimage,false).fadeTo(200, 1);
});
Where is my fault? Greetings!