views:

41

answers:

2

For some reasons, unknown to me, prettyPhoto is loading images in reverse. It opens the last picture first and then as you can guess, you're given the option to see the previous photo all the way back to the first photo. I've setup prettyPhoto according to the documentation however I'm not getting the desired effect. Not sure what I'm doing wrong.

Here's a working copy: radiant.dreamhosters.com

A: 
theGoose
That's pretty darn clever! I wish I had checked this earlier :)I traced the problem back to position:absolute; and how it was stacking images and creating a Last In First Out scenario, just like you explained. My solution (+mistake) was to simply take out the class tag from the remaining images and it worked as advertised. They shouldn't even be there at the first place :D
Allison Reid
A: 

Hi there,

I see that you want only on thumbnail per gallery. To achieve this result, the API would be a better choice. Look for the "Public API" documentation under that page: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/documentation/

images = ['images/fullscreen/image1.jpg','images/fullscreen/image2.jpg','images/fullscreen/image3.jpg']; titles = ['Title 1','Title 2','Title 3']; descriptions = ['Description 1','Description 2','Description 3'] $.prettyPhoto.open(images,titles,descriptions);

Hope this help :)

scaron