www.webdeveloper.com
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    2

    Displaying a gif before a page loads for a fixed amount of seconds

    Hi all,

    I want to implement this on my website: http://article.onlinewebtool.com/sho...cript-and-css/

    However, I don't want the loading gif to just display until the page loads. I want the gif to display for a fixed amount of time.

    So, for example, if I want that loading gif to display for 15 seconds before the page is displayed, how do I do that?

    Thanks.

  2. #2
    Join Date
    Jul 2011
    Posts
    99
    Use setTimeout and call the function that shows content and hides loader in setTimeout, not in window.onload.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

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
HTML5 Development Center



Recent Articles