Monday, October 3, 2011

Title blog bergerak di tab menu

Assalaamualaikum semua, hari ini adalah hari yg palin happy untuk Adam sbb Adam ada request yg 'pertama' dr seorang rakan blogger Adam iaitu Aisyah.
korang da tengok dah ke title blog Adam yang bergerak kat tab menu? Masih tak faham? tengok bawah ini:


OK, now get started:

...Sign in Blogger > Design > Page Element > Add a Gadget > Edit HTML...

Selepas itu,

copy code di bawah ini dan pastekan dalam ruangan 'Edit HTML' tadi  (x perlu letak title)

<script type="text/javascript">
//Created by Title bar Maker (http://www.bosiljak.hr/titlemaker)
function tb8_makeArray(n){
this.length = n;
return this.length;
}
tb8_messages = new tb8_makeArray(3);
tb8_messages[0] = " Mesej Anda ";
tb8_messages[0] = " Mesej Anda ";
tb8_messages[0] = " Mesej Anda ";
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>

* yang warne merah itu tukarkan kepada ayat korang sendiri ye?

Save > View blog.



KLIK!

 
Hak Cipta Terpelihara | 100% Design by Adam Izzuddin Khalid ©| Best View: Google Chrome