Headlines News :




Jumat, 20 Mei 2011

Cara Membuat Teks Berjalan pada Tab Bar


Cara Membuat Teks Berjalan pada Tab Bar

1. Pada Tab Rancangan, pilih Elemen Halaman
2. Add Gagdet, Pilih HTML/JavaScript
3. Copy Paste kode berikut:

<script type="text/javascript">
function tb8_makeArray(n){
    this.length = n;
    return this.length;
}

tb8_messages = new tb8_makeArray(6);
tb8_messages[0] = "Ghostcell Official Blog";
tb8_messages[1] = "Welcome Friends..";
tb8_messages[2] = "Feel free to";
tb8_messages[3] = "Drop your comment";
tb8_messages[4] = "and Be my Follower";
tb8_messages[5] = "Thanks :)";
tb8_rptType = 'infinite';
tb8_rptNbr = 5;
tb8_speed = 140;
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>

P/s : Kunjungi (http://www.bosiljak.hr/titlemaker) untuk alternatif efek tampilan teks.

Selamat Mencoba.

sumber: cara membuat teks berjalan pada tab bar, http://ghostcell.blogspot.com/2011/05/cara-membuat-teks-berjalan-pada-tab-bar.html, Title bar Maker (http://www.bosiljak.hr/titlemaker)
free tracking
Loading

0 Commentators :

Posting Komentar

Silahkan anda berkomentar, namun tetap jaga kesopanan dengan tidak melakukan komentar spam.

 

Copyright 2011 All Rights Reserved Official Ghostcell Blog . Custom Energy Saving . Powered by Blogger