主题:[讨论]帮我看看这段asp代码怎么改
<table width="100%" height="30" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#D4E2ED">
<tr>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from lcase order by id desc"
rs.open sql,conn,1,1
rs.pagesize=4
rs.absolutepage=1
if request("page")<>"" then rs.absolutepage=request("page")
psize=rs.pagesize
pcount=rs.recordcount
page=request("page")
if page="" or page<1 then
page=1
end if
rcount=1
do while not rs.eof and psize>0
%>
<td align="middle" valign="middle" bgcolor="#FFFFFF"><div align="center" class="style3 STYLE12">
<div align="center" class="style3">
<div align="center" class="style3">
<div class="al2z">
<div class="al21"> <a href="<%=rs("lurl")%>" target="_blank"><img src="<%if rs("lpic")="" then%>/UploadFile/Cy.jpg<%else%><%=rs("lpic")%><%end if%>" alt="和金网" width="139" height="83" border="0" /></a></div>
<a href="<%if rs("lpic")="" then%>/UploadFile/Cy.jpg<%else%><%=rs("lpic")%><%end if%>" target="_blank"><img src="Images/index_imgf.gif" alt="和金网" width="67" height="18" border="0" /></a> <a href="<%=rs("lurl")%>" target="_blank"><img src="Images/index_imgg.gif" alt="和金网" width="66" height="18" border="0" /></a> </div>
</div>
</div>
</div>
<div align="center" class="style3 style7 style3">
<div align="center"></div>
</div>
<div align="center" class="style3"></div>
<div align="center" class="style8 style3"></div></td>
<%
if rcount = 2 then
%>
</tr><tr>
<%
end if
%>
<%
rs.movenext
rcount=rcount+1
psize=psize-1
loop
if page+1>rs.pagecount then
xia=page
elseif page+1<rs.pagecount then
xia=page+1
elseif page+1=rs.pagecount then
xia=rs.pagecount
end if
if page-1<0 or page-1=0 then
shang=page
else
shang=page-1
end if
%> </tr>
</table>
[size=3][b]上面这段代码是我网站上的显示两行两列的代码,我想让它显示3行两列或4行两列的图片,不知道怎么改,请高手帮帮忙,谢谢!![/b][/size]
<tr>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from lcase order by id desc"
rs.open sql,conn,1,1
rs.pagesize=4
rs.absolutepage=1
if request("page")<>"" then rs.absolutepage=request("page")
psize=rs.pagesize
pcount=rs.recordcount
page=request("page")
if page="" or page<1 then
page=1
end if
rcount=1
do while not rs.eof and psize>0
%>
<td align="middle" valign="middle" bgcolor="#FFFFFF"><div align="center" class="style3 STYLE12">
<div align="center" class="style3">
<div align="center" class="style3">
<div class="al2z">
<div class="al21"> <a href="<%=rs("lurl")%>" target="_blank"><img src="<%if rs("lpic")="" then%>/UploadFile/Cy.jpg<%else%><%=rs("lpic")%><%end if%>" alt="和金网" width="139" height="83" border="0" /></a></div>
<a href="<%if rs("lpic")="" then%>/UploadFile/Cy.jpg<%else%><%=rs("lpic")%><%end if%>" target="_blank"><img src="Images/index_imgf.gif" alt="和金网" width="67" height="18" border="0" /></a> <a href="<%=rs("lurl")%>" target="_blank"><img src="Images/index_imgg.gif" alt="和金网" width="66" height="18" border="0" /></a> </div>
</div>
</div>
</div>
<div align="center" class="style3 style7 style3">
<div align="center"></div>
</div>
<div align="center" class="style3"></div>
<div align="center" class="style8 style3"></div></td>
<%
if rcount = 2 then
%>
</tr><tr>
<%
end if
%>
<%
rs.movenext
rcount=rcount+1
psize=psize-1
loop
if page+1>rs.pagecount then
xia=page
elseif page+1<rs.pagecount then
xia=page+1
elseif page+1=rs.pagecount then
xia=rs.pagecount
end if
if page-1<0 or page-1=0 then
shang=page
else
shang=page-1
end if
%> </tr>
</table>
[size=3][b]上面这段代码是我网站上的显示两行两列的代码,我想让它显示3行两列或4行两列的图片,不知道怎么改,请高手帮帮忙,谢谢!![/b][/size]