Skip to content Skip to sidebar Skip to footer

Carousel Not Displaying Image

I have a carousel that is not displaying the images upon loading the webpage for some reason. I am working in dream weaver and for some reason the JS function only kicks in after c

Solution 1:

Just try loading your JS after the HTML.

Check out the difference here:

  1. https://jsfiddle.net/vy9uwxhk/ - look at the console for the error. As it's not finding the appropriate HTML, the code execution stops and results in non-working of the carousel.
  2. https://jsfiddle.net/6k92zvze/ - here the <script> is loaded after the HTML and as it finds the HTML, the execution is successful and the carousel works fine.

Hope this helps. Here's more info on where to include your script tags.

Post a Comment for "Carousel Not Displaying Image"