asp iframe问题

来源:百度知道 编辑:UC知道 时间:2024/05/14 18:43:43
有三个页面 a.asp b.asp c.asp 这三个页面是毫无相关的页面 a里有 iframe name=main (a里iframe的src=""中地址的 不是c.asp) b里有<a href="c.asp">c</a> 在b里点击c的时候让c.asp显示在a的iframe里 这个功能怎么实现?
还是有点不明白,能讲的详细点吗? 最好是有代码
谢谢了 我是个新手 第一次作网页 (对上面我的问题的补充:在a.asp没打开的情况下 链接C 使C.ASP 显示在A.ASP的IFRAME中)

A。ASP没打开嘛,怎么链。
思路:B。ASP里的C文字链接到A。ASP页面,并在SRC的地方控制变量。传递一个参数变量。如果是B。ASP链过来的,这个SRC就等于C。ASP。

在b.asp 里写
<a href="a.asp?openmm="打开c"" target=right> c </a>

在a.asp 里判断
if requst("openmm")="打开c" then
iframe 里的初始页面为 c.asp
else
不变

<a href="c.asp" target="main">c</a>

'以下是b.asp中含a.asp c.asp写法:
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=gb2312">
<title></title>
</head>
<body>
<table border=0>
<tr>
<td><a href="c.asp" target=right>c</a></td>
<td><iframe name=right scrolling=no frameborder=1 src="a.asp" height=200 width=500></iframe></td>
</tr>
</table>
</body>
</html>