各位朋友:
我的问题如下:在主页上有一个Iframe,ID="Iframe1"在主页上引用了一个JS,Iframex.js,在主页上做了三个按钮:bt1,bt2,bt3.分别对应三个网页,bt1.aspx,bt2.aspx,bt3.aspx.代码:主页面上:<div id="xx1"><iframe id="Iframe1" scr="bt1.aspx" width="250" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> </div>
<div id="Left_select" align="center" style="width:230">
   &nbsp<input type="button" id="bt1" class="button2" value="BT1" title="" onclick="bt_click('bt1');"/>
           &nbsp<input type="button" id="ButtonOnline" class="button2" value="BT2" title="" onclick="bt_click('bt2');"/>
           &nbsp<input type="button" id="ButtonOffline" class="button2" value="BT3" title="" onclick="bt_click('bt3');"/>
    </div>
在Iframex.js中添加代码:
function bt_click(id)
{
  switch(id)
  {
    case "bt1":
            document.getElementById("Iframe1").scr='bt1.aspx';
            break;
    case "bt2":
            document.getElementById("Iframe1").scr='bt2.aspx';
            break;
    case "bt3":
            document.getElementById("Iframe1").scr='bt3.aspx';
            break;
  }
}点击按钮,Iframe1没有任何反应。哪位朋友能给点提示,谢谢!!