Displaying a gif before a page loads for a fixed amount of seconds
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?
Use setTimeout and call the function that shows content and hides loader in setTimeout, not in window.onload.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)