5/23/07

lightbox with slideshow

Lightbox is very cool (I know it's hated by some), but you have to click mouse to view next image.

Why not make it run by itself, like a slideshow.

Googling didn’t turn out anything useful, so I added a few lines of code to lightbox.js to make it run slideshow.

If you have lightbox, replace your js/lightbox.js with lightbox-ss.js, and you’re ready to go.

Demo is here.

5 comments:

Anonymous said...

Great option, btw, can the page have a separated link to run a slideshow which leave normal lightbox effect on the photos?

Michael Raj said...

its fine... i got what i need

Anonymous said...

AWESOME DUDE I JUST SPENT LIKE AN HOUR GOOGLING AND TRYING TO FIND THE RIGHT CODE. I WISH I HAD COME TO THIS SITE FIRST. SORRY FOR "SHOUTING" BUT YOU MADE ME SO HAPPY WITH THIS CODE THANK YOU!

Paul said...

I made some changes to another modified version of the script by Fabian Lange so that it would automatically display images in the maximum size possible, using the browser width and height and I would like to add similar slideshow functionality to the script, but I don't know how to reference it in order to make it work. If you could point me in the right direction to make that happen I would be eternally grateful. Here's a link to the modified version of the script that I created with your code at the bottom, patiently waiting to be implemented...

Thanks in advance,

Paul
realto619(at)gmail.com

Leo said...

Thanks for this, precisely what I'm after :)