Cheer Up, Friends! :)

Cara Membuat Pesan Berjalan di Tab
Tuesday, August 16 | 4 response(s)

Halo semuanya!! Sekarang ini, aku mau posting bagaimana cara membuat pesan berjalan di tab. Caranya cukup mudah loh! Tapi, kalo enggak tau kodenya tentu enggak bisa! Oke, enggak usah kebanyakan basa basi kita langsung lanjut aja!

Pertama
Silakan log in ke akun blogger kalian

Kedua
Buka 'Rancangan/Design'-Page Elements-Add a Gadget-Lalu, pilih HTML/Javascript.

Ketiga
Copy kode ini di contents/konten :). Title/Judul dikosongin ajaa XD.
<script type="text/javascript">
function tb8_makeArray(n){
this.length = n;
return this.length;
}

tb8_messages = new tb8_makeArray(4);
tb8_messages[0] = "Tulisan 1";
tb8_messages[1] = "Tulisan 2";
tb8_messages[2] = "Tulisan 3";
tb8_messages[3] = "Tulisan 4";
tb8_rptType = 'infinite';
tb8_rptNbr = 5;
tb8_speed = 100;
tb8_delay = 2000;
var tb8_counter=1;
var tb8_currMsg=0;
var tb8_tekst ="";
var tb8_i=0;
var tb8_TID = null;
function tb8_pisi(){
tb8_tekst = tb8_tekst + tb8_messages[tb8_currMsg].substring(tb8_i, tb8_i+1);
document.title = tb8_tekst;
tb8_sp=tb8_speed;
tb8_i++;
if (tb8_i==tb8_messages[tb8_currMsg].length){
tb8_currMsg++; tb8_i=0; tb8_tekst="";tb8_sp=tb8_delay;
}
if (tb8_currMsg == tb8_messages.length){
if ((tb8_rptType == 'finite') && (tb8_counter==tb8_rptNbr)){
clearTimeout(tb8_TID);
return;
}
tb8_counter++;
tb8_currMsg = 0;
}
tb8_TID = setTimeout("tb8_pisi()", tb8_sp);
}
tb8_pisi()
</script>

Ganti tulisan yang warna orange dengan kata-katamu. :)

Labels:


Stranger. Special. Stratch.