You need to have a set of div elements with the content. Hide all but one by setting the display CSS property to "none". To show, set it to "block". Then use setInterval for timing, so that every few seconds it rotates through the div elements one by one. To set one to show:
- elem.style.display = "block";
Alternatively, you can use classes and set the className.