Skip to content
Advertisement

How to insert a photo from the database into the slider

There is a code that produces photos added to the database. I tried to insert this code into regular js sliders, but all I got was a bunch of photos superimposed on each other and a slider that didn’t work.

How can I make a slider out of this code?

JavaScript

Here is how the code looks when this script is in the slider

JavaScript

Advertisement

Answer

You should use JS to change the item.

JavaScript
JavaScript
JavaScript

PS: Image are taken randomly on imgur.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement