Results 1 to 4 of 4

Thread: Can this be done? if so could you tell me how? please.

  1. #1
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Can this be done? if so could you tell me how? please.

    Ok, I will try and make this come across as clear as I can.

    What I have is a quite heavy loading page, the people who would be visiting it know this, however the loading times are bugging me, I was thinking, Wouldnt it be nice if there was some script etc that would darken the webpage and show a loading gif until the page had reached either its full loading or about 70% ish. then disapear by its own accord.

    Is this possible? if so could you kindly tell me how?


    Kind Regards.

    Kieran

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    It really depends on what you are loading. There are CSS and JS ways to preload images, for example. Flash needs preloaders sometimes, and there are other options such as frames, or tabs, etc.

    What is it that is loading and we can help from there.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <body>
      <img src="loader.gif" alt="Page loading, please wait..." id="loader">
      <script type="text/javascript">
        document.body.style.display = "none";
        document.images.loader.style.display = "";
        onload = function() {
          document.body.style.display = "";
          document.images.loader.style.display = "none";
        };
      </script>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Dec 2007
    Location
    Ireland
    Posts
    31
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Smile

    Quote Originally Posted by k13r View Post
    Ok, I will try and make this come across as clear as I can.

    What I have is a quite heavy loading page, the people who would be visiting it know this, however the loading times are bugging me, I was thinking, Wouldnt it be nice if there was some script etc that would darken the webpage and show a loading gif until the page had reached either its full loading or about 70% ish. then disapear by its own accord.

    Is this possible? if so could you kindly tell me how?


    Kind Regards.

    Kieran
    Might the following example work for you... If so let me know and I will send you the code.

    www.clewbayangling.com

    Paul Clarke

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
  •