谁懂asp代码的,帮帮我好吗?怎么改下面代码成为一行三个商品展示

来源:百度知道 编辑:UC知道 时间:2024/06/03 08:46:56
'=================================================
'过程名:ShowSmallClass_Tree
'作 用:树形目录方式显示栏目
'参 数:无
'=================================================
sub ShowSmallClass_Tree()
if rsBigClass.bof and rsBigClass.eof then
response.Write "栏目正在建设中……"
else
dim sqlClass,rsClass,strTree,BigClassNum,i,j
rsBigClass.movefirst
BigClassNum=rsBigClass.recordcount
i=1
do while not rsBigClass.eof
if i<BigClassNum then
strTree=""
else
strTree=""
end if
sqlClass="select * from SmallClass where BigClassName='" & rsBigClass("BigClassName") & "' Order by SmallClassID"
Set rsClass= Server.CreateObject("ADODB.Recordset")
rsClass.open sqlClass,conn,1,1
strTree= strTree & "<table width=180 border=0 cellpadding=0 cellspacing=0>"
strTr

用层来做

<table width="100%" border="0" cellspacing="1" ><tr align="center" ><td valign="top">
<div style="width:900px;height:500px;" >
<%
set RSs=conn.execute( "select * from shop ")
if not(RSs.eof or RSs.bof) then
do while not RSs.eof
%>

<div style="height:40px;width:210px;display:inline">
<table width="200" border="0" cellpadding="5" cellspacing="1" bgcolor="#8498CB">
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EAEBF7';" onMouseOut="this.style.backgroundColor='#FFFFFF';">
<td width="200" height="20" align="center" valign="top"><a href="shopFp.asp" title="aaa">商店名</a></td>
</tr>