iframe 三层框架

来源:互联网 发布:linux激活网卡命令 编辑:程序博客网 时间:2024/06/09 20:23

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="That_WEB_Top_Show" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 <head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <meta name="generator" content="Adobe GoLive" />
  <title>康盟传媒--首页</title>
   <style type="text/css">

body {
   
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
    }

</style>
      
    

 <script type="text/javascript">
   function reinitIframe(){
   var iframe = document.getElementById("mainFrame");
   try{
   var bHeight = iframe.contentWindow.document.body.scrollHeight;
   var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
   var height = Math.max(bHeight, dHeight);
   iframe.height =  height;
   }catch (ex){}
   }
   window.setInterval("reinitIframe()", 200);
   </script>
   

 </head>
     <div >
    <iframe src="FrameTop.aspx"     name="topFrame"    id="topFrame" frameborder="no"   scrolling="no" width="100%" height="400"></iframe>
   
    <!--
    <iframe name="leftframe" marginwidth=1 marginheight=1 src="leftmenu.asp" frameborder=no   scrolling="no" height=100%></iframe>
    <iframe id="frame_content" src="iframe_b.html" scrolling="no" frameborder="0"  onload="this.height=100"></iframe-->
  

    <iframe src="FrameMain.aspx"    name="mainFrame"   id="mainFrame"   frameborder="no"   scrolling="no" width="100%"  onload="this.height=100"></iframe>
    <iframe src="FrameBottom.aspx"  name="bottomFrame" id="bottomFrame" frameborder="no"   scrolling="no" width="100%" height="450" ></iframe>
 </div>
 
   <body></body>

 

</html>

原创粉丝点击