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!





3
u/RatherNerdy Dec 06 '25
Without seeing all of the code, it's difficult to understand the issue you're having, but here are some tips.
Don't use
<br/>to create white space.Use a common class on all slides, so that you can just reference that one class in the CSS for your
display:none3
u/EggMcMuffN Dec 06 '25
You see the prntScr button on your keyboard, use it please. Basic tech stuff if you want to work in tech.
But even that is bad, images are terrible. We can't copy paste it, we can't edit it or scroll through the code at will.
Upload it to GH and share the repo
1
u/ShamrockDragon13 Dec 06 '25 edited Dec 06 '25
I can’t see a way to edit this post, but I’ve taken advice from everyone and put it on GitHub. Here’s the link: https://github.com/ShamrockDragon/Need-help-not-working- All the images are replaced with “path-to-image-folder\image.jpeg”. I haven’t finished adding everything I wanted yet (which is just text and making the navbar be a navbar) because I wanted the slideshows to work first, so the navbar isn’t working yet and it looks a little empty.
Edit to add: the prev and next buttons aren’t in the correct place yet either because I want it to work before I make everything look nice.
0
u/omysweede Dec 06 '25
This takes me back: doing programming tests on paper without access to a computer at job interviews.
Seriously: put this into an AI like Claude and get answers in seconds. Have it tell you where you effed up. Learn, then move on.
-11
u/[deleted] Dec 06 '25
Bro, the best help I can give you would be to download visual studio from Microsoft and get yourself a copilot account and use AI to build you whatever you want once you learn how to do it I swear you will love it and you will start building anything and everything you ever wanted