你覺得網頁下面的跑馬燈很可愛嗎?
其實用簡單的html語法就可以擁有唷~~~^^*
請把下列文字複製
貼到 pixnet 網誌敘述的地方 :)



<SCRIPT LANGUAGE="JavaScript">
<!--
function scroll(seed)
{
var m1 = "嗨...我是猴子,歡迎你來香蕉園唷!^0^"
var msg=m1;
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> 


好玩嗎? ^__________^

全站熱搜

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