Ok guys I am kind of puzzled on this one I have this script that “FADES IN” text on a white background to black text. But the only thing is I would like to fade in white text from a black background. Right now the script “FADES OUT” white text from a black backgroud?
I think maybe the style.color=”rgb part of the script has to be changed but to what?
Thanks
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title>Untitled Document</title>
<script language=”javascript”>
col=255;
function fade() { document.getElementById(“fade”).style.color=”rgb(” + col + “,” + col + “,” + col + “)”; col-=5; if(col>0) setTimeout(‘fade()’, 10); }
</script>
<style type=”text/css”>
<!–
body {
background-color: #000000;
}
–>
</style></head>
</head>
<body onload=”fade();”>
<p>
<span id=”fade”>This text will fade in.</span> But this text won’t.
</p>
</body>
</html>