旋转文字

2004.11.11.

*

*

*

<html>
<head>
<title>旋转文字</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" background="../sls.jpg">
<script language=javascript> 
Phrase="旋转文字 ddxss" 
Balises="" 
Taille=40; 
Midx=0; 
Decal=0.5; 
Nb=Phrase.length; 
for (x=0;x<Nb;x++){ 
Balises=Balises + '<DIV Id=L' + x + ' STYLE="width:15;font-family: Courier New;font-weight:bold;position:absolute;top:50;left:0;z-index:0">' + Phrase.charAt(x) + '</DIV>' 

document.write (Balises); 
Time=window.setInterval("Alors()",10); //输出文字,每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)+400; 
Ob.style.zIndex=20*Cosine; 
Ob.style.fontSize=Taille+25*Cosine; 
Ob.style.color="rgb("+ (233+Cosine*80+50) + ","+ (127+Cosine*80+50) + ",0)"; 


</script> 

<p align="center"><font color="#00FF00">*</font></p>
<p align="center"><font color="#00FF00">*</font></p>
<p align="center"><font color="#00FF00">*</font></p>
<p align="center"><font color="#00FF00">*</font></p>
<p align="center">
<b><font face="华文行楷" color="#00FF00" size="7">旋转文字</font></b>
</p>
<p align="center"><font color="#00FFFF" face="楷体_GB2312" size="5">
<b>2002.11.11.</b>
</font></p>

</body>
</html>