tutorial title blog bergerak : version 2
hello peeps . ini dirah nak buat tuto version 2 pulak . yang version 2 nie , title blog akan bergerak ke kiri . jadi , kalau yang title blog panjang-2 tu , sesuai lah buat title macam nie . dapat keluar full title kat tab tu . nak try tak ? kalau nak , jum ikot nie .
1. dashboard design page element add gadget Html/java script
2. copy & paste code nie .
<script type="text/javascript">
//Created by Title bar Maker (http://www.bosiljak.hr/titlemaker)
function tb1_makeArray(n){
this.length = n;
return this.length;
}
tb1_messages = new tb1_makeArray(1);
tb1_messages[0] = "title blog korang";
tb1_bln = 50;
tb1_rptType = 'infinite';
tb1_rptNbr = 5;
tb1_speed = 100;
tb1_counter=1;
tb1_timer = null;
tb1_last = 1;
tb1_st='';
tb1_currMsg = 0;
function tb1_scrolltitle(){
if (tb1_last > tb1_messages[tb1_currMsg].length){
if (tb1_st.length == 0){
tb1_last=1;
if (tb1_currMsg == tb1_messages.length-1){
if ((tb1_rptType == 'finite') && (tb1_counter==tb1_rptNbr)){
clearTimeout(tb1_timer);
return;
}
tb1_counter++;
tb1_currMsg=0;
}
else{
tb1_currMsg++;
}
}
else{
tb1_st=tb1_st.substring(1,tb1_st.length);
}
}
else{
tb1_st = tb1_messages[tb1_currMsg].substring(0, tb1_last);
for (var i=0; i<=(tb1_bln+tb1_messages[tb1_currMsg].length-tb1_last); i++)
tb1_st="_"+tb1_st;
tb1_last++;
}
document.title = tb1_st;
tb1_timer = setTimeout("tb1_scrolltitle()", tb1_speed);
}
tb1_scrolltitle();
</script>
3. save & view blog .
Labels: tuto
tutorial title blog bergerak : version 2
hello peeps . ini dirah nak buat tuto version 2 pulak . yang version 2 nie , title blog akan bergerak ke kiri . jadi , kalau yang title blog panjang-2 tu , sesuai lah buat title macam nie . dapat keluar full title kat tab tu . nak try tak ? kalau nak , jum ikot nie .
1. dashboard design page element add gadget Html/java script
2. copy & paste code nie .
<script type="text/javascript"> //Created by Title bar Maker (http://www.bosiljak.hr/titlemaker) function tb1_makeArray(n){ this.length = n; return this.length; } tb1_messages = new tb1_makeArray(1); tb1_messages[0] = "title blog korang"; tb1_bln = 50; tb1_rptType = 'infinite'; tb1_rptNbr = 5; tb1_speed = 100; tb1_counter=1; tb1_timer = null; tb1_last = 1; tb1_st=''; tb1_currMsg = 0; function tb1_scrolltitle(){ if (tb1_last > tb1_messages[tb1_currMsg].length){ if (tb1_st.length == 0){ tb1_last=1; if (tb1_currMsg == tb1_messages.length-1){ if ((tb1_rptType == 'finite') && (tb1_counter==tb1_rptNbr)){ clearTimeout(tb1_timer); return; } tb1_counter++; tb1_currMsg=0; } else{ tb1_currMsg++; } } else{ tb1_st=tb1_st.substring(1,tb1_st.length); } } else{ tb1_st = tb1_messages[tb1_currMsg].substring(0, tb1_last); for (var i=0; i<=(tb1_bln+tb1_messages[tb1_currMsg].length-tb1_last); i++) tb1_st="_"+tb1_st; tb1_last++; } document.title = tb1_st; tb1_timer = setTimeout("tb1_scrolltitle()", tb1_speed); } tb1_scrolltitle(); </script>
3. save & view blog .
Labels: tuto
|