特效-----加字

      ~资源~ 2006-12-9 16:23
<SCRIPT language=JavaScript>
var current = 0
var x = 0
var speed = 50
var speed2 = 700
function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) {
  this[i] = ' '
}
}
typ = new initArray(1)
typ[0]="左下角的字 "
function typewrite() {
var m = typ[current]
window.status = m.substring(0, x++) + ""
if (x == m.length + 1) {
x = 0
current++
if (current > typ.length - 1) {
current = 0
}
setTimeout("typewrite()", speed2)
}
else {
setTimeout("typewrite()", speed)
}
}
typewrite()//</SCRIPT>
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}