下面的代码是实现文字的某种特效,但是我不想让文字随着鼠标移动,谁能帮我改改~

来源:百度知道 编辑:UC知道 时间:2024/06/30 17:55:48
<SCRIPT language="JavaScript" type="text/javascript
if (document.all){
msg="好好学习 天天向上";
msgColor="red";
msgFont="Tahoma";
file:
msg=msg.split('');
n=msg.length;
e=360/n;
yp=0;
xp=0;
yb=100;
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]=log

<SCRIPT language="JavaScript" type="text/javascript
if (document.all){
msg="好好学习 天天向上";
msgColor="red";
msgFont="Tahoma";
file:
msg=msg.split('');
n=msg.length;
e=360/n;
yp=0;
xp=0;
yb=100;
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.);
logo[i].style.left=xp+xb*Math.cos(sb+i*e*Math.);
pb[i]=logo[i].styl