December 3, 200917 yr As the sub-title suggests, I'm looking for a jQuery lightbox plugin that caters for users who cannot use a mouse and rely on keyboard input to navigate and control on screen behaviours. The lightboxes that I have tried will launch when an image anchor is tabbed to and activated by keyboard, but they all leave the user up a dead end with no way of navigating through images or closing the lightbox frame. I can't believe how often developers forget about users with limitations.
December 10, 200916 yr Author It looks like there's a gap in the jQuery "market", then... This is an important issue, too, so I can't entirely believe that no-one has ever bothered to address it.
December 10, 200916 yr That is a tricky one, and if I'm honest, haven't noticed that particular accessibility issue, but the lightbox should be able to be closed using the Esc key. On the other hand, javascript isn't currently 100% accessible anyway so I'd ask if the lightbox is absolutely necessary - you could use simple links to images.
December 10, 200916 yr Both of these offer that accessibility: http://www.huddletogether.com/projects/lightbox2/ http://www.shadowbox-js.com/ Cheers!
December 10, 200916 yr Author That is a tricky one, and if I'm honest, haven't noticed that particular accessibility issue, but the lightbox should be able to be closed using the Esc key. On the other hand, javascript isn't currently 100% accessible anyway so I'd ask if the lightbox is absolutely necessary - you could use simple links to images. Yes, you'd think that they would respond to the Esc key, but so many don't. Responding to arrow keys (for multiple images) is even harder to find. Yes, it's obviously true that JS isn't fully accessible in all circumstances. I would pretty much refuse to use it to deliver any content that is not also available without JS (my pet peeve is JS form manipulation that fails to degrade gracefully, for example), but it doesn't harm accessibility to enhance the display of images, as long as it can cater for any and all users who can see the images and would normally access them in another way, be that clicking a link or tabbing around the page. Lastly, it can be described as necessary if the client wants it, which is the case here, so I have to reconcile their needs with my principles.
December 10, 200916 yr Author http://www.huddletogether.com/projects/lightbox2/ http://www.shadowbox-js.com/ I have seen the previous version of Lokash Dhokar's Lightbox - wasn't aware of version 2 - but it doesn't meet one of the requirements in the title: jQuery. Standalone would be fine, too, but this one requires Prototype and Scriptaculous, which is heavy overkill. The second suggestion, however, looks very well developed and seems to fulfil all of my requirements. Thanks for that one.
January 8, 201115 yr it's actually a very easy thing to do in any case, if you have experience with jQuery. See this tutorial - http://pythoughts.com/how-to-create-a-beautiful-gallery-with-jquery-and-keyboard-functions
Create an account or sign in to comment