Kali ini
saya ingin berbagi bagaimana cara membuat tulisna berjalan di titlebar Blog
langsung saja berikut langkah-langkahnya :
- Login Blogger kemudian ke menu edit laman
- Klik menu tambah gadget
- Tambahkan HTML/javascript kemudian paste kode dibawah ini.
<script language=javascript> var rev = "fwd"; function titlebar(val) { var msg = "Selamat datang di Pandjie 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>
Tidak ada komentar:
Posting Komentar