Text Fader 1

<script type="text/javascript">

arr=[
"A now for a silly rhyme",
"One fine day in the middle of the night",
"Two dead men got up for a fight",
"Back to back they faced each other",
"Drew their swords and shot each other"
]

pause=2

step=1
opac=0
timer=""
count=0

function txtFader1(){
fadeEl=document.getElementById("fadediv1")
fadeEl.innerHTML=arr[count]
opac+=step

if(fadeEl.filters){
fadeEl.filters.alpha.opacity=opac
}
else{
fadeEl.style.opacity=(opac/100)-0.001
}

timer=setTimeout("txtFader1()",10)

if(opac>=100){
clearTimeout(timer)
opac=100
step=-step
setTimeout("txtFader1()",pause*1000)
return
}

if(opac<0){
clearTimeout(timer)
step=-step
count++
if(count==arr.length){
count=0
}
txtFader1()
}

}

// add  onload="txtFader1()" to the opening body tag

</script>

<div style="width:350px; border:4px solid #647369;background-color:#a6b0a6">
<DIV id="fadediv1" style="width:350px; filter:alpha(opacity=0); opacity:0;color: #647369"></DIV>
</div>