下面代码要这样修改才能实现不间断循环滚动?
谢谢。
<%
sql="select top 4 * from hw where tuijian=-1 order by hw_id DESC"
rs.open sql,conn,3,3
if rs.eof then
%>
<td width="132" valign="top" align="left" bgcolor="#FFFFFF">暂且没有推荐商品</td>
<%end if
i=0
do while not rs.eof
i=i+1
%>
<td align="left" valign="middle" bgcolor="#FFFFFF" width="450" height="150">
<TABLE align=center border=0 cellPadding=0
cellSpacing=0>
<TBODY>
<TR>
<TD height=10 line-height: 150%">
<IMG
src="IMAGES/bg_0ltop.gif"></TD>
<TD background="IMAGES/bg_01.gif"
height=10 line-height: 150%"></TD>
<TD height=10 line-height: 150%">
<IMG
src="IMAGES/bg_0rtop.gif"></TD></TR>
<TR>
<TD background="IMAGES/bg_03.gif"
width=10 line-height: 150%"> </TD>
<TD align=middle bgColor=#ffffff
vAlign=center line-height: 150%">
<p align="center"><a href="views.asp?hw_id=<%=rs("hw_id")%>"><img src="<%=rs("hw_pic")%>" border="0" height="100" width="134"></a></TD>
<TD background="IMAGES/bg_04.gif"
width=10 line-height: 150%"> </TD></TR>
<TR>
<TD height=10 line-height: 150%">
<IMG
src="IMAGES/bg_0lbottom.gif"></TD>
<TD background="IMAGES/bg_02.gif"
height=10 line-height: 150%"></TD>
<TD height=10 line-height: 150%">
<IMG
src="IMAGES/bg_0rbottom.gif"></TD></TR></TBODY></TABLE>
</td>
<%
if (i mod 4=0) and i>=4 then
%>
</tr>
<tr>
<%
end if
if i>=4 then exit do end if
rs.movenext
loop
rs.close
%>