<frame name="contents" target="main" src=<%=Url%> scrolling="no" frameborder=YES border=10 bordercolor=DimGray>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<LINK href="style.css" type=text/css rel=STYLESHEET>
<title>查询</title>
</head><frameset rows="111,*">
<frame name="banner" scrolling="no" noresize target="contents" src="top.asp" frameborder="no" border="0" framespacing=0>
<frameset id=downFrame cols="190,*" >
<frame name="contents" target="main" src=<%=Url%> scrolling="no" frameborder=YES border=10 bordercolor=DimGray>
<frame name="main" src="main.htm">
</frameset>
<noframes>
<body> <p>此网页使用了框架,但您的浏览器不支持框架。</p> </body>
</noframes>
</frameset>
</html>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<LINK href="style.css" type=text/css rel=STYLESHEET>
<title>查询</title>
</head><frameset rows="111,*">
<frame name="banner" scrolling="no" noresize target="contents" src="top.asp" frameborder="no" border="0" framespacing=0>
<frameset id=downFrame cols="190,*" >
<frame name="contents" target="main" src=<%=Url%> scrolling="no" frameborder=YES border=10 bordercolor=DimGray>
<frame name="main" src="main.htm">
</frameset>
<noframes>
<body> <p>此网页使用了框架,但您的浏览器不支持框架。</p> </body>
</noframes>
</frameset>
</html>
case 条件1 %>
<script language="javascript">
parent.IFRAMENAME.location="***.***";
</script>
<% case 条件2 %>
<script language="javascript">
parent.IFRAMENAME.location="***.***";
</script>
<% case ...
........
end select %>
funtion aa()
{
if 条件1 then open(1....)
else open(2...);}
如何写
else response.write"<script>parent.IFRAMENAME.location="***.***";"
...
<script>
function check(){
switch(a.value){
case "1":parent.frameName.location.href='1.asp'
case "2":parent.frameName.location.href='2.asp'
case "3":parent.frameName.location.href='3.asp'
default:parent.frameName.location.href='4.asp'
}
}
</script>
<input id=a><input type=button value=go onclick="check()">