Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display page when complete

Status
Not open for further replies.

c3media

MIS
Sep 24, 2005
47
US
How can I delay display of a web page until all of the components have been downloaded - rather then have the background display and then wait for each image to come down. thanks.
 
I would include a javascript

write everything into a div

Code:
<style>
.startHidden{
   display:none;
}
#loading{
   padding:1px 3px 1px 3px;
   background-color:#990000;
   color:white;
   display:inline;
}
</style>

<script>
function showdiv(show,hide){
   document.getElementById(show).style.display="block"
   document.getElementById(hide).style.display="none"
}
</script>

<body onload="showdiv('showmeonload','loading')">
<div id="showmeonload" class="startHidden">
wibble
</div>
<div id="loading">
Loading...
</div>
</body>

}...the bane of my life!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top