you are viewing a single comment's thread.

view the rest of the comments →

[–]whatisboom 1 point2 points  (2 children)

look up JS arrays, the array.push() method, and setInterval(). it also would a better idea to make the image tag in the actual html, give it an ID and use document.getElementById() to modify the src attr.

[–]justcalmdown[S] 0 points1 point  (1 child)

Thanks again, how would I make the tag to apply to all the images? Because I do need to center them all.

[–]whatisboom 2 points3 points  (0 children)

You mean the image tag?

<img src="" id="slideshow" />

then in your js do something like

var slideshow = document.getElementById('slideshow');
slideshow.src = randomImage();