不一樣嗎...
狀態列的語法...
可以放在上方或下方...
這邊介紹3種最常用的...
請自行更改語法內容...
P.S.請把語法加入您的自定欄位其中一個...語法之後即可...如有問題請留言...謝謝...
打字機狀態列語法 (下方)
<script language="JavaScript">
var msg = "輸入你要打的字" ;
var interval = 200
var spacelen = 200;
var space10=" ";
var seq=0;
function Scroll() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = 0;
window.status = '';
window.setTimeout("Scroll();", interval );
}
else
window.setTimeout("Scroll();", interval );
}
Scroll();
</script>
跑馬燈狀態列語法 (下方) 由左到右
<script language="JavaScript">
<!--
function scroll(seed)
{
var m1 = "歡迎光臨!"
var m2 = "未進化兒童"
var msg=m1+m2;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
var cmd="scroll(" + seed + ")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
var cmd="scroll(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
} else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
var cmd="scroll(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scroll(100)",7);
}
}
}
timerONE=window.setTimeout('scroll(100)',50);
-->
</script>
打字機狀態列語法 (上方)
<script language="JavaScript1.2">
var message="輸入你要打的字"
var message=message+" "
i="0"
var temptitle=""
var speed="150"
function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i) //sets the initial title
temptitle=temptitle+message.charAt(i) //increases the title by one letter
i++ //increments the counter
if(i==message.length) //determines the end of the message
{
i="0" //resets the counter at the end of the message
temptitle="" //resets the title to a blank value
}
setTimeout("titler()",speed) //Restarts. Remove line for no-repeat.
}
window.onload=titler
</script>
如需語法...請至原文取用...謝謝...
本文引用自 neomi - 語法║狀態列語法
系列語法:
Blog ~ 語法║狀態列語法...2...
Blog ~ 語法║狀態列語法...3...
Blog ~ 語法║狀態列語法...4...
留言列表