The version of Slimbox used on that page is specifically designed not to work on mobiles. It detects them and so does not initialize its links. Instead, clicking on the trigger will show the image. Not much good for the setup there where multiple images are linked to a single trigger. But the script may or may not work well or at least acceptably on mobiles, to find out, modify it here:
Code:
// AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
jQuery(function($) {
$("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) {
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
});
});
}
Using a text only editor like NotePad, in slimbox2.js comment out the if line and the closing bracket (red, two places):
Code:
// AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
//if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
jQuery(function($) {
$("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) {
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
});
});
//}
Save and use that version. The page will need to be refreshed to see changes and the browser's cache might need to be cleared as well.
If that doesn't work out, it might not - the author(s) of the script didn't think it would work with mobiles, otherwise they wouldn't have that there in the first place, you will need a different script.
Someone I was working with in here a little while back was using an older version of Lightbox which Dynamic Drive still has on file:
http://www.dynamicdrive.com/dynamici...box2/index.htm
She said it worked with mobiles. It requires a different script library though (Prototype/Scriptaculous), not jQuery, so will be tricky integrating with your other jQuery script. But that can be done. First check to see if it works with your mobile device(s). There is also the most recent version of Lightbox, which does use jQuery:
http://lokeshdhakar.com/projects/lightbox2/
so you should try it out as well, just to see.
Finally (if none of that works out) you can Google:
lightbox mobile
There will be solutions. I'm not sure if any of them are free though.
Bookmarks