怎么实现像QQ一样的回复模式
发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
如何实现像QQ一样的回复模式
用asp做留言板时,怎么实现像QQ空间留言板那样,当点回复时就在要回复的地方出现一个输入框?能不能给个简单的代码示例啊? 我设了一个id,但效果不佳,不是每条留言的回复框都可以打开,而且打开的回复框都在一个位置,以下是我的代码,帮忙看看吧
<head>
<script type="text/javascript">
function changeBody(index){
switch(index){
case 1:{
document.getElementById('iDBody1').style.display = "";
document.getElementById('iDBody2').style.display = "none";
break;
}
case 2:{
document.getElementById('iDBody1').style.display = "none";
document.getElementById('iDBody2').style.display = "";
break;
}
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>主页面</title>
</head>
<body>
<%
set conn=server.CreateObject("adodb.connection")
conn.open"dsn=Discuss;uid=sa;pwd=sa"
strSql="select * from Content order by CreateTime desc"
set rs=conn.execute(strSql)
%>
<center><img src="sheji .jpg" width="1096" height="169" /></center>
<table width=603 height="23" align="center"><tr align="left">
<td width=596 lagin="left" ><font face="幼圆" color="#990033"> 欢迎光临:
<%=request.QueryString("UserName")%>
<a href=look.asp style="text-decoration:none">查看留言 </a>
<a href=write.asp?UserName=<%=request.QueryString("UserName")%> style="text-decoration:none" >写留言 </a>
<a href=seek.asp style="text-decoration:none">查看留言 </a>
<a href=back.asp style="text-decoration:none">退出留言</a></font>
</font></table>
<hr color="#993300" width="80%" align="center"/>
<%
do while not rs.eof
%><hr color="#993300" width="70%" align="center" />
<table width="70%" height="173" align="center">
<tr>
<td width="8%" rowspan="2" ><img src="images/<%=rs("Logo")%> "width="83" height="79" /><hr color="#993300" /><%=rs("UserName")%>
<hr color="#993300" />
<%=rs("Lesson")%></td>
<td width="15%" height="17">主题:</td>
<td width="62%"><%=rs("Subject")%></td>
<td width="15%"><%=rs("CreateTime")%></td>
</tr>
<tr>
<td height="145" colspan="3"><%=rs("Words")%></td>
</tr>
</table>
<center><a href="javascript:changeBody(1)"> 回复</a>
<a href="javascript:changeBody(2)">收起</a> </center>
<div style="display: none" id="iDBody1">
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
ASP如何隐藏表单
<%if Cookies_Toy ="" then
response.write "<a href='login.asp'>登录</a> <a href='reg.asp'>注册</a>"
...
-
为什么js调用css脚本后没效果
这个是css的脚本代码:
body,ul,li{margin: 0; padding: 0; border: 0;}
body {background: #f5f...
-
如何伪造post请求,求指点。。。
要查询大批(也就几万个)运单的状态,那查询网站一次最多查24个,这一个个搞会搞死人的。。
有...
-
Asp.net_简单代码设置GridView自适应列宽不变形
动态绑定的GridView由于列数不固定,而列又太多(博主做的这个项目有150个左右的字段...
-
ASP.NET下实现AJAX注册提醒
Ajax全称是,主要是利用JavaScript实现异步的数据传输,首先说异步,异步是当前操作进行的时候,用...
-
aspnet_regiis安装出错:0x80070005 拒绝访问
点击右边红色标题查看本文完整版:aspnet_regiis安装出错:0x80070005 拒绝访问安装...
-
关于网站边框
像hao123这样的网站上的边框是着么弄的?背景图片吗?http://www.hao123.com
另外哪个素材网站有实用的这内素材
-----...
-
求助!! 多表分组查询统计
高手们,帮帮忙!
用户表 D_user 为
ID Username GroupID
1 张三 2
2 李四 2
3 王五 ...
-
在Paypal提交的同时,把表单的数据提交给数据库
本帖最后由 liuyang2708 于 2012-11-20 23:14:54 编辑
在提交这个支付...
-
虚拟目录下JavaScript不能正常执行
各位大侠好,我在同一台服务器上用两种方式部署同一个网站。
第一种方法:在IIS下直接建一个网站...