整个表都出来了
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<%dim lb,a
lb=Request.Querystring("class")
if lb="01" then
response.write"<img src='image/cy.gif' height='44' width='575'>"
end if
if lb="02" then
response.write"<img src='image/yl.gif' height='44' width='575'>"
end if
if lb="04" then
response.write"<img src='image/jj.gif' height='44' width='575'>"
end if
if lb="05" then
response.write"<img src='image/fs.gif' height='44' width='575'>"
end if
%>
</td>
</tr>
<tr>
<td><img src="image/bg-top.gif" width="575" height="31"></td>
</tr>
<tr>
<td background="image/bg-mid.gif"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="49%">
<% set cs=server.createobject("adodb.recordset")
sql="select top 50 * from gq where lbid='"&str&"'"
cs.open sql,conn,1,1
i=0
%>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<% DO WHILE NOT CS.EOF%>
<% if (i mod 2)=0 then%>
<% if (i mod 4)=0 then%>
<tr>
<%else%>
<tr>
<%end if%>
<%end if%>
<td width="50%"><a href="detail/images.asp?id=<%=cs("lname")%>" target="_blank"><%=cs("subject")%></a></td>
<% i=i+1
cs.movenext
loop%>
</tr>
</table> </td>
<%
set cs=server.createobject("adodb.recordset")
sql="select top 20 * from 打折信息 where 类型='"&str&"'"
cs.open sql,conn,1,1%>
<td width="51%" align="left" valign="top">
<% DO WHILE NOT CS.EOF
response.write "·<a href=detail/images.asp?id="&cs("帐号")&" target=_blank>"&left(cs("打折信息"),10)&"....</a><br>"
cs.movenext
loop
代码如下:
<tr>
<td>
<%dim lb,a
lb=Request.Querystring("class")
if lb="01" then
response.write"<img src='image/cy.gif' height='44' width='575'>"
end if
if lb="02" then
response.write"<img src='image/yl.gif' height='44' width='575'>"
end if
if lb="04" then
response.write"<img src='image/jj.gif' height='44' width='575'>"
end if
if lb="05" then
response.write"<img src='image/fs.gif' height='44' width='575'>"
end if
%>
</td>
</tr>
<tr>
<td><img src="image/bg-top.gif" width="575" height="31"></td>
</tr>
主要的代码就是上面的那些了,如果静态的图片没有问题。