-- og du kan bare fjerne kaldene til minSpan OG span'en, når du har overbevist dig om at det virker:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>Tomt dokument</title>
<meta name="keywords" content="roenving,
http://www.eksperten.dk/spm/493806"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
</style>
<script language="javascript" type="text/javascript">
var strt = "fff",slut = "000",interval = 10;
var st,sl,act = total = timer = 0;
function setBG(){
document.body.style.backgroundColor = "#" + strt;
setTimeout('skiftBG("20")',60000)
}
function skiftBG(tim){
st = retRGB(strt);
sl = retRGB(slut);
if(!st||!sl)return;
if(!tim.match(/^\d*(\.\d+)?$/))return;
total = Math.floor(+tim*1000);
timer = setInterval('chgBG()',interval);
document.body.style.backgroundColor = "#" + strt;
}
function chgBG(){
act += interval;
if(act>=total){
document.body.style.backgroundColor = "#" + slut;
clearInterval(timer);
document.getElementById('minSpan').innerHTML = "";//denne linje fjernes
act = total = timer = 0;
return;
}
document.getElementById('minSpan').innerHTML = "Tid tilbage: " + (total-act) + " ms.";//denne linje fjernes
var rgb = new Array();
for(i=0;3>i;i++){
rgb[i] = st[i] + Math.round((sl[i]-st[i])*act/total);
}
document.body.style.backgroundColor = 'rgb('+rgb[0]+','+rgb[1]+','+rgb[2]+')';
}
function retRGB(txt){
txt = txt.split("");
if(txt.length==3){
txt[5] = txt[4] = txt[2];
txt[3] = txt[2] = txt[1];
txt[1] = txt[0];
}else if(txt.length!=6)return null;
var rgb = new Array();
for(i=0;3>i;i++){
rgb[i] = 16 * parseInt(txt[2*i],16) + parseInt(txt[2*i+1],16)
}
return rgb;
}
</script>
</head>
<body onresize onload="setBG();">
<form id="minForm" name="minForm">
<span id="minSpan" style="color:red"></span><!-- denne linje fjernes -->
<br><br><br><br><br><br><br><br></form>
</body>
</html>
-- og velbekomme '-)