请帮我看看以下代码错在哪里?错误提示是:缺少对象!谢谢 Ob=document.all("L"+x);-->Ob =eval("document.all('L'"+x)) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这句少了分号:Balises=Balises+'<DIV Id=L'+x+'STYLE="width:5;font-family:楷体-GB2312;font-weight:bold;position:absolute;top:60;left:50;z-index:0">'+Phrase.charAt(x)+'</DIV>' 不要在单引号内又用双引号可以在双引号中用单引号Balises=Balises+"<DIV Id=L"+x+"STYLE='width:5;font-family:楷体-GB2312;font-weight:bold;position:absolute;top:60;left:50;z-index:0'>"+Phrase.charAt(x)+"</DIV>" style 前面要有空格<script>Phrase="大家手拉手,围成一人圈!"Balises="";Taille=80;Midx=250;Deca1=0.5;Nb=Phrase.length;y=-10000;//y=-20000;for(x=0;x<Nb;x++){ Balises=Balises+'<DIV Id=L'+x+' STYLE="width:5;font-family:楷体-GB2312;font-weight:bold;position:absolute;top:60;left:50;z-index:0">'+Phrase.charAt(x)+'</DIV>'}document.write(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+Deca1*x; Cosine=Math.cos(Alpha1); Ob=document.all("L"+x); Ob.style.posLeft=Midx+170*Math.sin(Alpha1)+50; Ob.style.zIndex=20*Cosine; Ob.style.fontSize=Taille+25*Cosine-50; Ob.style.color="rgb("+(181+Cosine*80+50)+",63,6)"; } }</script> style 前面要有空格<script>Phrase="大家手拉手,围成一人圈!"Balises="";Taille=80;Midx=250;Deca1=0.5;Nb=Phrase.length;y=-10000;//y=-20000;for(x=0;x<Nb;x++){ Balises=Balises+'<DIV Id=L'+x+' STYLE="width:5;font-family:楷体-GB2312;font-weight:bold;position:absolute;top:60;left:50;z-index:0">'+Phrase.charAt(x)+'</DIV>'}document.write(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+Deca1*x; Cosine=Math.cos(Alpha1); Ob=document.all("L"+x); Ob.style.posLeft=Midx+170*Math.sin(Alpha1)+50; Ob.style.zIndex=20*Cosine; Ob.style.fontSize=Taille+25*Cosine-50; Ob.style.color="rgb("+(181+Cosine*80+50)+",63,6)"; } }</script> 求jquery效果代码 关于用js实现控件联动的问题? 帮助我看看下面代码,并帮我修改一下 无JAVASCRIPT编程基础,直接学JQUERY可以吗? 求一正确写法 请教js如何做一个层 如何用document.getElementById()的方法得到单选按钮组的值,你知道就快说吧 各位高手请帮忙,急!送100分! 怎么会执行错误呢???麻烦高手帮我看看,谢谢了。 jquery变量问题。 在一个对象上定义了单击事件,如何在双击事件发生时执行另一个处理,而不执行单击事件处理 怎么实现删除、上移、下移按钮?
Balises=Balises+'<DIV Id=L'+x+'STYLE="width:5;font-family:楷体-GB2312;font-weight:bold;position:absolute;top:60;left:50;z-index:0">'+Phrase.charAt(x)+'</DIV>'
可以在双引号中用单引号Balises=Balises+"<DIV Id=L"+x+"STYLE='width:5;font-family:楷体-GB2312;font-weight:bold;position:absolute;top:60;left:50;z-index:0'>"+Phrase.charAt(x)+"</DIV>"
<script>
Phrase="大家手拉手,围成一人圈!"
Balises="";
Taille=80;
Midx=250;
Deca1=0.5;
Nb=Phrase.length;
y=-10000;
//y=-20000;
for(x=0;x<Nb;x++){
Balises=Balises+'<DIV Id=L'+x+' STYLE="width:5;font-family:楷体-GB2312;font-weight:bold;position:absolute;top:60;left:50;z-index:0">'+Phrase.charAt(x)+'</DIV>'
}
document.write(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+Deca1*x;
Cosine=Math.cos(Alpha1);
Ob=document.all("L"+x);
Ob.style.posLeft=Midx+170*Math.sin(Alpha1)+50;
Ob.style.zIndex=20*Cosine;
Ob.style.fontSize=Taille+25*Cosine-50;
Ob.style.color="rgb("+(181+Cosine*80+50)+",63,6)";
}
}</script>
<script>
Phrase="大家手拉手,围成一人圈!"
Balises="";
Taille=80;
Midx=250;
Deca1=0.5;
Nb=Phrase.length;
y=-10000;
//y=-20000;
for(x=0;x<Nb;x++){
Balises=Balises+'<DIV Id=L'+x+' STYLE="width:5;font-family:楷体-GB2312;font-weight:bold;position:absolute;top:60;left:50;z-index:0">'+Phrase.charAt(x)+'</DIV>'
}
document.write(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+Deca1*x;
Cosine=Math.cos(Alpha1);
Ob=document.all("L"+x);
Ob.style.posLeft=Midx+170*Math.sin(Alpha1)+50;
Ob.style.zIndex=20*Cosine;
Ob.style.fontSize=Taille+25*Cosine-50;
Ob.style.color="rgb("+(181+Cosine*80+50)+",63,6)";
}
}</script>