标题:出现了死循环,不知道为什么
取消只看楼主
mamu123456
Rank: 1
等 级:新手上路
帖 子:97
专家分:0
注 册:2006-6-5
 问题点数:0 回复次数:0 
出现了死循环,不知道为什么
<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>
搜索更多相关主题的帖子: background images border center style 
2007-09-27 18:54



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-173390-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015924 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved