出现了死循环,不知道为什么
<style type="text/css"><!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style><table width="235" border="0" cellspacing="0" cellpadding="0" style="background: url(images/right2.jpg) repeat-y;margin-left:10px">
<tr>
<td><img src="images/right1.jpg" width="235" height="33" /></td>
</tr>
<tr>
<td align="center"><marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3" direction="up" height="240" width="216">
<div align="left"><span style="padding-top:9px">
<!--最新图文代码开始-->
<%
Const New_img=10
set rs_Product=server.createobject("adodb.recordset")
sqltext="select top " & New_img & " * from Product where Passed=True order by UpdateTime desc"
rs.open sqltext,conn,1,1
if not rs_Product.EOF then%>
</span> </div>
<table width="216" border="0" cellspacing="0" cellpadding="0" style="margin-left:12px">
<% Do While Not rs_Product.EOF%>
<tr>
<td valign="top" style="line-height:20px;background: url(images/dian2.jpg) repeat-x left bottom;padding-bottom:6px;padding-top:4px"><img src="<%if rs_Product("DefaultPicUrl")="" then%>Img/nopic.gif<%else%><%=rs_Product("DefaultPicUrl")%><%end if%>" width="84" height="84" border="0" align="left" style="margin-right:6px;" /><a href="#" target="_blank" class="hong"><%=cutstr(rs_Product("title"),8)%></a> <br />(<%=now()%>)</td>
</tr>
<%
if row_count mod 100=0 then
response.write "</tr><tr>"
end if
rs_Product.MoveNext
row_count=row_count+1
Loop
rs_Product.close
%>
</table>
<%if New_img >5 then%>
<%end if
else
Response.Write "暂 无 最 新 图 文"
end if
rs_Product.close
set rs_Product=nothing
%>
</marquee></td>
</tr>