vaibhavs Posted October 8, 2006 Share Posted October 8, 2006 Hi,I have an HTML page which is a bit huge (almost 50KB).On a slow internet connection it takes a while to load the page (about 7-10 sec).I would like to display a small splash screen with a message like "Loading page pls wait) as soon as the page is requested and then this window automatically closes when the page is fully loaded.Requesting for pointers / sample scripts using javascript / DHTML / CSS etc.Thank you in advance.regards,Vai Quote Link to comment https://forums.phpfreaks.com/topic/23371-please-wait-splash-screen/ Share on other sites More sharing options...
ToonMariner Posted October 9, 2006 Share Posted October 9, 2006 why is it so big????only method that is going to really help you here is ajax... OR cache the page if its db driven and only changes on regular basis (like hourly or daily) Quote Link to comment https://forums.phpfreaks.com/topic/23371-please-wait-splash-screen/#findComment-106043 Share on other sites More sharing options...
fenway Posted October 10, 2006 Share Posted October 10, 2006 Yeah, you could play some games with hidden DIVs and onload handlers, but just make the page smaller. Quote Link to comment https://forums.phpfreaks.com/topic/23371-please-wait-splash-screen/#findComment-106905 Share on other sites More sharing options...
vaibhavs Posted October 13, 2006 Author Share Posted October 13, 2006 Yes fenway. I need to play a bit with DIVs.Show DIV when the page is Loading and hide when the page has fully loaded.Can you help me on this a bit.Thank you in anticipation.Cheers,Vai Quote Link to comment https://forums.phpfreaks.com/topic/23371-please-wait-splash-screen/#findComment-108412 Share on other sites More sharing options...
fenway Posted October 13, 2006 Share Posted October 13, 2006 Well, you can have the actual page in a DIV with display:none, and toggle it on the BODY onload. Quote Link to comment https://forums.phpfreaks.com/topic/23371-please-wait-splash-screen/#findComment-108564 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.