
| Home | Login | Sitemap | Contact us | Privacy Policy | Motivational Stories | ||
|
|
|
| Twitter | Facebook | Yahoo | Google | Firefox | Gmail | Security | Tools | more.. | ||
Javascript Preloader for WebpagesDid you notice the preloader that says .. "Page loading..." with the animated GIF preloading image while this page was getting loaded? Missed it? Ok, please refresh this page once more. This preloader is designed to let your visitors know that the webpage they are about to see is getting loaded. The preloader will automatically terminate once the loading of the webpage is complete. This gives a bit of relief to the visitors from the frustrating delays and let them know that the whole loading process is going on. Here is the trick to do that. (I have tried to keep the HTML code as simple as possible and hence I have used a table inside the main div. Please replace it with div too if you wish.) Case #1: If you want to use the preloader for the whole websiteStep #1
Step #2 Now replace the <body> tag with: <body onload="is_loaded();">
Step #3
Thats it! From now on your visitors will get a preloader while a webpage gets loaded. Also note that inside this preloader I havent included any animated gifs, flash movies, etc. to make the process fast enough. Case #2: If you want to use the preloader for a particular webpageInstead of inserting the html code (as in Step #3 ) in the main index page, insert it inside the webpage. OR .. say you wish to use this preloader for pages /page-1/ and /page-2/
|
Have a question? Feel free to send me your query and I will try to answer you back!
|
||||||