The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

static page ajax style preloader

I have simple static page with many images and would like to make that fancy ajax style preloader - some gif with "loading...".
Just to have one transparent div and that image before all images and page would be 100% loaded.

If i have understood, just have a div in a spcific location from the absolute top and left. And you can put one loading (i mean moving image) inside the div and make the div visibility false in default. And you have 4 different readyStates 1-4 in ajax, until the ajax readyState goes to 4, just make the loading div visible and make it again hidden whenever the readyState reaches 4.

If i have understood, just have a div in a spcific location from the absolute top and left. And you can put one loading (i mean moving image) inside the div and make the div visibility false in default. And you have 4 different readyStates 1-4 in ajax, until the ajax readyState goes to 4, just make the loading div visible and make it again hidden whenever the readyState reaches 4.