Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by Gexuma

  1. On 5/21/2021 at 11:58 AM, Ingolme said:

    There's no need to show the code that he wrote, it's the code that is on the tutorial page: https://www.w3schools.com/howto/howto_js_slideshow_gallery.asp

    The topic is asking how to put two of them on the page at the same time without duplicating the Javascript.

    I've answered this one already. The problem can be solved by attaching events using Javascript instead of as an HTML attribute.


    Thanks for the answer, I'll give that a go.

  2. I've been using a gallery based on this tutorial https://www.w3schools.com/howto/howto_js_slideshow_gallery.asp, and it works pretty well, but now I've tried to put two on one page and discovered that this doesn't work, as the variables become shared by both. This leads to them not being independent of one another. I've been trying to figure out a way to do this without creating new sets of variables and classes for each new slideshow on the same page, but I've had no luck. How would I go about efficiently making multiple slideshows?

  • Create New...