作业帮 > 综合 > 作业

谁能解释一下这段语句的意思

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/04/25 03:27:32
谁能解释一下这段语句的意思
function glowit(which){
if (document.all.glowtext.filters[0].strength==2)
document.all.glowtext.filters[0].strength=1
else
document.all.glowtext.filters[0].strength=2
}
function glowit2(which){
if (document.all.glowtext.filters[0].strength==2)
document.all.glowtext.filters[0].strength=1
else
document.all.glowtext.filters[0].strength=2
}
function startglowing(){
if (document.all.glowtext&&glowtext.length){
for (i=0;i
你得把html代码页贴出来才能说清楚,以下是根据语法解释的,关联不到业务逻辑!
function glowit(which){ //此函数就是变换filters的strength属性值,如果是2,变成1,否则变成2
if (document.all.glowtext.filters[0].strength==2)
document.all.glowtext.filters[0].strength=1
else
document.all.glowtext.filters[0].strength=2
}
function glowit2(which){ //同glowit类似
if (document.all.glowtext.filters[0].strength==2)
document.all.glowtext.filters[0].strength=1
else
document.all.glowtext.filters[0].strength=2
}
function startglowing(){
if (document.all.glowtext&&glowtext.length){ //如果glowtext存在并且长度存在

for (i=0;i