<script language="javascript">
function switchScreen(v)
{
if(v=='d')
{
mf.rows="0,*";
window.frames.topFrame.location='blank.htm';
}
else
{
mf.rows="*,0";
window.frames.topFrame.location='http://sample.htm';
}
}
</script>
<frameset name="mf" id="mainFrame" rows="*,0" frameborder=no framespacing=0>
<frame name='topFrame' id="tp" src='http://sample.htm/' scrolling="no" frameborder=0 noresize marginheight=0 marginwidth=0>
<frame name='bottomFrame' id="bp" src='Main.html' scrolling="no" frameborder=0 noresize marginheight=0 marginwidth=0>
</frameset>
的功能是从底部框架这个JavaScript在Chrome中工作,但在IE
它以什么方式不起作用?它是抛出一个JS错误?请提供更多细节。 – Spudley 2010-10-21 16:20:44
(-1)请提供正确的问题描述和弹出的错误消息。 – 2010-10-21 16:28:33
没有错误。在称为switchScreen('d')时,即底部框架变为100%。在铬它不 – 2010-10-21 16:30:59