Hey Kevin!
Thank you very much for your answer.
I think I just understood some more about programming in jQuery and its behavior.
The whole sense behind my pause function was just some debugging issue.
My gallery works great as long as if all images have the same ratio and the same orientation as I don't have to calculate a new size to fit them into my browser window.
For example: 1200 x 800 pixels (3:2 - landscape). But if pictures taken in portrait mode come into play everything just gets a bit complicated. It's been quiet easy to come up with the needed calculations.
Google helped me a great deal to fix some javasript issues on the way.
But now I am kind of stuck, and I have no clue why that is.
When opening my gallery, everything works fine.
PHP reads my folders, generates my page, jQuery fits not only the size of the page itself but even the size of the first shown picture.
But when clicking on a picture featuring another ratio (3:2 -> 2:3 --> Landscape -> Portrait) something goes wrong. Only by clicking the thumbnail twice my picture gets shown right.
The numbers under the picture indicate that the size of the new image gets read wrong the first time my script runs, but why?
If anyone has any idea what went wrong and could let me know?
I would be very grateful as I am really frustrated right now.
The troubled gallery can be found under:
http://www.weserbild.de/neueGalerie/And here the link to the jQuery script:
http://www.weserbild.de/neueGalerie/eigene_skripte.jsThank you very much in advance to everyone who helps or tries to!
Many kind regards from Germany, Robert