紧急求助:asp调用将前两行字体改为红色

来源:百度知道 编辑:UC知道 时间:2024/06/01 02:08:10
求助:将调用前两个标题的颜色设为红色

<table width="99%" border="0" align="center" cellpadding="3" cellspacing="0">
<%
set rs11=server.CreateObject("adodb.recordset")
sql = "select top 7 id,title,time,xiaji from news where classid='"+cid+"' order by id desc"
rs11.open sql,conn,0,1
if not rs11.eof then
do while not rs11.eof
%>
<div style="widht:100%;height:24px"><div style=" float:left;"><img src="image/jian.gif" width="6" height="9" align="absmiddle">  <a href=newsinfo.asp?cid=<%= cid %>&id=<%= rs11("id") %> target=_blank><%=left(rs11("title"),geshu) %></a></div></div>

</tr>
<%
rs11.movenext
loop
else%>
<tr>
<td>没有<% =cid %&

<table width="99%" border="0" align="center" cellpadding="3" cellspacing="0">
<%
dim i
i=0
set rs11=server.CreateObject("adodb.recordset")
sql = "select top 7 id,title,time,xiaji from news where classid='"+cid+"' order by id desc"
rs11.open sql,conn,0,1
if not rs11.eof then
do while not rs11.eof
if i<=1 then
%>
<div style="widht:100%;height:24px"><div style=" float:left;"><img src="image/jian.gif" width="6" height="9" align="absmiddle"> <a href=newsinfo.asp?cid=<%= cid %>&id=<%= rs11("id") %> target=_blank><font color="#FF0000"><%=left(rs11("title"),geshu) %></font></a></div></div>

</tr>
<%
else
%>
<div style=&quo