網頁下方狀態列的特效,必須有支援 JS 的語法唷!!

 請將大寫的<>改為小寫<> 

<script language="JavaScript">
<!--
var current = 0
var x = 0
var speed = 120
var back = 15
var speed2 = 1500
var back2 = 1500
var type = new Array(4)
type[0]="文字"
type[1]="文字"
type[2]="文字"
type[3]="文字"
function typewrite() {
var m = type[current]
window.status = m.substring(0, x++)
if (x == m.length + 1) {
setTimeout("erase()", back2)
}
else {
setTimeout("typewrite()", speed)
}
}
function erase() {
var m = type[current]
window.status = m.substring(0, x)
x=x-1
if (x < 0) {
current++
x=0
setTimeout("typewrite()", speed2)
if (current > type.length - 1) {
current = 0
}
}
else {
setTimeout("erase()", back)
}
}
typewrite()
-->
</script>



---------------------------------------------分隔線。

好冗長唷,哪位高手能縮短啊= ="。
arrow
arrow
    全站熱搜

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