Progress bar on page load
When We type my web site url in address bar and press enter or go button...first progress should come untill whole page is not loaded.Actully i tried more time but when progress bar disappear my whole page not loaded..plz reply soon ..
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sunny SharmaRank #223 · 11.1K reputationPosted Jun 14, 2013, 11:38 PM EDT
I suggest you to follow this pattern:
-----------------------------------------
//Page Contents Goes Here...
--------------------------------------------------------------
The trick behind the scene is, the main div "ContainDiv" is hidden by default and PreLoader Div is shown with a GIF image ("could be anything from text, image, etc.).
As soon the page loads, onload event gets fired and it sets the display property of PreLoader to none and ContanerDiv to block, that's it. Cheers!
Do mark this as answer if it helps.
Happy Coding:)
Thanks
Saurabh Bhardwaj10 reputationPosted Jun 15, 2013, 12:02 AM EDT
Sunny SharmaRank #223 · 11.1K reputationPosted Jun 15, 2013, 12:29 AM EDT