...

View Full Version : While loop loading image



tyfeatherston
01-05-2008, 07:15 PM
I am try to make a script that WHILE the page is saving, it popped up with a loading image.

I have been trying this for an hour and cant get it to work.

Here is my base

while (page_i <=pages)
{

//This is where some script should go? I have the image(cmsloading.gif) in this //folder.

}

Thanks for your help.

Tyler

Inigoesdr
01-05-2008, 08:28 PM
You can't do that with PHP because the file is parsed, and the content is generated before it's sent to you. You should be able to accomplish that with Javascript.

mlseim
01-05-2008, 09:02 PM
What do you mean by a "page saving"?

If you mean a page loading on a user's browser,
and they're waiting for it to load, you could use
your animated .gif loading doo-hickey as a background
image in a <div> section. The last thing to load on the
page is an image that goes over the top of the <div>
background image.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum