Blog Cik Emma: Tutorial : Gerakkan Title Blog

31 May 2010

Tutorial : Gerakkan Title Blog

Cam biasa gi Dashboard > Design > Add A Gadget > Html/Jvascript

masukkan kod kat bawah ni dalam html/javascript

<script language=javascript>
msg = "Title Blog Korang";

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>



Tukarkan 'Title Blog Korang' dengan apa sahaja yang korang nak.

Save dan lihat hasilnya. :)

No comments:

 
Copyright© All Right Reserved by Cik Emma