如何让页面在指定的框架中显示
我用vbscript写的
我的页面分为上下两个框架,我想在上面框加中点击按扭,然后要页面显示在下面框架中,可我写的总是显示在上面框架中,下面的框架没有变化
这是我的代码,还请高手们指点下小弟
<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 ">
<title> New Page 2 </title>
</head>
<frameset rows= "150,* ">
<frame name= "contents " target= "main " src= "bb.html ">
<frame name= "main " src= "log.asp ">
<noframes>
<body>
<p> 此网页使用了框架,但您的浏览器不支持框架。 </p>
</body>
</noframes>
</frameset>
</html>
------解决方案--------------------上面一个框架的代码中要添加target= "说明 ",该说明应该和下面框架的target定义的一致。
------解决方案--------------------content中:
<a href= "x " target = "main ">
<form target= "main ">
js: top.main.location.href= "xxxx ";
------解决方案--------------------在你的href的target=“框架名” 也可以
------解决方案--------------------给你一个左右的框架你自己研究下
<html>
<head>
<TITLE> </TITLE>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<meta name= "keywords " content= " ">
<meta name= "keywords " content= " ">
</head>
<frameset cols= "180,* " frameborder= "NO " border= "0 " framespacing= "0 " rows= "* ">
<frame name= "leftFrame " scrolling= "AUTO " noresize src= "dir.asp ">
<frame name= "mainFrame " src= "admin.asp ">
</frameset>
<noframes>
<body bgcolor= "#FFFFFF " text= "#000000 ">
</body>
</noframes>