减小字体 增大字体
] 源码如下----------------------------------------------------------<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>字体环绕-www.51windows.Net</title></head><body><SCRIPT language=JavaScript><!-- if (document.all){msg="http://www.51windows.com";msgColor="red";msgFont="Tahoma";file:msg=msg.split('');n=msg.length; e=360/n;yp=0;xp=0;yb=40;xb=80;sa=0.07;sb=0;pa=new Array();pb=new Array();for (i=0; i < n; i++){document.write('<div id="logo" style="position:absolute;top:0;left:0;'+'height:30;width:30;font-family:'+msgFont+';text-align:center;color:'+msgColor+'">'+msg[i]+'</div>');}function ani(){yp=document.body.scrollTop+yb+100;xp=document.body.scrollLeft+window.document.body.clientWidth-xb-40;for (i=0; i < n; i++){logo[i].style.top =yp+yb*Math.sin(sb+i*e*Math.PI/180);logo[i].style.left=xp+xb*Math.cos(sb+i*e*Math.PI/180);pb[i]=logo[i].style.pixelTop-yp;pa[i]=pb[i]-pb[i]*2;if (pa[i] < 1){pa[i]=0;logo[i].style.visibility='hidden';}else logo[i].style.visibility='visible';logo[i].style.fontSize=pa[i]/2.7;}sb-=sa;setTimeout('ani()',100);}window.onload=ani;}// --></SCRIPT></body></html>
[提示:你可先按照下面代码提示修改 上面部分代码,再按运行,此处看到的演示不完全正确]