asp文章怎么限制字数
<divclass="wzh"id="hdaa"><divclass="vtia"id="btia"><divclass="btiax"id="XY"><%=get_ch...
<div class="wzh" id="hdaa">
<div class="vtia" id="btia">
<div class="btiax" id="XY"><%=get_channel(xiaoyewl_pd(4),"c_name")%></div>
<div class="gd" id="gdlji"><a href="<%=c_url(xiaoyewl_pd(4))%>" tppabs="<%=c_url(xiaoyewl_pd(4))%>">更多</a></div>
</div>
<%
Set rs = ado_query("select top 7 * from cms_info where SH = 1 AND i_parent in ("&get_channel(xiaoyewl_pd(4),"c_sub")&") order by i_order desc , id desc")
Do While Not rs.EOF
IF str_time("yy-mm-dd",rs("i_date")) = str_time("yy-mm-dd",Now()) Then
riqixg = " style=""color:#F00"""
ELSE
riqixg = ""
END IF
%>
<div id="shoyewz">
<div id="Tz_shoyetub"><img src="<%=skin%>tz_img/article_list.gif" width="16" height="16" align="absmiddle" tppabs="tz_img/article_list.gif"></div>
<div id="Tz_btikais"><a class="yidong" style="<%=rs("i_bold")&rs("i_color")%>" href="<%=i_url(rs("id"))%>" target="<%=rs("i_target")%>" title="<%=rs("i_name")%>"><span ><span style="color:#6666CC"><%=str_left(rs("i_name"),58,"...")%></span></span></a></div>
<div id="Tz_shoyrqi"><span class="float_right"<%=riqixg%>><%=str_time("yy-mm-dd",rs("i_date"))%></span></div>
</div>
<%
rs.movenext
Loop
rs.Close
Set rs = Nothing
%>
</div> 展开
<div class="vtia" id="btia">
<div class="btiax" id="XY"><%=get_channel(xiaoyewl_pd(4),"c_name")%></div>
<div class="gd" id="gdlji"><a href="<%=c_url(xiaoyewl_pd(4))%>" tppabs="<%=c_url(xiaoyewl_pd(4))%>">更多</a></div>
</div>
<%
Set rs = ado_query("select top 7 * from cms_info where SH = 1 AND i_parent in ("&get_channel(xiaoyewl_pd(4),"c_sub")&") order by i_order desc , id desc")
Do While Not rs.EOF
IF str_time("yy-mm-dd",rs("i_date")) = str_time("yy-mm-dd",Now()) Then
riqixg = " style=""color:#F00"""
ELSE
riqixg = ""
END IF
%>
<div id="shoyewz">
<div id="Tz_shoyetub"><img src="<%=skin%>tz_img/article_list.gif" width="16" height="16" align="absmiddle" tppabs="tz_img/article_list.gif"></div>
<div id="Tz_btikais"><a class="yidong" style="<%=rs("i_bold")&rs("i_color")%>" href="<%=i_url(rs("id"))%>" target="<%=rs("i_target")%>" title="<%=rs("i_name")%>"><span ><span style="color:#6666CC"><%=str_left(rs("i_name"),58,"...")%></span></span></a></div>
<div id="Tz_shoyrqi"><span class="float_right"<%=riqixg%>><%=str_time("yy-mm-dd",rs("i_date"))%></span></div>
</div>
<%
rs.movenext
Loop
rs.Close
Set rs = Nothing
%>
</div> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询