| Well your version isn't dynamicaly loading what ever pic is found in the directory.. It assumes theres alot of images all called 1.gif, 2.gif, 3.gif ..., N.gif
Yet the N isn't specified, so if you have 5 images, and you keep on pressing <next> it will eventualy display "Image not found", not stop when the end of your available images is reached.
As to your error, I havn't looked too much on the code, so at this point I have no solution for you. |