0
How to change background-image of a css element using JavaScript
I have a section and i want to change the background-image of it every 5 seconds , the images will be in array called img. i've tried selecting the section and the use .style.backgroundImage but it didn't work any idea will be helpful thanks
2 Réponses
+ 3
please use search bar.
https://www.sololearn.com/discuss/4178/?ref=app
https://www.sololearn.com/discuss/2442349/?ref=app
https://www.sololearn.com/discuss/138639/?ref=app
https://www.sololearn.com/discuss/263705/?ref=app
https://www.sololearn.com/discuss/630790/?ref=app
https://www.sololearn.com/discuss/1831508/?ref=app
0
Here can you see live how:
https://code.sololearn.com/WSLZPpBIFgr7/?ref=app