+ 1

I have created automatic slideshow only using javascript and html.it's showing only 2 slides instead of 5 ...please help

https://code.sololearn.com/W8QjZ2kL0BVk/?ref=app

24th Sep 2017, 12:56 PM
Aman Kumar
Aman Kumar - avatar
2 Answers
+ 12
You are calling divPlus() recursively by using the setTimeout() method inside that function, also you are not using an event to check if all DOM elements are ready to use and you did not call the divPlus() function. https://code.sololearn.com/WwYWtDYi7R9Z/?ref=app
24th Sep 2017, 1:14 PM
Maz
Maz - avatar
0
Thanks a lot.
24th Sep 2017, 1:59 PM
Aman Kumar
Aman Kumar - avatar