Hope this helps:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#wrap{width:500px;padding:10px;border:3px double #999;
font-family:arial,helvetica,serif;
font-size:20pt;text-align:center;margin:30px auto;}
#message{height:1%;color:#930;filter:alpha(opacity=0);opacity:0;}
</style>
<script type="text/javascript">
/*
Code Title: Dissolve Text
Author: Raymond Angana
Created: August 14, 2008
rangana in dynamicdrive.com/forums
This notice must stay intact for legal use
*/
var txt=['Leave only footprints behind...','The ultimate tropical beach villa.'],
init=0,i=0,k=0,speed=50,el;
function fade(){
init==0?i++:i--;
el.filters?el.style.filter='alpha(opacity='+i+')':el.style.opacity=i/100;
el.firstChild.nodeValue=txt[k];
if(i==100)init=1;
if(i==0) {init=0;k++;}
if(k==txt.length)k=0;
setTimeout('fade()',speed);}
window.onload=function(){el=document.getElementById('message');fade();}
</script>
</head><body><div id="wrap"><div id="message"> </div></div></body></html>
Bookmarks