+ 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.....
8 Réponses
+ 13
here is a code you can study as an example:
https://code.sololearn.com/WaXRKsxGx3v9/#html
+ 11
what is the JavaScript code you have so far?
+ 4
There's an "=" sign in front of the "src" attribute, remove that and try again.
+ 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
+ 1
@Gavin...wouh, i forgot to delete it, i was trying to make an id...
0
@cruz...if had them, i couldn't ask for help
0
thanks...i'll check out@Amar
0
Thank u Cruz...i hope this cloudy condition in my brain is goin to perish....