Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default Javascript Page Preloading

    Is it possible? ive seen it done with images, but can you do it with a whole page? If you can please post how to do it below.

    Thanks,
    Tom
    Lets set the stage on fire, and hollywood will be jealous.

  2. #2
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    what do you mean it loads the whole page before it shows it? if so then i would like to know too

  3. #3
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by JimboJosh View Post
    what do you mean it loads the whole page before it shows it? if so then i would like to know too
    Yes, where you go to 1 page and there is a javascript code on that page which loads the other page, so when you visit that page, it loads almost instantly.
    Lets set the stage on fire, and hollywood will be jealous.

  4. #4
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    1. rename your sites homepage to home.php
    2. make index.php a redirect page page
    3. insert a hidden div into the redirection page which contains your sites code
    4. make it redirect to your site in say 5 seconds?

    Its an idea!
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  5. #5
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Um, you can do it with an AJAX updater in scriptaculous.

    Just include the scriptaculous files, then add this to your head sect.

    HTML Code:
    <script type="text/javascript">
    <!--
    function load(url)
    {
    document.getElementById("Div ID to load into").innerHTML = "Loading...";
    new Ajax.Updater('Div ID to load into',url);
    }
    //-->
    </script>
    Then use the javascriptoad('URL to page'); as your links to a page.
    Coming and going...
    Highers are getting the better of me

  6. #6
    Join Date
    Dec 2007
    Posts
    412
    Tokens
    0

    Default

    So not a preloader, but more of an instant loader? EG, when you visit the site for the first time it would take a tad longer to load the other files, then when you navigate them they pop straight up?

    If that's what you mean I'll dig deep and hopefully produce something.

Posting Permissions

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