bubazoo Posted November 18, 2006 Share Posted November 18, 2006 Hey guys,I've seen on some websites, where they have a box that comes up that says something like"one moment please" while the page is loading, then disappears when the page is done loadinganyone know how this is done? thanks Link to comment Share on other sites More sharing options...
ATM Posted November 18, 2006 Share Posted November 18, 2006 I'm not really sure but It could be something to do with the "onload" function? Link to comment Share on other sites More sharing options...
bubazoo Posted November 19, 2006 Author Share Posted November 19, 2006 I'm not really sure but It could be something to do with the "onload" function?onload alone wouldn't tell when the page is done loading though. I've seen a few pages like this around. Link to comment Share on other sites More sharing options...
boen_robot Posted November 19, 2006 Share Posted November 19, 2006 Simply put the message at the start of the body and with "onload" execute a script that will remove it from the DOM tree. Scince there's no DOM tree before the whole document is loaded, the message will be hidded after the page has finished loading.There's a bit of a problem for accessability here though. With JavaScript turned off, the message will remain after the page has finished loading. Link to comment Share on other sites More sharing options...
MinusMyThoughts Posted November 19, 2006 Share Posted November 19, 2006 the only pages i've seen that look like that are redirect pages (which aren't actually waiting for the page to load) and flash pages......i'd be interested to see a non-flash preloader.love,jason Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now