会移动的部落显示标题

老实说我想不到这个要放教程要放什么名字,所以我就随便放一个名字好了 XDD

就是红框里面那个会自己移动的那些字

先到设计 --> 添加小工具 --> Html / Jave Script 把以下的代码放上去
<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] = " 显示的内容";
tb1_bln = 0;
tb1_rptType = 'infinite';
tb1_rptNbr = 5;
tb1_speed = 350;
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 条评论:

留言规则 请勿犯规 :)

--------------------------------------------------------------------------------

1、由于评论太哆,有些我不能一一评论

2、如有捣乱着,恕我删除留言

3、有些博友要的教程,请勿再三询问,请到教程列表里仔细寻找

谢谢 :)