Moderator's Note:
As part of our automatic spam filters, posts on this topic might be automatically moderated. That means your post might not show up right away. Please be patient, a moderator will approve it (make it visible) as soon as they notice it and have a few moments to do so.
First thing is to try the demo page of the script:
http://www.lokeshdhakar.com/projects/lightbox2/
if that has the same problem, then it's a problem with the script.
There's a good chance that's your answer though because I've seen around the web where these box type scripts have problems in mobile devices.
One option would be to disable lightbox for mobile devices. That's the approach taken by slimbox:
http://www.digitalia.be/software/slimbox2
In fact, If that's the approach you want to take, I would recommend changing to it, and using the live load invocation introduced here:
http://www.dynamicdrive.com/forums/blog.php?b=247
However it's done, disabling the box for mobile devices will result in users of those devices being taken to the image from which they can easily use the back button of their browser to return to the main page.
If you want to do this with lightbox 2.05, edit lightbox.js. At the end add the highlighted as shown before the very last line:
Code:
}
return [pageWidth,pageHeight];
}
}
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent))
document.observe('dom:loaded', function () { new Lightbox(); });
I'm pretty sure this is a common problem though, so some Googling might find you a solution, if not for lightbox, perhaps with other box type scripts.
Bookmarks