Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript How can I fix this code?

tphelps1993

New Coder
Good afternoon,

I seem to be having some problems with my codepen.io pen. I followed a tutorial to the T to get this code to work and it still doesn't seem to work correctly.

Would someone mind taking a look at this to see what the problem is? Thank you.


Very Respectfully,

Taylor Phelps

-EDIT-
This is the link to the tutorial that I followed. It was posted in 2017 so I highly doubt that it's a version issue.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

I am trying to create a banner that rotates through 3 different images as well as create arrow buttons that iterate forward and backward through the images.
 
Last edited:
What is it about it that's not working?

Specifically, I can see line 92 of the pen you linked to has a missing closing brace "}". This makes the banner work going forward but it bugs out on pressing the previous button. Is it the looping you need help with or was it simply spotting the syntax error?
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom