asp框架集
我在topframe里面这么写:<a href="yonghuguanli.asp" target="leftframe">用户管理</a>
他怎么不在leftframe里面显示呢,在另个窗口打开,跟.asp有关吗?如果是.htm可以呀
<a href="yonghuguanli.asp" target="leftframe">用户管理</a>
本身是没有问题的。跟ASP也没有关系。
至于"怎么不在leftframe里面显示",因为没看楼主的代码,不好回答。
下面给出一个示例,请楼主认真研究。
请阅读并调试下列文件:
(共9个文件)
1.index.asp
<html>
<head><title>框架示例</title></head>
<frameset rows="64,*">
<frame name="TopFrame" scrolling="no" target="LeftFrame" src="top.asp">
<frameset cols="160,*">
<frame name="LeftFrame" target="MainFrame" src="left1.asp">
<frame name="MainFrame" src="news.asp">
</frameset>
<noframes>
<body><p>浏览器不支持框架。</p></body>
</noframes>
</frameset>
</html>
2.top.asp
<html>
<head><title>top</title></head><body>
<table border="0" width="300">
<tr>
<td><a href="left1.asp" target="LeftFrame">公司简介</a></td>
<td><a href="left2.asp" target="LeftFrame">最新产品</a></td>
</tr>
</table>
</body>
</html>
3.left1.asp
<html>
<head><title>公司</title></head>
<body>
<table border="0" width="150">
<tr><td><a href="gs1.asp" target="MainFrame">公司的昨天</td></tr>
<tr><td><a href="gs2.asp" target="MainFrame">公司的明天</td></tr>
</table>
</body>
</html>
4.left2.asp
<html>
<head><title>产品</title></head>
<body>
<table border="0" width="150">
<tr><td><a href="cp1.asp" target="MainFrame">昨天的产品</td></tr>
<tr><td><a href="cp2.asp" target="MainFrame">今天的产品</td></tr>
</table>
</body>
</html>
5.news.asp
<html>
<head><title>首页</title></head>
<body><p>首页</p></body>
</html>
6.gs1.asp
<html>
<head><title>公司</title></head>
<body><p>公司的昨天</p></body>
</html>
7.gs2.asp
<html>
<head><title>公司</title></head>
<body><p>公司的明天</p></body>
</html>
8.cp1.asp
<html>
<head><title>产品</title></head>
<body><p>昨天的产品</p></body>
</html>
9.cp2.asp
<html>
<head><title>产品</title></head>
<body><p>今天的产品</p></body>
</html>