website loading screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codyshea2000
    New Member
    • Dec 2008
    • 5

    website loading screen

    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

    Code:
    <div id="helpdiv" style="display:block">
    Loading...
    </div>
    
    <script type="text/javascript">
    // close the div in 5 secs
    window.setTimeout("closeHelpDiv();", 5000);
    
    function closeHelpDiv(){
    document.getElementById("helpdiv").style.display=" none";
    }
    </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.
    Last edited by eWish; Dec 25 '08, 02:44 AM. Reason: Please use the code tags
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    This is a javascript question.

    Comment

    • codyshea2000
      New Member
      • Dec 2008
      • 5

      #3
      website loading screen

      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

      [code=html]
      <div id="helpdiv" style="display: block">
      Loading...
      </div>

      <script type="text/javascript">
      // close the div in 5 secs
      window.setTimeo ut("closeHelpDi v();", 5000);

      function closeHelpDiv(){
      document.getEle mentById("helpd iv").style.disp lay=" none";
      }
      </script>
      [/code]

      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.
      Last edited by gits; Dec 25 '08, 09:40 AM. Reason: added code tags

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        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:

        [code=javascript]
        window.setTimeo ut(closeHelpDiv , 5000);
        [/code]
        kind regards

        Comment

        Working...