help me to make a slideshow for images using JS.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

help me to make a slideshow for images using JS..

<div id="slider"> <img =src="images/1.jpg" onload="slide()" width="200" height="100"> </div> checkout if that id, is supposed to be there or i messed up... other images names are 2.jpg and 3.jpg make two options...auto slide(anytime interval) with buttons and other codes for auto slide without buttons.....

29th Apr 2017, 4:43 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
8 Answers
+ 13
here is a code you can study as an example: https://code.sololearn.com/WaXRKsxGx3v9/#html
29th Apr 2017, 5:08 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 11
what is the JavaScript code you have so far?
29th Apr 2017, 4:54 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 4
There's an "=" sign in front of the "src" attribute, remove that and try again.
29th Apr 2017, 5:04 PM
Ghauth Christians
Ghauth Christians - avatar
+ 3
You can find slideshow tutorial on w3school.com under How To Tutorial. Once you figure out how that code works you will be able to adapt it for your needs. Edit: https://www.w3schools.com/howto/howto_js_slideshow.asp
29th Apr 2017, 5:07 PM
Amar
Amar - avatar
+ 1
@Gavin...wouh, i forgot to delete it, i was trying to make an id...
29th Apr 2017, 5:11 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
0
@cruz...if had them, i couldn't ask for help
29th Apr 2017, 4:56 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
0
thanks...i'll check out@Amar
29th Apr 2017, 5:12 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
0
Thank u Cruz...i hope this cloudy condition in my brain is goin to perish....
29th Apr 2017, 5:15 PM
Kelvine De Danielo
Kelvine De Danielo - avatar