Re: How can I make a Loading... screen?

From: Date: Fri, 03 Aug 2001 12:22:32 +0000
Subject: Re: How can I make a Loading... screen?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61120@lists.php.net to get a copy of this message
On Wed, Aug 01, 2001 at 01:01:14PM -0500, Michael Champagne wrote: > I have a popup window that populates a table with rows from a database and it > normally takes about 15 to 20 seconds to load. Does anyone know how I can > display a 'Loading... Please Wait.' that will disappear once the data comes > up? > > Thanks in advance for any responses, > Mike > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net Hi, Here's the code that I use... Works in both IE and NS: ============[ code ]============ <HTML> ...<header and stuff>... <BODY onload=" if (IE) { wait.style.display = 'none'; } else { document.layers['wait'].visibility='hidden'; }"> <DIV style="position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: wait;" id="wait"> <TABLE border="0" width="100%" height="100%"> <TR> <TD width="100%" valign="middle" align="center"> One moment please... <BR> <BR> <BR> Loading directory listing </TD> </TR> </TABLE> </DIV> ...<the rest of the page (reason of wait screen) >... </BODY> </HTML> ==========[ end code ]========== NOTE: You should change 'if (IE)' to something usefull. If you just copy/paste this code, you'll get a javascript-error because IE isn't defined (it is on my site, :-)). Hope you can use this! -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#61120) next »