|
<style type="text/css"><br/> .spanstyle {<br/> COLOR: #00cccc; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; POSITION: absolute; TOP: -50px; VISIBILITY: visible<br/> }<br/> </style><br/> <script><br/> var x,y<br/> var step=18<br/> var flag=0<br/> var message="★广西供销学校02计算机应用班欢迎你的光临!"</p><p> message=message.split("")<br/> var xpos=new Array()<br/> for (i=0;i<=message.length-1;i++) {<br/> xpos=-50<br/> }</p><p> var ypos=new Array()<br/> for (i=0;i<=message.length-1;i++) {<br/> ypos=-200<br/> }</p><p> function handlerMM(e){<br/> x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX<br/> y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY<br/> flag=1<br/> }</p><p> function www_helpor_net() {<br/> if (flag==1 && document.all) {<br/> for (i=message.length-1; i>=1; i--) {<br/> xpos=xpos[i-1]+step<br/> ypos=ypos[i-1]<br/> }<br/> xpos[0]=x+step<br/> ypos[0]=y</p><p> for (i=0; i<message.length-1; i++) {<br/> var thisspan = eval("span"+(i)+".style")<br/> thisspan.posLeft=xpos<br/> thisspan.posTop=ypos<br/> }<br/> }</p><p> else if (flag==1 && document.layers) {<br/> for (i=message.length-1; i>=1; i--) {<br/> xpos=xpos[i-1]+step<br/> ypos=ypos[i-1]<br/> }<br/> xpos[0]=x+step<br/> ypos[0]=y</p><p> for (i=0; i<message.length-1; i++) {<br/> var thisspan = eval("document.span"+i)<br/> thisspan.left=xpos<br/> thisspan.top=ypos<br/> }<br/> }<br/> var timer=setTimeout("www_helpor_net()",30)<br/> }</p><p> for (i=0;i<=message.length-1;i++) {<br/> document.write("<span id='span"+i+"' class='spanstyle'>")<br/> document.write(message)<br/> document.write("</span>")<br/> }</p><p> if (document.layers){<br/> document.captureEvents(Event.MOUSEMOVE);<br/> }<br/> document.onmousemove = handlerMM;<br/> www_helpor_net();<br/> // --><br/> </script><br/> |
|