急,跪求!!

dsppcn 2006-05-31 09:08:20
我用的左边是树形菜单,如何当我点击左边菜单得某一个项时,需要只刷新右边的界面,左边和上面的页面不刷新,我该如何处理,我用的是vbscript+sqlserver2000;下面是我的界面设置;如何只刷新你好那个界面呢?谢谢!急!
<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 1</title>
</head>

<body>

<div align="center">
<center>
<table border="1" width="898" height="63">
<tr>
<td width="898" height="63"></td>
</tr>
</table>
</center>
</div>
<div align="right">
<table border="1" width="900" height="50">
<tr>
<td width="88" height="50"></td>
<td width="796" height="50" align="center">你好</td>
</tr>
</table>
</div>

</body>

</html>
...全文
285 15 打赏 收藏 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
gsyst520 2006-05-31
  • 打赏
  • 举报
回复
框架轻松搞定
Bullforg 2006-05-31
  • 打赏
  • 举报
回复
http://www.webjx.com/htmldata/2005-08-17/1124251625.html
iasky 2006-05-31
  • 打赏
  • 举报
回复
ajax iframe
「已注销」 2006-05-31
  • 打赏
  • 举报
回复
你在所有的链接的target里写上你的右侧框架的名字

比如说:
<a href="asd.asp" target="main">右侧框架打开页面</a>
班门弄斧 2006-05-31
  • 打赏
  • 举报
回复
用框架,然后指向到右侧区域显示即可!
Mars_ZHOU 2006-05-31
  • 打赏
  • 举报
回复
非框架,既ajax
dsppcn 2006-05-31
  • 打赏
  • 举报
回复
兄弟们!由于我是刚刚学习,当我点击左边菜单的时候,好像不是右边界面得刷新,然后我点击右边的时候,是右边界面刷新,我希望我点击左边或右边得时候都是右边界面刷新。还有,能否告诉我,如果右边界面有数据要提交到数据库,我该如何处理呢?我该如何去指向action呢?非常感谢!急!!!
jinfeng003 2006-05-31
  • 打赏
  • 举报
回复
如果觉得框架改动大的话,可以在现有页面上加入<iframe>
这样界面改动比较少

<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 1</title>
</head>

<body>

<div align="center">
<center>
<table border="1" width="898" height="63">
<tr>
<td width="898" height="63"></td>
</tr>
</table>
</center>
</div>
<div align="right">
<table border="1" width="900" height="50">
<tr>
<td width="88" height="50"><a href="123.asp" target="ifrm">链接</a></td>
<td width="796" height="50" align="center">
<iframe name="ifrm" width=100% height=100%></iframe>
</td>
</tr>
</table>
</div>

</body>

</html>
jidechen 2006-05-31
  • 打赏
  • 举报
回复
老大,不要“跪求”啊。这不是什么急得要命的事干嘛这样嘛!
楼上正解了。
cleverbing 2006-05-31
  • 打赏
  • 举报
回复
顶。用框架最合适不过了!
阿_浩 2006-05-31
  • 打赏
  • 举报
回复
用类似的框架就可以了
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="top.asp" name="topFrame" scrolling="NO" noresize >
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="left.asp" name="leftFrame" scrolling="NO" noresize>
<frame src="main" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
在left.asp中超链的target设置为mainFrame就可以了
gxh7506 2006-05-31
  • 打赏
  • 举报
回复
同意楼上,用框架写吧:
例子如:将top.asp,left.asp,right.asp换成你自己的页面试试
<HTML>
<HEAD>
<TITLE>主页</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</HEAD>
<frameset rows="85,*" cols="*">
<frame src="top.asp" noresize scrolling="no" frameborder="no">
<frameset cols="170,*">
<frame name="contents" target="main" src="left.asp" noresize frameborder="no">
<frame name="main" src="right.asp" noresize frameborder="no">
</frameset>
<noframes>
<body>
<p>此网页使用了框架,但您的浏览器不支持框架。</p>
</body>
</noframes>
</frameset>
</HTML>
itzhiren 2006-05-31
  • 打赏
  • 举报
回复
使用框架吧
是是非非 2006-05-31
  • 打赏
  • 举报
回复
用框架
dsppcn 2006-05-31
  • 打赏
  • 举报
回复
非常感谢各位兄弟姐妹们,已经搞定,谢谢!

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧