回 帖 发 新 帖 刷新版面

主题:请教个小问题!

我把页面分成左右两边,我在左边做个文字超链接,要在右边显示超链接的另一个页面,请问怎么链啊??(刚开始右边没东西的!)

回复列表 (共2个回复)

沙发

在左右两边分别定义两个框架,并定义右边框架的name属性,左边连接的代码写为:
<a href="url" target=name?>*****</a>(譬如右边框架的name属性被定义为name?)

  可以参考一下我的网,主页就使用到了这个效果!

http://210.43.134.228/studio/bluestar/index/

板凳

index.asp:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>框架</title>
</head>

<frameset cols="164,*" frameborder="0" border="0" framespacing="0">
  <frame src="manage/left.asp" name="theLeft" scrolling="auto" noresize>
  <frame src="manage/right.asp" name="theRight" scrolling="yes">
  <noframes>
  <body>

</body>
  </noframes>
</frameset>
<frameset>
</frameset>
</html>

left.asp:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>左边</title>
<base target="theRight">
</head>

<body>
<a href="http://www.94868.com/">链接到右边</a>
</body>
</html>

right.asp:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>右边</title>
</head>

<body>
右边
</body>
</html>

我来回复

您尚未登录,请登录后再回复。点此登录或注册