⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showmsg.asp

📁 课程设计系列(ASP)代码开发的聊天室程序。
💻 ASP
字号:
<!--#include file="conn.asp"-->
<html><style type="text/css">
<!--
body,td,th {
	color: #000000;
}
-->
</style>
<body>
<table width="100%" height="30" border="0" >
  <%
   '显示聊天内容
    set rs=Server.CreateObject("ADODB.RecordSet")
    sql="select  * from  chattext  where id ORDER BY id DESC"
    rs.open sql,conn,1,1
    Do while not rs.EOF
	%>
  <tr>
    <td width="10%" height="24" align="left">
	<font color="blue" size="4"><b><i><%=rs("username")%></i></b></font></td>
	<td width="16%" height="24" align="left"><%=rs("emotion")%></td>
    <td width="4%" align="left" >对</td>
	<td width="8%" align="left">
    <font color="blue" size="4"><b><i><%=rs("rname")%></i></b></font>
	<td width="2%" align="left" >说</td>
	<td width="48%" align="left"><%=rs("msg")%>
	<td width="10%" align="left"><%=rs("posttime")%></td>
  </tr>
  <%  
   rs.movenext
	Loop
   rs.close()
   set rs=nothing
 %>
<tr>
 <td align="center">
 <form name="loading">
<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">
<tr>
   <td align="center" valign="top">   
<input  type="hidden" name="chart">
<input type="hidden" name="percent">
	<script>
	//刷新页面
	var bar = 0 
	var line = "||" 
	var amount ="||" 
	count() 
	function count(){ 
	bar= bar+1 
	amount =amount + line 
	document.loading.chart.value=amount 
	document.loading.percent.value=bar+"%" 
	if (bar<99) 
	{setTimeout("count()",20);} 
	else 
	{window.location = "showmsg.asp";;}
	}
	</script>
</table>
</form></td>
<tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -