View Single Post
Old 11-16-2012, 04:08 AM   PM User | #2
minder
Banned

 
Join Date: Oct 2012
Posts: 81
Thanks: 0
Thanked 4 Times in 4 Posts
minder can only hope to improve
Quote:
Originally Posted by thanser View Post
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>
minder is offline   Reply With Quote