一个简单的页面框架布局(iframe)

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


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
       <script type="text/javascript" src="提示窗口组件/ymPrompt.js"></script>
      <link rel="stylesheet" type="text/css" href="提示窗口组件/skin/qq/ymPrompt.css" />
    <style type="text/css">

body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
.navPoint {
COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt
}
</style>
    <script language="javascript" type="text/javascript">
function switchSysBar(){
//alert("dsds");
var locate=location.href.replace('MainTable.aspx','');
//alert(locate);
var ssrc=document.all("img1").src.replace(locate,'');
if (ssrc=="images/main_55.gif")
{
document.all("img1").src="images/main_55_1.gif";
document.all("frmTitle").style.display="none"
}
else
{
document.all("img1").src="images/main_55.gif";
document.all("frmTitle").style.display=""
}
}
</script>

</head>
<body >
<form id="form1" runat="server">
    <table style="height:100%" cellspacing="0" cellpadding="0" width="100%" border="0">
  <tbody>
  <tr>
    <td colspan="3"><iframe  style="WIDTH: 100%; HEIGHT: 98px" name="Explorer_Tool" marginwidth="0" marginheight="0"  src="top.aspx" frameBorder="0" noResize scrolling="no" bordercolor="threedface"></iframe></td></tr>
  <tr >
    <td id="frmTitle" align="center" width="171" height="100%">
    <iframe style="WIDTH: 171px; HEIGHT: 100%"  id="BoardLeft" name="BoardLeft" marginwidth="0" frameSpacing="2" marginheight="0" src="left.aspx" frameborder="0" noResize></iframe></td>
   <td width="6"  style="width:6px;"valign="middle" bgcolor="1873aa" onclick="switchSysBar()"><span class="navPoint"
id="switchPoint" title="关闭/打开左栏"><img src="images/main_55.gif" name="img1" width=6 height=40 id=img1 /></SPAN></td>
    <td height="100%"><iframe  style="WIDTH: 100%; HEIGHT: 100%" id="main" name="main"  frameSpacing="1" src="提示窗口组件/Default.aspx" frameBorder="0"></iframe></td></tr>
<tr>
<td colspan="3"><iframe style="Z-INDEX:1;VISIBILITY:inherit; WIDTH: 100%; HEIGHT: 32px" name="Explorer_Tool" marginwidth="0" marginheight="0 "
src="" frameborder="0" noResize scrolling="no" bordercolor="threedface"></iframe></td></tr>
</tbody></table>
</form>
</body>
</html>

你可能感兴趣的:(JavaScript,框架,server,iframe,border,stylesheet)