ASP关于首页调用图片排列数量的问题
现在图片是单行从左到右的滚动的10张图片,我想改成一行显示三个,显示三行的9张图片效果。请教高手指教!:)代码如下:
<table align=center cellpadding=0 cellspace=0 border=0>
<tr>
<td id=demo1 valign=top>
<table border="0" align="center" cellpadding="0" cellspacing="0" cellspace="0">
<tr>
<td id="demo1" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
Set Rs=Server.CreateObject("Adodb.RecordSet")
Sql="select Top 9 * from Tx_Products where Products_ClassId=103 order by Products_Date desc"
Rs.Open sql,Conn,1,1
IF Rs.Recordcount=0 THEN
Call Page_check(4,0)
Else
While Not Rs.Eof
i=0
%>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100" border="0" cellpadding="0" cellspacing="3">
<tr>
<td><table width="100" border="1" cellpadding="0" cellspacing="3" bordercolor="999999" bgcolor="#FFFFFF" onclick="window.open('Products.asp?Id=<%= Rs("Products_Id") %>', '')" style="CURSOR:hand">
<tr>
<td align="center"><a href='Products.asp?Id=<%= Rs("Products_Id") %>' title='产品名称:<%= Rs("Products_Name") %>产品编号:<%= Rs("Products_Code") %>添加时间:<%= YearDa(Rs("Products_Date")) %>'><img src="<%= Rs("Products_Pic") %>" alt="" width="180" height="180" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="center"><div align="center"><span style="font-weight: bold"><%= gotTopic(Rs("Products_Name"),12,1) %> </span> </div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<%
if i mod 3 = 0 then
response.write("</tr><tr>")
end if
i=i+1
Rs.MoveNext
wend
End IF
Rs.Close
Set Rs=Nothing %>
</tr>
</table></td>
</tr>
</table></td>
<td width="15" valign="top" id="demo2"></td>
</tr>
</table>
</td>
<td id=demo2 valign=top></td>
</tr>
</table>