旋转的文字

来源:互联网 发布:常见的网络架构有哪些 编辑:程序博客网 时间:2024/05/22 07:40
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body><script language=javascript>Phrase="帮帮网 大学生最好的选择"Balises=""Taille=40;Midx=100;Decal=0.5;Nb=Phrase.length;for (x=0;x<Nb;x++){  Balises=Balises + '<DIV Id=L' + x + ' STYLE="width:3;font-family: Courier New;font-weight:bold;position:absolute;top:320;left:400;z-index:0">' + Phrase.charAt(x) + '</DIV>'}document.write (Balises);Time=window.setInterval("Alors()",5);Alpha=5;I_Alpha=0.05;function Alors(){Alpha=Alpha-I_Alpha;for (x=0;x<Nb;x++){Alpha1=Alpha+Decal*x;Cosine=Math.cos(Alpha1);Ob=document.all("L"+x);Ob.style.posLeft=Midx+100*Math.sin(Alpha1)+400;Ob.style.zIndex=20*Cosine;Ob.style.fontSize=Taille+25*Cosine;Ob.style.color="rgb("+ (126+Cosine*80+50) + ","+ (160+Cosine*80+50) + ",0)";}}</script></body></html>

原创粉丝点击