<frameset rows="100,*" cols="984" frameborder="yes" border="1" framespacing="2">
  <frame src="top.htm"  name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frameset rows="*" cols="225,1099" framespacing="1" frameborder="yes" border="1" bordercolor="#00CCFF">
    <frameset rows="127,*" cols="*" colos="182">     
      <frame src="LoginFrame.aspx"  name="loginFrame" scrolling="No" noresize="noresize" id="loginFrame"></frame>
      <frame src="LeftFrame.aspx"  name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
    </frameset>   
    <frame src="MainFrame.aspx"  id="mFrame" name="mainFrame"  title="mainFrame" />
  </frameset>
</frameset>topFrame:广告
LeftFrame:页面导航
MainFrame:显示免费内容
LoginFrame:公司Logo,一个登录链接,点击登录后弹出登录窗体Login.aspx,输入用户,密码,类型,成功后,关闭该窗体,并刷新框架页面。
1 用showModalDialog()弹出登录窗体,但是标题栏总是显示微软的标记。想去掉微软的标记,如何去掉?
2 用greyBox弹出登录窗体,因为LoginFrame在框架中只占了一小块,导致弹出的窗体特别小,如何修改大小呢?改好了大小后,如何刷新框架的各个页面呢?

解决方案 »

  1.   

    <frame src="LeftFrame.aspx" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
      

  2.   

    1.http://homepage.yesky.com/489/2370989.shtml2.修改greyBox的js控制代码
      

  3.   


    greyBox弹出窗体的大小可以改,但是弹出的窗体只在LoginFrame那一小块显示,我想显示在屏幕中间,怎么改js代码呢?
    var GB_DONE = false;
    var GB_HEIGHT = 400;
    var GB_WIDTH = 400;function GB_show(caption, url, height, width) {
    try {
      GB_HEIGHT = height || 400;
      GB_WIDTH = width || 400;
      if(!GB_DONE) {
        $("body")
          .append("<div id='GB_overlay'></div><div id='GB_window'><div id='GB_caption'></div>"
            + "<img src='../JS/close.gif' alt='Close window'/></div>");
        $("#GB_window img").click(GB_hide);
        $("#GB_overlay").click(GB_hide);
        $(window).resize(GB_position);
        GB_DONE = true;
      }  $("#GB_frame").remove();
      $("#GB_window").append("<iframe id='GB_frame' src='"+url+"'></iframe>");  $("#GB_caption").html(caption);
      $("#GB_overlay").show();
      GB_position();  if(GB_ANIMATION)
        $("#GB_window").slideDown("slow");
      else
        $("#GB_window").show();
    } catch(e) {
    alert( e );
    }
    }function GB_hide() {
      $("#GB_window,#GB_overlay").hide('slow');
    }function GB_position() {
      var de = document.documentElement;
      var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
    $("#GB_window").css({width:GB_WIDTH+"px",height:GB_HEIGHT+"px",
        left: ((w - GB_WIDTH)/2)+"px" });  $("#GB_frame").css("height",GB_HEIGHT - 32 +"px");
    }