This is another blogger trick through which a reader see a loading background during the page load and on complete of page load it disappears. This is jQuery Loading plugin for blogger. This plugin is available with many other animations. So have this plugin to your blog and make it look better.
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading7.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loaing2.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading9.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading8.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading5.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading4.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading3.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading1.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<div id='btat-loading'><div
id='btat-progress-bar'></div><div
id='btat-loader'>Loading...</div></div></b:if>
<div id='btat-loading'><div
id='btat-progress-bar'></div><div
id='btat-loader'>Loading...</div></div>
Steps To Add jQuery Loading Plugin To Blogger
- Login to your Dashboard.
- Go to Templates >>Edit Html.
- Find for </head> tag.
- Paste any of the below code just above it.
Loading.1
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading7.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Loading.2
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loaing2.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Loading.3
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading9.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Loading.4
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading8.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Loading.5
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading5.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Loading.6
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading4.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Loading.7
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading3.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Loading.8
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Loading.9
<style>
#btat-loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #FDFEF8 url(http://i1269.photobucket.com/albums/jj591/aditya9172/loading1.gif) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.btat #btat-loading { display: none; }
@media only screen and (device-width: 768px) {
#loading {
position:absolute;
width:1040px;
min-height:768px;
}
}
#btat-progress-bar {
position: absolute;
top: 0; left: 0;
background: #0d5ff6;
opacity: 0.8;
width: 0;
height: 18px;
}
#btat-loader {
height: 100%;
display: none;
}
</style>
<script>
(function($){
$("html").removeClass("btat");
$("#header").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#btat-progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#btat-progress-bar").stop().animate({ width: "100%" },600,function(){
$("#btat-loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
- Now, find for </body> tag and paste any of the below code as per your requirement above </body> tag.
Loading Only On Homepage
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<div id='btat-loading'><div
id='btat-progress-bar'></div><div
id='btat-loader'>Loading...</div></div></b:if>
Loading On Every Page
<div id='btat-loading'><div
id='btat-progress-bar'></div><div
id='btat-loader'>Loading...</div></div>
- Now, click on Save the template.
It's Done.
Categories:
Blogger Tricks
,
jQuery
0 comments:
Post a Comment