Please Wait While I Load My Page   

Add Page Loading Time With Stylist Icon


  • Now You Can Show Your Visitors. How Long Your Blog Loaded . It Will Count In Second.With Stylist Loading Icon.  I Tried to  Make It Awesome With Some Icons . I   also Provide you some icons. 

If you wish you can add your own images.

Hope You Will Like It.



  • Lets Get To Work



  • Login To Your Blogger> > Template > Edit HTML> >Process>> Expand Widget Templates

  • Back Up Your Templates First


  • Search For (CTRL+F) </head>
  • Now Copy this Code Just Above Of  </head> Tag ..









<!-- page load timer -->
<script type='text/javascript'>
var d = new Date();
var starttime = d.getTime();  //Get the start time
</script>




  • Now Copy This Code Above Of </body> Tag






<!-- page load timer start -->
<script type='text/javascript'>
var d2 = new Date();
var endtime = d2.getTime(); //Get the end time
//Find the difference between the start and end times
var totaltime = (endtime - starttime)/1000;
//Round 2 decimal places
var result = Math.round(totaltime*100)/100;
//Output results to a &quot;P&quot; element
document.getElementById(&quot;loadtime&quot;).innerHTML = &quot;Page loaded in: &quot;+ result +&quot; seconds&quot;;
</script>
<!-- page load timer end -->




  • Save Your Templates...


We Did The Main Work
Now,
  • Go To Blogger > Layout > Add A Gadget > > HTML/Javascript
  • Paste following script and save it: 



<div id="loadtime">
<span style="color: #3d85c6; text-align: center;">Please Wait While I Load My Page&nbsp;</span><span style="text-align: center;">&nbsp;</span><span style="color: red; text-align: center;">&nbsp;</span><img src="https://s-static.ak.facebook.com/rsrc.php/v2/yb/r/GsNJNwuI-UM.gif" style="text-align: center;" /></div>



  • Save It!

Now .. Visit Your Blog 

 Like Below You Will Show you  Loading.... message 

Please Wait While I Load My Page   



You Can Change Your Text.. Can Change Color

You Can Also Add A Custom Image .. Of Your Own

I am Giving you some Loading Image. Right Click on it>>Copy Image URL>> And Replace The URL Above showing in red color  














Thank You . Be In Touch More Widgets Coming Soon 

0 comments:

Post a Comment

 

Tips Bee Copyright © 2012