Utilizing the basic jssor slideshow
with thumbnails.
When loading my page, I fetch image captions and URLs in a JavaScript array. To incorporate them into jssor, I assigned IDs to the images and thumbnails, then added source attributes using JavaScript like so:
document.getElementById("image1").src = "img/photography/002.jpg";
document.getElementById("thumb1").src = "img/photography/thumb-002.jpg";
Although the slides load correctly in their designated areas, the green loading indicator of the slideshow continues to be active, making the slides seem like they're in the background. However, when directly providing the URLs in the img tags rather than through JavaScript, everything loads properly without displaying the green loading image.
If there are fewer than ten slides, how can I prevent extra thumbnail image borders from appearing? Also, how can I dynamically add more image and thumbnail elements in jssor using JavaScript if the number of images exceeds that limit?
Additionally, how can I use JavaScript to add captions to the jssor slideshow? I also require JavaScript and CSS code for jssor to allow the display of images in full size in an overlay upon clicking.
Since I'm not utilizing the jQuery version but JavaScript instead, I would appreciate solutions provided in JavaScript.