Re: Loading message

From: Date: Thu, 25 Oct 2001 11:13:37 +0000
Subject: Re: Loading message
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72238@lists.php.net to get a copy of this message
the page won't ever showup unless the webserver finishes processing the PHP file, therefore the "Loading ..." will appear while the page is waiting for its component to finish loading (images, javascripts, flash files, ....) therefore what you're asking for has a javascript solution: 1)make a <div> with width and height about 1000 and absolute position w/ z-index=1000 2)add a body.onload event so that when the pages loads you hide that layer. 3)that layer can hold any text or tags as you want like: "Please wait...." this division's code: <div id='loadinglayer' style='left:0;top:0;width:1000;height:1000;position:absolute;z-index:1000;ba ckground:black'>Please wait....</div> <body onload='hidelayer()'> </body> <script> function hidelayer() { if(document.all) document.all['loadinglayer'].style.visibility="hidden"; else document.layers['loadinglayer'].visibility="hide"; } </script> hope that helps "Daniel alsén" <d@mindbash.com> wrote in message news:PGEGIELINOCCEHLENIOJMEPJCCAA.d@mindbash.com... > Hi, > > is there a easy way in php to display text like "Loading..." while elements > on a page is being loaded from the server? > > Regards > # Daniel Alsén | www.mindbash.com # > # d@mindbash.com | +46 704 86 14 92 # > # ICQ: 63006462 | # >

« previous php.general (#72238) next »