这次就教“标题闪动”吧
很简单,你只需要将以下的Code Copy
<script language="javascript">
<!--
var tx = new Array (
"LEARN LEARN LEARN`",
"");
var txcount=1;//1代表你只打1行,2行就打2
var i=1;
var wo=0;
var ud=1;
function animatetitle()
{
window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Animierte Seitentitel '; ",1000);
parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("animatetitle()",200);
}
animatetitle();
// -->
</script>
red highlight = can change
然后Paste到你的部落格
放哪里?我教你
请按Design,然后在page elements下方找Add Gadget的字眼
按进去后你会看到很多工具,选择HTML/JavaScript把刚才Copy的Paste上去就可以了
^^
No comments:
Post a Comment