А если так:
<div class="ololo"></div>
<div class="ololo"></div>
<div class="ololo"></div>
<div class="ololo"></div>
<div class="ololo"></div>
var a = document.getElementsByClassName('ololo')
for(i=0;i<a.length;i++) {
setTimeout (function(){document.getElementsByClassName('ololo')[i].style.display='none';document.getElementsByClassName('ololo')[1].style.display='block';},1000)
setTimeout (function(){document.getElementsByClassName('ololo')[i].style.display='none';document.getElementsByClassName('ololo')[2].style.display='block';},2000)
setTimeout (function(){document.getElementsByClassName('ololo')[i].style.display='none';document.getElementsByClassName('ololo')[3].style.display='block';},3000)
setTimeout (function(){document.getElementsByClassName('ololo')[i].style.display='none';document.getElementsByClassName('ololo')[4].style.display='block';},4000)
setTimeout (function(){document.getElementsByClassName('ololo')[i].style.display='none';document.getElementsByClassName('ololo')[5].style.display='block';},5000)
}