showmsg.asp
上传用户:comthink
上传日期:2021-05-06
资源大小:1280k
文件大小:2k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <!--#include file="conn.asp"-->
  2. <HTML>
  3. <HEAD>
  4. <TITLE></TITLE>
  5. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  6. <style type="text/css">
  7. <!--
  8. body {
  9. background-color:#CCCCFF;
  10. }
  11. font {
  12. font-size: 12px;
  13. font-weight: lighter;
  14. text-decoration: none;
  15. }
  16. .style1 {color: #FF0000}
  17. table {
  18. font-size: 12px;
  19. font-weight: lighter;
  20. color: #000000;
  21. text-decoration: none;
  22. }
  23. -->
  24. </style></HEAD>
  25. <BODY>
  26. <table width="100%" height="30" border="0" >
  27.   <%
  28.    '显示聊天内容
  29.     set rs=Server.CreateObject("ADODB.RecordSet")
  30.     sql="select  * from  ip363net  where id ORDER BY id DESC"
  31.     rs.open sql,conn,1,1
  32.     for i=1 to 10 step 1
  33. %>
  34.   
  35.  <tr>
  36.     <td align="left"><%response.Write(rs("username"))%></td>
  37.     <td width="2%" align="left" ><span class="style1">对</span></td>
  38. <td align="left"><%response.Write(rs("rname"))%></td>
  39. <td width="3%" align="left" ><span class="style1">说</span></td>
  40. <td width="66%" align="left">
  41. <%
  42. response.Write(rs("msg"))
  43. if len(rs("url"))>0 then
  44. %>
  45.     <a href="topmsg.asp?url=<%=rs("url")%>" target="topmsg"><%response.Write("你有礼物点这里收听")%></a>
  46. <%
  47. end if
  48. %>
  49. <%
  50. if len(rs("gif"))>0 then
  51. %>
  52.         给你的<img src="<%=rs("gif")%>">图片漂亮吗?
  53. <%
  54. end if
  55. %>
  56. </td>
  57.     <td width="14%" align="left">
  58. <%
  59. response.Write(rs("posttime")&"<br>")
  60.    %>
  61. </td>
  62.   </tr>
  63.   <%  rs.movenext
  64.    if rs.EOF Then Exit For
  65.    next
  66.    rs.close()
  67.    set rs=nothing
  68.    %>
  69. </table>
  70. <tr>
  71.  <td align="center"><form name=loading>
  72. <table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">
  73. <tr>
  74.    <TD align="center" valign="top">
  75.    
  76.    <p><input  type="hidden" name=chart size=46 style="font-family:Arial; font-weight:bolder; color:black; background-color:#EAEAEA; padding:0px; border-style:none;">
  77. <br>
  78. <input type="hidden" name=percent size=46 style="font-family:Arial; color:black; background-color:#EAEAEA;text-align:center; border-width:medium; border-style:none;">
  79. <script>var bar = 0 
  80. var line = "||" 
  81. var amount ="||" 
  82. count() 
  83. function count(){ 
  84. bar= bar+1 
  85. amount =amount + line 
  86. document.loading.chart.value=amount 
  87. document.loading.percent.value=bar+"%" 
  88. if (bar<99) 
  89. {setTimeout("count()",20);} 
  90. else 
  91. {window.location = "showmsg.asp";;}
  92. }
  93. </script></p></TD>
  94. </tr>
  95. </table>
  96. </FORM></td>
  97. <td></td>
  98. <tr>
  99. </table>
  100. <!-- START NNR Site Census V5.1 -->
  101. <!-- COPYRIGHT 2004 Nielsen // Netratings -->
  102. <!-- END NNR Site Census V5.1 --></BODY>
  103. </HTML>