网页打印机特效

请复制下面的代码,贴到文本里,改成html,就能看到效果,谢谢

<!--开始-->

<HTML><HEAD><TITLE>页面打印效果</TITLE>
<BODY>
<SCRIPT language=VBScript>
dim w,t,p,mm,c,mr,dy,tmp,vs:vs=5:dy=1:p=1:mr="<BR><BR><BR>":c="<font color=white><B>|"&mr:Set w = document.body

sub 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=1
 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 sub

sub window_onload()
 w.scroll="yes"
 w.bgcolor="#A8A8A8"
 w.style.cursor="crosshair"
 '-------------------
 t=w0.innerHTML:tp
end sub
</SCRIPT>

<DIV id=w0 style="DISPLAY: none">
 欢迎您的光临,这是一个真实的效果,绝对好使,谢谢
 </DIV>
<DIV id=w1></DIV>
<p><span class="p9"><br>
  <br>
  <br>
</span></p>
</BODY></HTML>

<!--结束-->

posted @ 2011-10-12 10:20  技术探索者  阅读(1224)  评论(0编辑  收藏  举报