<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <title> text rotation </title> <script language=javascript> phrase=" We are the successor to the Republic ... Balises= "" TAILLE=40; midx=100; decal=0.5; Nb=phrase.length; y=-10000; for (x=0;x<nb;x++) {balises=balises + ' <div id=l ' + x + ' > ' + phrase.charat (x) + ' </DIV> '} DOCUMENT.WR ITE (balises); Time=window.setinterval ("alors ()", 10); 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) +50; Ob.style.zindex=20*cosine; Ob.style.fontsize=taille+25*cosine; Ob.style.color= "RGB (" + (27+COSINE*80+50) + "," + (127+COSINE*80+50) + ", 0)"; }} </SCRIPT>;/head> <body> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]