分类：电脑/网络-操作系统/系统故障
问题：鼠标跟随文字的代码有谁知道？请大家帮一下，谢谢 
跟随文字的代码有谁知道？请大家帮一下，谢谢
回答：<stylety="text/css">.spanstyle{vfont-color:#BBA344;font-}</style><scriptlanguage="javascript">varx;vary;varstep=20;varflag=0;varmessage="欢迎光临";message=message.split("");varxpos=newArray();for(i=0;i<=message.length-1;i++){xpos[i]=-50;}varypos=newArray();for(i=0;i<=message.length-1;i++){ypos[i]=-50;}functionhandlerMM(e){x=( yers)?e. ( yers)?e. }functionmakesnake(){if(flag==1&& l){for(i=message.length-1;i>=1;i--){xpos[i]=xpos[i-1]+step;ypos[i]=ypos[i-1];}xpos[0]=x+step;ypos[0]=y;for(i=0;i<message.length-1;i++){varthisspan=eval("span"+(i)+".style");thisspan.posLeft=xpos[i];thisspan.posTop=ypos[i];}}elseif(flag==1&& yers){for(i=message.length-1;i>=1;i--){xpos[i]=xpos[i-1]+step;ypos[i]=ypos[i-1];}xpos[0]=x+step;ypos[0]=y;for(i=0;i<message.length-1;i++){varthisspan=eval("document.span"+i);thisspan.left=xpos[i]; p=ypos[i]}}vartimer=setTimeout("makesnake()",30)}</script><scriptlanguage="javascript">makesnake();for(i=0;i<=message.length-1;i++){document.write('<spanid=\'span'+i+'\'class=spanstyle>');document.write(message[i]);document.write("</span>");}if( yers){ ptureEvents(Event.MOUSEMOVE);}document.onmousemove=handlerMM;</script>上面是代码