滚屏的问题求教!
对js和框架都不熟,聊天框架页面取消了F0,结果F1就不滚了。请各位给看看,谢了!框架:
<frameset cols="*,180" border="0" framespacing="0" >
<frameset rows="*,150,0,0" cols="*" border="0" framespacing="0">
<frame src="about:blank" name="f1">
<frame src="di.asp" name="f2" noresize scrolling="NO">
<frame src="about:blank" name="f3" noresize frameborder="NO" scrolling="NO">
<frame src="getmsg.asp" name="f4" noresize frameborder="NO" scrolling="NO">
</frameset>
<frameset rows="0,*,150,0" cols="*" border="0" framespacing="0">
……
</frameset>
</frameset>
与滚屏相关的语句
function scrollit(){if(!parent.f2.document.af.as.checked){autoScroll=0;}else{autoScroll=1;parent.f1.autoscrollnow();parent.f0.autoscrollnow();}}
……
msg="<font color=008800>【动作】</font>"+zj+"<font color="+str7+">"+str4+"</font>";}
}
if (str8=='1' & (str1!=username && str2!=username)){return false}
if (str2==username)(msg=msg+"<bgsound src=type.wav loop=1>")
if ((tbclu=='true') && (str1==username || str2==username))
{parent.f1.document.writeln(msg)
if (autoScroll==1) {parent.f1.autoscrollnow();}
}
else
{parent.f0.document.writeln(msg)
if (autoScroll==1) {parent.f0.autoscrollnow();}
}
}