Wednesday, March 30, 2011

Tutorial : Title Bar Maker

Tutorial ni Myra Rahman yang request . Dia duk tanya ieqa macam mana nk wat url yg gerak2 tu ?
Amende tu? ala yang (Welcome to ieqa pinkylicious , Terima Kasih Sudi Blogwalking , Sayang Awak ! , xoxo     O_o )

ouh, sonang yo tu! timer kaseh kat eiyna yang wat tutorial ni. Nak pinjam tutorial ni ye eiyna


Follow step kat bawah ni ye =)


(1)Design > Page Element > Add a Gadget > Html/JavaScript

(2)Paste coding ni kat situ =)

(3)
<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(4);
tb8_messages[0] = "Welcome to ieqa pinkylicious";
tb8_messages[1] = "Terima Kasih Sudi Blogwalking";
tb8_messages[2] = "Sayang Awak !  ";
tb8_messages[3] = " xoxo     O_o  ";
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 ieqa dah highlight color merah tu korang boleh tukar ikut suka korang ye =) selamat mencuba !
Lepas tu save dan letak kat bawah header =) senang je kan? boleh paham kan?


Myra Rahman if tengok coding dia ni , mesti ingat kan masa kita blajar java n vb dulu chapter array? =)



p/s : nak copy coding tu sila hightlight and click control + c ye =D

Credited to eiyna

4 comments: