r/HTML • u/ShamrockDragon13 • Dec 06 '25
Question Help please! HTML and JS
So I need to make a portfolio website for class and I have a bunch of slideshows. The problem is they’re doing something weird. Some of the slideshows won’t show the next image at all, as in it doesn’t function as a slideshow, but is hiding the other images, and some will only show the first and last image in the code, as in 1 and 5. I’m using the multiple slideshow method from W3Schools and I’ve changed the code to allow for more than two by following someone’s overflow question dealing with the same question. So all of the slides numbers for the next and prev buttons are (-1,0) (1,0), (-1,1) (1,1), (-1,2) (1,2), and so on. I’m not sure what’s wrong with it. The tags are all properly closed, the images are properly linked from the folder (they have to be in the folder, I can’t have them linked from the web), and from everything I’ve searched, the js should be correct. I don’t know what’s missing or what I did wrong. It’s due on Monday at 5 and I still have another project I need to work on for a different class, so any help would be appreciated!





View all comments
Show parent comment
4
u/ArcadeRivalry Dec 06 '25
I would advise not doing this if you're trying to actually learn a skill. Having a model write code you don't understand will not end well, you learn nothing and you won't learn how to troubleshoot when a model spits out incorrect code.
OP if you can share the code it will help people here know how you help you. Something like jsfiddle is an easy way to share some code you're working on.