一个底色交错表格分页不知道怎么弄, 请指点一下.谢谢.
代码如下,表格显示效果是底色交错显示,该怎么分页?谢谢.<link rel="stylesheet" rev="stylesheet" type="text/css" href="Me_Style_All_1.css" />
<!--#include file="myUrl_Conn.asp"-->
<!--#include file="myUrl_Config.asp"-->
<!--#include file="Me_Session.asp"-->
<title><%=Url_Title%></title><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#666666">
<tr>
<td height="11" align="center" bgcolor="#FFFFCC" onmouseover="this.style.backgroundColor='#ffff99'" onmouseout="this.style.backgroundColor=''"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11%" align="center" class="border-right">添加时间</td>
<td width="9%" align="center" class="border-right">网站分类</td>
<td width="27%" align="center" class="border-right">网站名称</td>
<td width="20%" align="center" class="border-right">网站地址</td>
<td width="9%" align="center" class="border-right">logo地址</td>
<td width="7%" align="center" class="border-right">浏览数</td>
<td width="7%" align="center" class="border-right">编辑</td>
<td width="5%" align="center" class="border-right">删</td>
<td width="5%" align="center">顶</td>
</tr>
</table></td>
</tr>
<%
exec="select * from Url order by Url_Id desc"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
if rs.eof and rs.bof then
response.Write("暂时没有记录!")
else
%>
<%
i=0
while not rs.eof
if i mod 2 = 0 then
%><tr>
<td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#ffffcc'" onmouseout="this.style.backgroundColor=''"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11%" align="center" class="border-right"><span class="Url_Time"><%=left(rs("Url_Time"),10)%></span></td>
<td width="9%" align="center" class="border-right"><a href="Me_Admin_Url_County.asp?County=<%=rs("Url_County")%>"><%=rs("Url_County")%></a></td>
<td width="27%" align="left" class="border-right"> <a href="Go_Url.asp?Id=<%=rs("Url_Id")%>&Url_Http=<%=rs("Url_Http")%>" title="Hits:<%=rs("Url_Hits")%>" target="_blank"><%=rs("Url_Name")%></a></td>
<td width="20%" align="left" class="border-right"> <span class="Url_Http"><%=rs("Url_Http")%></span></td>
<td width="9%" align="left" class="border-right"> <span class="Url_Http"><%=rs("logo")%></span></td>
<td width="7%" align="center" class="border-right"><span class="Url_Time"><%=rs("Url_Hits")%></span></td>
<td width="7%" align="center" class="border-right"><a href="Me_Editor_Url.asp?Id=<%=rs("Url_id")%>"><span class="Url_Time">Editor</span></a></td>
<td width="5%" align="center" class="border-right"><a href="Me_Del_Url.asp?Id=<%=rs("Url_id")%>" onClick='return confirm("确定要退出管理吗?")'><span class="Url_Time">Del</span></a></td>
<td width="5%" align="center">
<%if rs("Url_Top")="ok" then%>
<a href="Me_Top.asp?id=<%=rs("Url_Id")%>&act=no" title="取消推荐"><span class="Url_Time">?Top</span></a>
<%end if%>
<%if rs("Url_Top")="no" then%>
<a href="Me_Top.asp?id=<%=rs("Url_Id")%>&act=ok" title="推荐网站"><span class="Url_Time">Top</span></a>
<%end if%></td>
</tr>
</table></td>
</tr>
<%else%>
<tr>
<td bgcolor="#efefef" onmouseover="this.style.backgroundColor='#ffffcc'" onmouseout="this.style.backgroundColor=''"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11%" align="center" class="border-right"><span class="Url_Time"><%=left(rs("Url_Time"),10)%></span></td>
<td width="9%" align="center" class="border-right"><a href="Me_Admin_Url_County.asp?County=<%=rs("Url_County")%>"><%=rs("Url_County")%></a></td>
<td width="27%" align="left" class="border-right"> <a href="Go_Url.asp?Id=<%=rs("Url_Id")%>&Url_Http=<%=rs("Url_Http")%>" title="Hits:<%=rs("Url_Hits")%>" target="_blank"><%=rs("Url_Name")%></a></td>
<td width="20%" align="left" class="border-right"> <span class="Url_Http"><%=rs("Url_Http")%></span></td>
<td width="9%" align="left" class="border-right"> <span class="Url_Http"><%=rs("logo")%></span></td>
<td width="7%" align="center" class="border-right"><span class="Url_Time"><%=rs("Url_Hits")%></span></td>
<td width="7%" align="center" class="border-right"><a href="Me_Editor_Url.asp?Id=<%=rs("Url_id")%>"><span class="Url_Time">Editor</span></a></td>
<td width="5%" align="center" class="border-right"><a href="Me_Del_Url.asp?Id=<%=rs("Url_id")%>" onclick='return confirm("确定要执行操作吗?")'><span class="Url_Time">Del</span></a></td>
<td width="5%" align="center"><%if rs("Url_Top")="ok" then%>
<a href="Me_Top.asp?id=<%=rs("Url_Id")%>&act=no" title="取消推荐"><span class="Url_Time">?Top</span></a>
<%end if%>
<%if rs("Url_Top")="no" then%>
<a href="Me_Top.asp?id=<%=rs("Url_Id")%>&act=ok" title="推荐网站"><span class="Url_Time">Top</span></a>
<%end if%></td>
</tr>
</table></td>
</tr><%
end if
i=i+1
rs.movenext
wend
end if
%>
<tr>
<td height="2" align="center" bgcolor="#FFFFcc" onmouseover="this.style.backgroundColor='#ddf7f7'" onmouseout="this.style.backgroundColor=''">「<a onclick="javascript:history.back();"/>返回</a>」</td>
</tr>
</table>
[[it] 本帖最后由 qianbing 于 2008-8-15 19:35 编辑 [/it]]