Hello, just need some insight on this please.

For instance there are two dividers. One is set up something like this.
<div id="1">something in here</div>
the other like this:
<div id="2">something else in here</div>

Is there a way to show whats in divider 1 after so many seconds and then close it and then show whats in divider 2 for the next seconds and close it. Then to start over? Is this even possible with javascript? If so, know any links I can read up on this with? Thank you very much.