Click to See Complete Forum and Search --> : Page Loading


fvillena
07-11-2003, 06:31 AM
Hi Everyone

Looking for a script if possible that will stop a page from appearing until everything has downloaded.

On otherwords so that everything appears together, rather than in stages.

any help would be greatly appreciated.

Asch
07-11-2003, 08:59 AM
-----
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("ad all images that are on your page","");

-------

cheers

asch
:D

Webskater
07-11-2003, 09:07 AM
On the one hand you can usually do this on the server. In the Microsoft environment you set:
Response.buffer = true

On the client side, if I want to do this, I put the whole page inside a table thus:
<table id=wholepage style="display:none">
and in the onload event of the body put:
<body onload="wholepage.style.display = block;"