By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,341 Members | 1,395 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,341 IT Pros & Developers. It's quick & easy.

website loading screen

P: 5
how would i make text dissapear then the text on that page apears all on the same page i know how to make text dissapear like this

Expand|Select|Wrap|Line Numbers
  1. <div id="helpdiv" style="display:block">
  2. Loading...
  3. </div>
  4.  
  5. <script type="text/javascript">
  6. // close the div in 5 secs
  7. window.setTimeout("closeHelpDiv();", 5000);
  8.  
  9. function closeHelpDiv(){
  10. document.getElementById("helpdiv").style.display=" none";
  11. }
  12. </script>

But how can i make text apear after the loading screen gose away like the videos comes on the page after it says loading... please help me iv been looking for so long if you could give me a code that would be great thank you.
Dec 24 '08 #1
Share this Question
Share on Google+
3 Replies


drhowarddrfine
Expert 5K+
P: 7,435
This is a javascript question.
Dec 24 '08 #2

P: 5
how would i make text dissapear then the text on that page apears all on the same page i know how to make text dissapear like this

Expand|Select|Wrap|Line Numbers
  1. <div id="helpdiv" style="display:block">
  2. Loading...
  3. </div>
  4.  
  5. <script type="text/javascript">
  6. // close the div in 5 secs
  7. window.setTimeout("closeHelpDiv();", 5000);
  8.  
  9. function closeHelpDiv(){
  10. document.getElementById("helpdiv").style.display=" none";
  11. }
  12. </script>
  13.  
But how can i make text apear after the loading screen gose away like the videos comes on the page after it says loading... please help me iv been looking for so long if you could give me a code that would be great thank you.
Dec 25 '08 #3

gits
Expert Mod 5K+
P: 5,384
what text should appear then? please give an example for that - should the text be loaded dynamically from a database or do you have it already on the page? basicly you just need the opposite of what you have already ... so you set the display-css of a div to 'none' ... so to make another div visible just set the display property of that div to 'block' and one more note: don't use the eval-like syntax for the timeout ... it's just useless and ugly ;) ... use a function reference instead:

Expand|Select|Wrap|Line Numbers
  1. window.setTimeout(closeHelpDiv, 5000);
  2.  
kind regards
Dec 25 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.