跑押跑的狀態列來了~

請貼上這段語法在網誌敘述~

<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>



部分解說
var interval = XXX
var spacelen = XXX

這是速度;可以改!



Ashley 發表在 痞客邦 PIXNET 留言(0) 人氣()