SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Oct 2003
    Location
    UK
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Page to appear when all is loaded, how?

    Hi guys

    As the title says - how could I code my index to load without anything showing up until all is loaded, maybe having a "Please wait while loading"?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Is this a Flash intro or a regular HTML page?

  3. #3
    SitePoint Member
    Join Date
    Oct 2003
    Location
    UK
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    SitePoint Member
    Join Date
    Oct 2003
    Location
    UK
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I`ve nearl sorted this out now, I found this on a forum and it works well, I have one problem which I`m trying to sort out now, the screen still scrolls and you can see alittle under the layer, could someone have a look and maybe help me on how to solve it, anyway heres the code I used:

    Enter this inside the <head></head> tag

    <script>
    /********************************************************************************
    Copyright (C) 1999 Thomas Brattli
    This script is made by and copyrighted to Thomas Brattli at www.bratta.com
    Visit for more great scripts.
    This may be used freely as long as this msg is intact!
    ********************************************************************************/

    //Browsercheck
    n=document.layers
    ie=document.all

    //Hides the layer onload
    function hideIt(){
    if(ie || n){
    if(n) document.divLoadCont.visibility="hidden"
    else divLoadCont.style.visibility="hidden"
    }
    }
    </script>
    <style>
    #divLoadCont{position:absolute; width:100%; height:95%; top:0; left:0; background-color:white; layer-background-color:white; font-family:arial,helvetica; z-index:100}
    TD{font-family:arial,helvetica}
    </style>


    Insert this into the body tag

    <body onload="hideIt()" topmargin="5" bgcolor="#000064">


    Insert this below the body tag
    <script>
    //We write the table and the div to hide the content out, so older browsers won't see it
    if(ie || n) document.write('<div id="divLoadCont"><table width="100%" height="100%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle">hello this is the loading text</td></tr></table></div>')
    </script>

  5. #5
    SitePoint Member millsrd's Avatar
    Join Date
    Oct 2003
    Location
    Colfax, Washington, USA
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I truly love your loader, repeat visits are much faster, especially if the temp folder still has the swf in it I bet. I laughed out loud, good stuff.

  6. #6
    SitePoint Member
    Join Date
    Oct 2003
    Location
    UK
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And its not a swf, theres no flash on my site...lol :P


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •