hab das mal hier nicht elegang gelöst leider ohne sehr dynamisches JavaScript.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<style type="text/css">
#loading-screen {
position: absolute;
width: 100%;
height: 100%;
background-color: black;
}
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: green;
}
</style>
<script type="text/javascript">
window.onload = function() {
alert("ende");
document.getElementById("loading-screen").style.display = "none";
}
</script>
</head>
<body>
<script type="text/javascript">alert("landen");</script>
<div id="loading-screen"></div>
<script type="text/javascript">alert("fertig");</script>
</body>
</html>
wenn dir was besseres enfällt, sehe es mir gern an :-).
Gruß