<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