Quote:
Originally Posted by thanser
maybe someone else has coded this before?
Thank you!
|
A basic demo:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title></title>
<style type="text/css">
#content{
display: none;
}
</style>
<script type="text/javascript">
window.onload=function(){
document.body.removeChild(document.getElementById('divLoading'));
document.getElementById('content').style.display = 'block';
}
</script>
</head>
<body>
<div id="divLoading"><img src="loading.gif" alt="" /></div>
<div id="content">
<h1>Put all you page content in this div</h1>
</div>
</body>
</html>