Posted by flamer die.spam@hotmail.com on 10/25/06 21:27
Laurent Haan wrote:
> This effect can't be realised by only using PHP, since PHP is a
> server-side language and the loading screen appears client side.
> Yet, it is possible to achieve such an effect by using javascript and
> CSS and having php invoke the necessary functions to enable/disable the
> loading screen.
>
> What you need to do is design the loading screen in css and hide it
> initially. As soon as you start the section in php where the loading
> screen is ment for, you send the html code to the client that invokes
> the javascript function that displays the loading screen. Finally, at
> the end of the php script, you send the invokation to the javascript
> function that hides the loading screen again.
>
> I hope this helps.
How about an animated gif.. but really.. do users want to see a loading
screen??
Flamer.
[Back to original message]
|