📄 l_wy.asp
字号:
<%
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)&"..."
else
cutstr=tempstr
end if
end function%>
<%
set rs_yenews=server.createobject("adodb.recordset")
sqltextye="select top 8 * from yenews order by id desc"
rs_yenews.open sqltextye,conn,1,1
%>
<br>
<table width="37%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="290" height=40><img src="Img/wy_top.gif" width=290 height=40></td>
</tr>
<%i=0
do while not rs_yenews.eof%>
<tr align="center">
<td height=20 align="left" background=img/bg_top.gif> ·<a href="yenewsInfo.asp?id=<%=rs_yenews("id")%>">
<%=cutstr(rs_yenews("title"),22)%></a>
</td>
</tr>
<% rs_yenews.movenext
i=i+1
if i=8 then exit do
loop
rs_yenews.close %>
<tr align="center">
<td width="290" height=8 background=img/bg_bottom.gif> </td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -