Closed gpeth398 closed 8 years ago
What browser do you use
using google chrome
Could you describe the problem more specific?
I am making a portfolio website to show my school projects and I would like to have a main image for each project, that will open a lightbox for all the other images of that project. Right now when I click on the image link it goes straight to image 4 of 4 instead of opening image 1 of 4. All the images are there, but I have to click backwards to see image 3,2, and 1.
Which version of the lightbox you are using now? you can try to reverse the two code. lightbox.js : 381line preloader.src= this.album[imageNumber].link; 382line this.currentImageIndex = imageNumber; Reverse the two code like this: lightbox.js : 381line this.currentImageIndex = imageNumber; 382line preloader.src= this.album[imageNumber].link;
I am currently using version 2.8.2. I tried reversing the two lines around but there was no change.
Do you use Bootstrap in your program?
yes i do
Your a Tag is missing ">" .
Can you be more specific? Which line and where should ">" be?
Inside the picture.
a
tag
i figured it out:) thanks for the help!
No need to thank!
Closing out old issues.
Good to see the situation resolved. Team work! 👍
I used your tutorial and got ligthbox2 to work on my website. However, it loads my last image first. So when I click on the link it will start at image 4 of 4. I have read other posts with this issue, but am having a hard time making sense of them. I have attached an image of my code, can you help me out?