語法展示::  http://home.graffiti.net/mhggfgss/


請用IE6.0或更新版本觀看語法特效展示

將以下程式碼複製,貼在<head>及</head>標籤之間。


<script language="JavaScript">
<!--
timeID = 10;
stcnt = 16;
msg = "我在這裡我在這裡!看到了沒......^_^";
wmsg = new Array(32);
 wmsg[0]=msg;
 blnk = "                                                               ";
 for (i=1; i<32; i++)
 {
  b = blnk.substring(0,i);
  wmsg[i]="";
  for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
 }
function wiper()
{
 ct = new Date();
 h = "0"+ct.getHours();
 m = "0"+ct.getMinutes();
 s = "0"+ct.getSeconds();
 h = h.substring(h.length-2,h.length+1);
 m = m.substring(m.length-2,m.length+1);
 s = s.substring(s.length-2,s.length+1);
 cl = " 現在時間: "+h+":"+m+":"+s+" ";
 if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
 if (stcnt-- < -40) stcnt=31;
 status = cl+str;
 clearTimeout(timeID);
 timeID = setTimeout("wiper()",100);
}
-->
</script>


將以下程式碼複製,貼在<body >標籤裡面。


 onLoad="wiper()"

arrow
arrow
    全站熱搜

    紫蓮の翼 發表在 痞客邦 留言(0) 人氣()