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

📄 newsinfo.asp

📁 asp的网上卖东西的..看看还可以的吧
💻 ASP
字号:
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" height="22">
<%'dim i
		  i=0
		  set rs=server.CreateObject("adodb.recordset")
		  rs.open "select top 6 newsname,adddate,newsid from BJX_news order by adddate desc",conn,1,1
		  if rs.eof and rs.bof then
		  response.write "目前还没有新闻!"
		  else
		  do while not rs.eof
		  i=i+1%>
<tr> 
<td height="24"><span class="b">&nbsp;&nbsp;&nbsp;□</span>
  <%if len(trim(rs("newsname")))>24 then
		  response.write "<a href=""javascript:;"" onClick=""javascript:window.open('news.asp?id="&rs("newsid")&"','news','width=432,height=288,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" title="&year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日发布>"&left(trim(rs("newsname")),22)&"...."&"</a><br>"
		  else
		  response.write "<a href=""javascript:;"" onClick=""javascript:window.open('news.asp?id="&rs("newsid")&"','news','width=432,height=288,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" title="&year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日发布>"&trim(rs("newsname"))&"</a><br>"
		  end if
		  if i>=10 then exit do%></td>
</tr>
<%rs.movenext
		  loop
		  end if
		  rs.close
		  set rs=nothing%>
</table>                    
<TABLE cellSpacing=0 cellPadding=0 width="93%" border=0>
  <TBODY>
    <TR>
      <TD align=right><A 
                        href="dongtai.asp"><IMG height=14 alt="" 
                        src="image/hebing.gif" width=49 
                      border=0></A></TD>
    </TR>
    <TR>
      <TD align=right height=12></TD>
    </TR>
  </TBODY>
</TABLE>

⌨️ 快捷键说明

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