frameset

来源:百度知道 编辑:UC知道 时间:2024/06/04 04:15:19
有三个frame src组成的framesrc,分别是name 为top和leftframe和rightframe当点击左边的那个名为leftframe的连接时,rightframe显示的就是leftframe连接指向的地址网页,谁能给我做下这个题吗 谢谢

<a href="shopping.html" target="rightframeName">显示右边</a>
shopping.html是右边的页面,rightframeName是rightframe 的name值

非常简单,在leftframe的页面做链接时入target属性,值写上要指向frame的name

如:

<a href="1.htm" target="rightframe">文字文字文字文字</a>

<html>
<head>
<title>frameset框架</title>
</head>
<frameset rows="20%,*">
<frame src="topyemian.html" name="top"></frame>
<frameset cols="20%,*">
<frame src="leftframeyemian.html" name="leftframe"></frame>
<frame src="rightframeyemian.html" name="rightframe"></frame>
</frameset>
</frameset>
</html>