补充:要求,在框架集中完全隐藏B框架,不能够对B.htm进行任何操作;但是另外在浏览器可以单独打开B.htm,可以对B.htm进行操作。

解决方案 »

  1.   

    <frameset rows="100%,0%" cols="*">
         <frame name="dis_myworld" src="A.htm" noresize/>
         <frame name="data_myworld" src="B.htm" noresize/>
        </frameset><noframes></noframes>
      

  2.   

    <frameset rows="100%,0%" cols="*" border=0 frameborder=0 >
         <frame name="dis_myworld" src="A.htm" />
         <frame name="data_myworld" src="B.htm" />
        </frameset><noframes></noframes>
      

  3.   

    <frameset rows="100%,0%" cols="*" border=0 frameborder=0 >
         <frame name="dis_myworld" src="A.htm" noresize />
         <frame name="data_myworld" src="B.htm" noresize/>
        </frameset><noframes></noframes>
    这个。
      

  4.   

    直接给"data_myworld"加上noResize即可:
    <frameset rows="100%,0%" cols="*">
         <frame name="dis_myworld" src="A.htm" />
         <frame name="data_myworld" src="B.htm" noResize/>
        </frameset><noframes></noframes>
      

  5.   

    建议使用iframe 因为iframe只要使用个style="display:none" 就完全不可见了 而里面数据仍然存在,并且可以随意嵌入任何页面,只要放在body标签中即可<body>
    ...
    <iframe name="frame的名称" style="display:none" src="初始连接地址"></iframe>
    ...
    </body>注:
    iframe是嵌入页面内部的frame, 使用和frame一样. 好处是可以随意嵌入页面任何地方.坏处是渲染的时候可能会慢一点点.
      

  6.   

    我知道iframe,我是这样用的,在主页index.htm里面,有个iframe,调用框架集all.htm,框架集all.htm由a.htm和b.htm组成,因为隐藏了b.htm,所以主页index.htm里面的iframe,只显示a框架。
        之所以这样写,是因为不想在index.htm里面写太多的js.
        我另外又有个帖子,100分!快来抢哦!