Baiklah, Untuk Contohnya sobat bisa lihat sendiri :
1. Login ke blogger dengan ID anda.
2. Klik Rancangan.
3. Dan KLik tab Edit HTML.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2' type='text/javascript'/>
<script src='http://hatitukloii.googlecode.com/files/dsds.js' type='text/javascript'></script>
- Atau Bisa Juga Pakai Kode Ini :
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
$(function(){
// ***
// Scrolling background
// ***
// height of background image in pixels
var backgroundheight = 4000;
// get the current minute/hour of the day
var now = new Date();
var hour = now.getHours();
var minute = now.getMinutes();
// work out how far through the day we are as a percentage - e.g. 6pm = 75%
var hourpercent = hour / 24 * 100;
var minutepercent = minute / 30 / 24 * 100;
var percentofday = Math.round(hourpercent + minutepercent);
// calculate which pixel row to start graphic from based on how far through the day we are
var offset = backgroundheight / 100 * percentofday;
// graphic starts at approx 6am, so adjust offset by 1/4
var offset = offset - (backgroundheight / 1);
function scrollbackground() {
// decrease the offset by 1, or if its less than 1 increase it by the background height minus 1
offset = (offset < 1) ? offset + (backgroundheight - 1) : offset - 1;
// apply the background position
$('body').css("background-position", "50% " + offset + "px");
// call self to continue animation
setTimeout(function() {
scrollbackground();
}, 70
);
}
// Start the animation
scrollbackground();
});
//]]>
</script>
Catatan : - Perhatikan Script diatas yang saya kasih warna biru muda.jika sobat sudah memasangnya, maka tidak perlu lagi memakai script diatas, biar gak double nantinya.
5. Selanjutnya cari kode body { . lalu masukkan kode berikut diantara kode body { } :
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgolRFUNAok1JKFFzynhX2Yf_cabZ2uuvekJWSACvta7pT2RC30tqjOT5EtuI4RsD_RJHcE5KrQVfUz2ROPGzc9OzG5KvWRhLoFAJuDGZG0f5fEV8YoDQFwry5JzudJjjo_5trpqaFK438/s1600/rrgrg.jpg);
<---Atau Bisa Juga Pakai yang Ini --->
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNF7t8bZeH3bOONAumJMEF0XNp6VmVp9hh3NtS-EPwn3gcOwV8KtvcAWHyLPkqLGSmjinQRsdtRiQ1XjmjqoOZIXfa7zxphN4LZhLK5KOGqLxoiulKNe_5BTA4dtVKl_rzUPiVm78KpKA/s512/bgscroll.png);
Contoh :
body {
6. Terkhir Save Template, dan Lihat Hasilnya.
Jangan lupa luangkan waktu untuk beri komentar ya......terima kasih.
Jika Artikel ini menarik, Silahkan copy paste permalink berikut ini di blog sobat!
kunjungan malam, happy blogging
BalasHapusSiip...Mantap tutornya...
BalasHapus