View Full Version : Loading in background..
07-22-2009, 10:47 AM
Is there anyway possible to do this? I would like to hide several <div> tags when the page loads, but put it on a timer so after the page is finished loading the fade in. In the meantime whilst the page is loading, a image is shown.
It's for a radio player i'm working on, the page takes around 5seconds to load fully, and so thought a loading image would be better to look at than half loaded <div> tags.
07-22-2009, 01:33 PM
That's actually quite easy to accomplish. Just style those divs with display:none, and in the window.onload handler set the style.display property back to "block" in order to show them, or just use whatever fading function you got there.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.