大家好:
我的主窗体(名字:main.aspx)是:<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<frameset rows="98,*,8" frameborder="no" border="0" framespacing="0">
<frame src="top.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frame src="middel.html" name="mainFrame" id="mainFrame"/>
<frame src="down.aspx" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset>
</html>
其中middel.html窗体如下:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<style>
.navPoint {
COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt
}
</style>
<script>
function switchSysBar(){
var locate=location.href.replace('middel.html','');
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 style="overflow:hidden">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td width="171" id=frmTitle noWrap name="fmTitle" align="center" valign="top"><table width="171" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td bgcolor="#1873aa" style="width:6px;"> </td>
<td width="165"><iframe name="I1" height="100%" width="165" src="left.aspx" border="0" frameborder="0" scrolling="no" name="main" > 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table> </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 width="100%" align="center" valign="top"><iframe name="I2" height="100%" width="100%" border="0" frameborder="0" src="tab/tab.aspx" target="_parent"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table>
</body>
</html>如何top.aspx中单击一个链接弹出的新窗体,在框架内而不是弹出一个新的页面。谢谢。
我的主窗体(名字:main.aspx)是:<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<frameset rows="98,*,8" frameborder="no" border="0" framespacing="0">
<frame src="top.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frame src="middel.html" name="mainFrame" id="mainFrame"/>
<frame src="down.aspx" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset>
</html>
其中middel.html窗体如下:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<style>
.navPoint {
COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt
}
</style>
<script>
function switchSysBar(){
var locate=location.href.replace('middel.html','');
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 style="overflow:hidden">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td width="171" id=frmTitle noWrap name="fmTitle" align="center" valign="top"><table width="171" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td bgcolor="#1873aa" style="width:6px;"> </td>
<td width="165"><iframe name="I1" height="100%" width="165" src="left.aspx" border="0" frameborder="0" scrolling="no" name="main" > 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table> </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 width="100%" align="center" valign="top"><iframe name="I2" height="100%" width="100%" border="0" frameborder="0" src="tab/tab.aspx" target="_parent"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table>
</body>
</html>如何top.aspx中单击一个链接弹出的新窗体,在框架内而不是弹出一个新的页面。谢谢。
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.STYLE1 {
font-size: 14px;
color: #FFFFFF;
}
.STYLE2 {font-size: 9px}
.STYLE3 {
color: #033d61;
font-size: 12px;
}
-->
</style>
<style type="text/css">
.menu_title SPAN {
FONT-WEIGHT: bold; LEFT: 3px; COLOR: #ffffff; POSITION: relative; TOP: 2px
}
.menu_title2 SPAN {
FONT-WEIGHT: bold; LEFT: 3px; COLOR: #FFCC00; POSITION: relative; TOP: 2px
}</style>
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="70" background="images/main_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="24"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="270" background="images/main_03.gif" style="height: 23px"> </td>
<td width="505" background="images/main_04.gif" style="height: 23px"> </td>
<td style="height: 23px"> </td>
<td width="21" style="height: 23px"><img src="images/main_07.gif" width="21" height="24"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="38"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="270" height="38" background="images/main_09.gif"> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="77%" height="25" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="menu_title" style="background-image:url(images/main_48.gif); width: 55px; height:23px">
<table width="55px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:43%"> </td>
<td style="width: 70%;vertical-align: bottom;"><a href="top.aspx?ID=0" class="STYLE1" >首页</a></td>
</tr>
</table>
</td>
<td style="width:2px"></td>
<td class="menu_title" style="background-image:url(images/main_48.gif); width: 82px; height:23px">
<table width="82px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:30%"> </td>
<td style="width: 70%;vertical-align: bottom;"><a href="top.aspx?ID=1" class="STYLE1" >人事管理</a></td>
</tr>
</table>
</td>
<td style="width:2px"></td>
<td class="menu_title" style="background-image:url(images/main_48.gif); width: 82px; height:23px">
<table width="82px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:30%"> </td>
<td style="width: 70%;vertical-align: bottom;"><a href="top.aspx?ID=2" class="STYLE1" >文档管理</a></td>
</tr>
</table>
</td>
<td style="width:2px"></td>
<td class="menu_title" style="background-image:url(images/main_48.gif); width: 82px; height:23px">
<table width="82px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:30%"> </td>
<td style="width: 70%;vertical-align: bottom;"><a href="top.aspx?ID=3" class="STYLE1" >项目管理</a></td>
</tr>
</table>
</td>
<td style="width:2px"></td>
<td class="menu_title" style="background-image:url(images/main_48.gif); width: 82px; height:23px">
<table width="82px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:30%"> </td>
<td style="width: 70%;vertical-align: bottom;"><a href="top.aspx?ID=4" class="STYLE1" >内部邮件</a></td>
</tr>
</table>
</td>
<td style="width:2px"></td>
<td class="menu_title" style="background-image:url(images/main_48.gif); width: 82px; height:23px">
<table width="82px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:30%"> </td>
<td style="width: 70%;vertical-align: bottom;"><a href="top.aspx?ID=5" class="STYLE1" >日程安排</a></td>
</tr>
</table>
</td>
<td style="width:2px"></td>
<td class="menu_title" style="background-image:url(images/main_48.gif); width: 82px; height:23px">
<table width="82px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:30%"> </td>
<td style="width: 70%;vertical-align: bottom;"><a href="top.aspx?ID=11" class="STYLE1" >系统管理</a></td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table></td>
<td width="220" valign="bottom" nowrap="nowrap"></td>
</tr>
</table></td>
<td width="21"><img src="images/main_11.gif" width="21" height="38"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="8" style=" line-height:8px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="270" background="images/main_29.gif" style=" line-height:8px;"> </td>
<td width="505" background="images/main_30.gif" style=" line-height:8px;"> </td>
<td style=" line-height:8px;"> </td>
<td width="21" style=" line-height:8px;"><img src="images/main_31.gif" width="21" height="8"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" background="images/main_36.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="177" height="28" background="images/main_32.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%" height="22"> </td>
<td width="59%" valign="bottom"><div align="center" class="STYLE1" style="font-size:12px">当前用户:Admin</div></td>
<td width="21%"> </td>
</tr>
</table></td>
<td style="width:1067px; height:28"><table width="100%" border="0" cellspacing="0" style="height:100%" cellpadding="0">
<tr>
<td>
<asp:DataList ID="dltTab" runat="server">
<ItemTemplate>
<a href="<%# DataBinder.Eval(Container.DataItem,"url")%>" target="main" >
<%#DataBinder.Eval(Container.DataItem,"name") %>
</a>
</ItemTemplate>
<SeparatorTemplate>
|
</SeparatorTemplate>
</asp:DataList></td>
<td> </td>
</tr>
</table></td>
<td width="21"><img src="images/main_37.gif" width="21" height="28"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
这是Top.aspx页面 如何将其绑定到 a href="<%# DataBinder.Eval(Container.DataItem,"url")%>" target="main" >
在JS函数里
parent.window.frames[''].frames[''].location.href="";
我按照你的方法做了,但是这个新页面还是top.aspx
下面的窗体全覆盖了。能不能只覆盖top.aspx下面的右半部分。
谢谢