<style type="text/css">
.hz {
margin: auto;
text-align: center;
text color: #D9470D; font-size: 16px; font-weight: bolder; line-height: 150%; text-shadow: #000000 0px 1px 1px;
}
</style>
<script>
$(function(){
var message = ['text1', 'text2'], $div = $('#text');
function show()
{ var text = message.shift();
message.push(text)
$div.text(text).fadeIn(1000, hide);
}
function hide()
{
$div.delay(400).fadeOut(400, show)
}
show()
});
</script>
<div class="hz" id="text">text0</div>