Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Gallery loop on back button function when only 2 images in gallery

Edrol97

Bronze Coder
Hi all,

Details for this are that the loop function works on the forward arrow function, whereas it doesn't work on the back button functon. The code I use for the gallery is the same as all others and is below.


HTML:
 <div class="slide-show_10container">
                <div class="next_button" onclick="NextImage()">
                  <img src="img/background/right-arrow.png" />
                </div>
                <div class="previous_button" onclick="PreviousImage()">
                  <img src="img/background/left-arrow.png" />
                </div>
                <div class="close_button" onclick="CloseLightbox(10)">
                  <img src="img/background/close-button.png" />
                </div>
                  <div class="image_slide10 responsive">
                    <img src="img/New%20Contemporaries/Gallery%20View.png"
                    width="600px"/>
                    <div class="title_text">Into the Gallery Photo copyright: Andy Stagg.</div>
                    </div>
                <div class="image_slide10 responsive">
                  <img
                    src="img/New%20Contemporaries/Boris%20Can't%20Get%20Clean%20web.png"
                    width="600px"
                  />
                  <div class="caption_text">
                    <span style="background-color: white"
                      >A piece I made for I don't know what reason, and yet it's still valid today. Alexander Boris de Pfeffel Johnson everybody! Photography Copyright: Andy Stagg</span
                    >
                  </div>
                </div>
 

New Threads

Buy us a coffee!

Back
Top Bottom