0

I am trying to see if this javascript code for an image gallery as the option to click on the image to view next. Currently it is only set to go to the next image by clicking on the next/prev buttons. Any thoughts?

Source: http://threepointmotors.com/lytebox.js

Example: http://threepointmotors.com/NewsandEvents/CurrentNews/2012/smartElectricDriveCollection/tabid/226/Default.aspx

1 Answer 1

0

I see your page has the jQuery library included already, so it should be an easy task.

$('body').on('click', '#lbImage', function() { //when display image is clicked
    if ($('#lbNext2_Off').is(':hidden')) //check if it isn't the last image
        myLytebox.changeContent(myLytebox.activeSlide + 1); //move to next image
});
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.