1. Login ke Blog anda
2. Klik tab Tata Letak
3. Klik Tambah Gadget
4. Pilih HTML/JAVA SCRIPT
Terus COPAS kode berikut :
<script language="javascript">
var rev = "fwd";
function titlebar(val)
{
var msg = "Welcome to My Blog!";
var res = " ";
var speed = 100;
var pos = val;
msg = " |--- "+msg+" ---|";
var le = msg.length;
if(rev == "fwd"){
if(pos < le){
pos = pos+1;
scroll = msg.substr(0,pos);
document.title = scroll;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "bwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
else{
if(pos > 0){
pos = pos-1;
var ale = le-pos;
scrol = msg.substr(ale,le);
document.title = scrol;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "fwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
}
titlebar(0);
</script>
var rev = "fwd";
function titlebar(val)
{
var msg = "Welcome to My Blog!";
var res = " ";
var speed = 100;
var pos = val;
msg = " |--- "+msg+" ---|";
var le = msg.length;
if(rev == "fwd"){
if(pos < le){
pos = pos+1;
scroll = msg.substr(0,pos);
document.title = scroll;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "bwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
else{
if(pos > 0){
pos = pos-1;
var ale = le-pos;
scrol = msg.substr(ale,le);
document.title = scrol;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "fwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
}
titlebar(0);
</script>
5. Tulisan yang berwarna BIRU itu ganti dengan Tulisan Judul Blog Kamu
6. Simpan
7. Dan Hasilnya Seperti Judul Blog Ini
8. Selesai
Selamat Mencoba Dan Semoga Bermanfaat..................
5 komentar:
Wah, boleh juga nih.
Tapi blog bakal berat gak nih loadingnya..??
keren
:16 TQ boss. bisa jalan
:16 nice
thanksss
Posting Komentar