Tutorial : Gerakkan Title Blog

May 31, 2010

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. :)

You Might Also Like

0 comments

Popular Posts

Like us on Facebook

Flickr Images