board.asp

来自「第一次开发医院管理」· ASP 代码 · 共 48 行

ASP
48
字号
<!--#include file="conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../main.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT LANGUAGE=JavaScript>
<!--//  
                            function marquee1()                                     
                            {  document.write("<marquee behavior=scroll direction=up width=100% height=170 scrollamount=1 scrolldelay=60 onmouseover='this.stop()' onmouseout='this.start()'>")                                     
        	                }                                     
                                     
                            function marquee2()                                     
                            {                                     
	                         document.write("</marquee>")                                     
	                        }                                     
                                     
                           //-->
</SCRIPT> 
<SCRIPT LANGUAGE=JavaScript>
marquee1();
</SCRIPT>
<% set rs = conn.execute("select top 6 * from board order by id desc") 
if rs.eof and rs.bof then
Response.Write("暂时无纪录。")
else
do while not rs.eof
dim content
if len(rs("content"))>16 then
content=left(rs("content"),14)+"..."
else
content=rs("content")
end if%>
<table width="95%" border="0" align="center">
  <tr>
    <td><a href="boardd.asp?id=<%=rs("id")%>" target="_parent"><%= content%></a></td>
  </tr>
</table>
<%
rs.movenext
loop
end if
rs.close
set rs = nothing %>
<SCRIPT LANGUAGE=JavaScript>
marquee2();
</SCRIPT>

⌨️ 快捷键说明

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