vbscript 代码 (功能是实现Html打字机效果)如下<SCRIPT language=VBScript>
dim w,t1,t,p,mm,c,mr,dy,tmp,vs:vs=20:dy=10:p=1:mr="<br><br><br>":c="<font color=#000><B>|</font></b>"&mr:Set w = document.bodysub cheurl
if top.location<>self.location then
self.location=top.location
end if
end subsub tp0
m=mid(t1,p,1):if m="" then c=mr
if m="`" then m="":mm=mid(mm,1,len(mm)-1)
if m="<" then av=instr(mid(t1,p),">"):m=mid(t1,p,av):p=p+av-1
if m="&" then av=instr(mid(t1,p),";"):m=mid(t1,p,av):p=p+av-1
tmp=100:if m="。" then tmp=400 else if m="," then tmp=200 else if m=" " then tmp=200
mm=mm&m:tit.innerHTML=mm&c:p=p+1:if p<=len(t1)+1 then SetTimeOut "tp0",16+tmp else p=1:mm="":c="<font color=#000><B>|</font></b>"&mr:tp
end subsub tp
m=mid(t,p,1):if m="" then c=mr
if m="`" then m="":mm=mid(mm,1,len(mm)-1)
if m="<" then av=instr(mid(t,p),">"):m=mid(t,p,av):p=p+av-1
if m="&" then av=instr(mid(t,p),";"):m=mid(t,p,av):p=p+av-1
tmp=100:if m="。" then tmp=400 else if m="," then tmp=200 else if m=" " then tmp=200
if w.scrollHeight-w.scrollTop>w.offsetHeight then w.scrollTop=w.scrollTop+int(dy):dy=dy+dy/vs else dy=10
mm=mm&m:w1.innerHTML=mm&c:p=p+1:if p<=len(t)+1 then SetTimeOut "tp",16+tmp else w.scroll="yes"
end subsub window_onload()
cheurl
w.scroll="yes"
t1=tit0.innerHTML
t=w0.innerHTML
tp0
end sub
</script>
vbscriptjavascript