Funziona!!!
Ti posso chiedere un altra cosa?
Se volessi abbinarlo ad un bottone, in modo che appaia solo cliccando come faccio?
Il codice che ho è:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento senza titolo</title>
<script>
function closeoverlay() {
document.getElementById('overlay').style.display = 'none';

}
function openoverlay() {
document.getElementById('overlay').style.display = 'block';

}
setTimeout('closeoverlay()',2);
</script>
</head>


<body onload="setTimeout('openoverlay()', 2000); setTimeout('closeoverlay()', 50000);">
<div id="overlay" style="position:absolute; background: #e0e0e8; top:20px; left:100px; width:452px; height:200px; z-index:100; display: block;">
[ X ]
</div>


</body>
</html>


grazie mille