Jump to content

Creating a "Now loading" screen for a game


Recommended Posts

Well, you could have two divisions, one to show while loading and the other to show after it has loaded.

<script type="text/javascript">window.onload = function() {document.getElementById('loading').style.display = "none";document.getElementById('content').style.display = "block";}</script><!-- ... ... --><div id="loading">Now Loading...</div><div id="content">All your content goes here</div>

Link to post
Share on other sites

window.onLoad() is after the page is loaded.Make sure that all your content is not displayed (via the stylesheet or whatever method you choose)Make sure only the id "loading" is the only thing that is displayed (do this via stylesheet or....)Add the code that Synook gave you and you're done... I think.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...