asp代码,如何给24小时内的新闻,添加NEW图标?代码如下
<tablewidth="740"height="113"border="1"cellpadding="0"cellspacing="0"><tr><tdwidth="2...
<table width="740" height="113" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="230" height="175"><img src="/images/caijing.jpg" width="222" height="184" /></td>
<td class="left_body"><div class="right_body6">
<ul class="ul_info_list">
<%
Set rs = ado_query("select top 6 * from pf_info where pf_parent in ("&get_category(51,"pf_sub")&") order by pf_order desc")
If rs.EOF Then
echo "暂无信息"
End If
Do While Not rs.EOF
%>
<li><span class="float_right"><%=str_time("y-mm-dd",rs("pf_date"))%></span>[<%=get_category_name(rs("pf_parent"))%>] <a<%=if_bold(rs("pf_bold"))%> href="info.asp?id=<%=rs("id")%>" target="_blank" title="<%=rs("pf_name")%>" ><%=str_left(rs("pf_name"),80,"...")%></a> </li>
<%
rs.movenext
Loop
rs.Close
Set rs = Nothing
%>
</ul>
</div></td>
</tr>
</table> 展开
<tr>
<td width="230" height="175"><img src="/images/caijing.jpg" width="222" height="184" /></td>
<td class="left_body"><div class="right_body6">
<ul class="ul_info_list">
<%
Set rs = ado_query("select top 6 * from pf_info where pf_parent in ("&get_category(51,"pf_sub")&") order by pf_order desc")
If rs.EOF Then
echo "暂无信息"
End If
Do While Not rs.EOF
%>
<li><span class="float_right"><%=str_time("y-mm-dd",rs("pf_date"))%></span>[<%=get_category_name(rs("pf_parent"))%>] <a<%=if_bold(rs("pf_bold"))%> href="info.asp?id=<%=rs("id")%>" target="_blank" title="<%=rs("pf_name")%>" ><%=str_left(rs("pf_name"),80,"...")%></a> </li>
<%
rs.movenext
Loop
rs.Close
Set rs = Nothing
%>
</ul>
</div></td>
</tr>
</table> 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询