Cara Membuat Judul Blog bergerak

Posted by Vin Cent On Monday, April 23, 2012 0 comments

  • Dari dashboard >> Layout >> Add a gadget >> Html/Javascript 
  • Copy dan paste code berikut di HTML/Javascript :
<script language=javascript>
msg = "CentDesign...CentDesign...
";

msg = "..." + 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>

Note: Ganti 'CentDesign...CentDesign...' dengan teks yang diinginkan.
  • Save / Simpan, dan lihat hasilnya.
Hope it help !! 

0 comments:

Post a Comment