SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot the_master's Avatar
    Join Date
    May 2001
    Location
    Google Earth
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript question

    Does anybody have the javascript that allows to
    not-to-show the page until it's not loaded completely?
    NicheStars - microblogs-network-cms for serious niche marketers.
    Maintain 1000s of blogs on 100s hosts from SINGLE CONTROL PANEL!

  2. #2
    SitePoint Columnist Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds like a horribly bad idea to me - users on a slow connection are likely to just surf off somewhere else if they don't see evidence that a page is loading.

  3. #3
    SitePoint Zealot the_master's Avatar
    Join Date
    May 2001
    Location
    Google Earth
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there were many factors that forced me to use it...
    so, do you have the script?
    NicheStars - microblogs-network-cms for serious niche marketers.
    Maintain 1000s of blogs on 100s hosts from SINGLE CONTROL PANEL!

  4. #4
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey,

    There are two ways I see to approachign this. One would be to start out with HTML like:

    <body style="display:none">

    And then go like:

    <script>
    window.onload = function(){
    document.body.style.display = "block" //might be inline...check HTML 4.01 specs
    }
    </script>

    Or, surround everything in a hidden <DIV> and onload, make it visible.

    aDog


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
  •