Cara Membuat Text Berjalan Di Tab Browser
1. Login ke akun Blogger anda
2. Pilih Layout > Edit HTML
3. Cari kode <head>, lalu paste kode berikut dibawahnya:
<script type='text/javascript'>
//<![CDATA[
msg = "Isi Text 2";
msg = "Isi Text 1" + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
//]]>
</script>
Ganti tulisan Isi Text 1 dan Isi Text 2 sesuai keinginan anda.
Contoh:
<script type='text/javascript'>
//<![CDATA[
msg = " | Tutorial Facebook - Layout Facebook - Aplikasi Facebook ";
msg = "Facebook Zacky" + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
//]]>
</script>
Maka hasilnya akan seperti di blog: Facebook Zacky
5. Terakhir, klik Save Template.
Gimana? So simple kan? Selamat mencoba..
2. Pilih Layout > Edit HTML
3. Cari kode <head>, lalu paste kode berikut dibawahnya:
<script type='text/javascript'>
//<![CDATA[
msg = "Isi Text 2";
msg = "Isi Text 1" + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
//]]>
</script>
Ganti tulisan Isi Text 1 dan Isi Text 2 sesuai keinginan anda.
Contoh:
<script type='text/javascript'>
//<![CDATA[
msg = " | Tutorial Facebook - Layout Facebook - Aplikasi Facebook ";
msg = "Facebook Zacky" + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
//]]>
</script>
Maka hasilnya akan seperti di blog: Facebook Zacky
5. Terakhir, klik Save Template.
Gimana? So simple kan? Selamat mencoba..
0 komentar:
Posting Komentar