hex=255 // Initial color value.

function fadetext(){ 
if(hex>064) { //If color is not black yet
hex-=3; // increase color darkness
document.getElementById("fadetext").style.color="rgb("+hex+","+hex+","+hex+")";
document.getElementById("fadetext2").style.color="rgb("+hex+","+hex+","+hex+")";
setTimeout("fadetext()",20); 
}
else
hex=255 //reset hex value
}
