Berawal dari rasa penasaran karna melihat salah satu web yang sangat keren sekali (menurut saya loh :D) akhirnya saya cari tau lewat mbah google....
?rel=0&autoplay=1
Aha! akhirnya ketemu juga cara membuat Loading (halamn Intro) sebelum masuk ke homepage blog..
oke langsunh aja yak....
1. Login Blogger.
2. Kemudian Rancangan => Edit HTML => Klik (Centang) Expand Template Widget
3. Kemudian cari code ]]></b:skin> , untuk lebih cepat tekan CTRL+F pada keyboard.
4. Copy code Jquery dibawah ini :
#loading {
position: fixed;
z-index: 50;
top: 0; left: 0;
width: 100%; height: 100%;
background: #000 url(http://i1206.photobucket.com/albums/bb455/binkbenk/loading.gif?imgmax=800) no-repeat center;
line-height: 350px;
text-align: center;
font-size: 36px;
color: #353231;
text-indent: -9999px;
}
.v2 #loading { display: none; }
#progress-bar {
position: absolute;
top: 0; left: 0;
background: #f3f3f3;
opacity: 0.8;
width: 0;
height: 18px;
}
#loader {
background: url(<span style="background-color: #ea9999;">http://i1206.photobucket.com/albums/bb455/binkbenk/loading.gif?imgmax=800</span>) no-repeat center 25%;
height: 100%;
display: block;
}
Pastekan diatas code ]]></b:skin>
5. Kemudian cari code </head> , gunakan cara cepat seperti tadi.
6.. Copy code dibawah ini :
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'/>
<script>
(function($){
$("html").removeClass("v2");
$("#header").ready(function(){ $("#progress-bar").stop().animate({ width: "25%" },1500) });
$("#footer").ready(function(){ $("#progress-bar").stop().animate({ width: "75%" },1500) });
$(window).load(function(){
$("#progress-bar").stop().animate({ width: "100%" },600,function(){
$("#loading").fadeOut("fast",function(){ $(this).remove(); });
});
});
})(jQuery);
</script>
Pastekan diatas code </head>
7. Kemudian cari code </body>, gunakan cara cepat seperti tadi.
8. Copy code dibawah ini :
<script src='http://x-gen.googlecode.com/files/x-gen-jquery.js' type='text/javascript'/>
<script type='text/javascript'>
$(function() {
$('#navigation a').stop().animate({'marginLeft':'-85px'},1000);
$('#navigation > li').hover(
function () {
$('a',$(this)).stop().animate({'marginLeft':'-2px'},200);
},
function () {
$('a',$(this)).stop().animate({'marginLeft':'-85px'},200);
}
);
});
</script>
Pastekan diatas code </body>
yang berwarna merah (http://i1206.photobucket.com/albums/bb455/binkbenk/loading.gif?imgmax=800 )
bisa kalian ganti dengan file gif kalian. woke lalu save tample kalian.... Done!! selesai :)
Eh iya jangan lupa backup dulu temple kalian sebelum melakukn proses ini..
Comments