i have made a script which fades the document back ground to grey or whatever collor you want when the window gets inactive and fades back again when the window gets active again...
however, in the frame before the end of the fade another collor is shown which interrupt the smoothness of the effect.
here is the script and html..
go ahead and try it out and see for yourselves if it makes the whole thing easier...
____________________________________________________________
<html>
<head>
<script language="javascript">
function func1()
{
if(a!=99)
{
setTimeout("func1()",1);
a++;
document.bgColor='#'+'99'+a+a;
}
}
function func2()
{
if(a!=0)
{
setTimeout("func2()",1);
a--;
document.bgColor='#'+'99'+a+a;
}
}
</script>
</head>
<body onFocus="a=99;func2();" onBlur="a=0;func1();">
</body>
</html>



