怎么让页面居中显示?
<!--#include file="public/public.asp"--><!--#include file="public/pager.asp"-->
<!--#include file="w163_conn.asp"-->
<!--#include file="mall/webconfig.asp"-->
<%
dim pathLevel
pathLevel=0
call openDb(pathLevel, DB_PATH)
%>
<%
startime=timer()
db="mall/shuju20060308/shuju20060308.asp" '数据库
on error resume next
connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
set conn1=server.createobject("ADODB.CONNECTION")
conn1.open connstr
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>九峰连锁企业</title>
<style type="text/css">
<!--
@import url("style.css");
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.STYLE2 {color: #FF0000}
.STYLE3 {color: #333333}
.STYLE4 {color: #FFFFFF}
-->
</style>
<script language="javascript" type="text/javascript">
<!--
var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;
<%
imgurl=""
sql1="select * from T_News where N_ImgUrl<>'no' and N_ImgUrl<> '' order by N_ID desc"
Set rs2= Server.CreateObject("ADODB.Recordset")
rs2.open sql1,conn,1,1
dim i
i=0
do while not rs2.eof
response.write "bannerAD["&i&"]=""/mall/"&rs2("N_ImgUrl")&""";"
rs2.movenext
i=i+1
loop
rs2.close
%>
var preloadedimages=new Array();
for (i=1;i<6;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=bannerAD[i];
}
function setTransition(){
if (document.all){
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
bannerADrotator.filters.revealTrans.apply();
}
}
function playTransition(){
if (document.all)
bannerADrotator.filters.revealTrans.play()
}
function nextAd(){
if(adNum<bannerAD.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.bannerADrotator.src=bannerAD[adNum];
playTransition();
theTimer=setTimeout("nextAd()", 6000);
}
function jump2url(){
jumpUrl=bannerADlink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
function displayStatusMsg() {
status=bannerADlink[adNum];
document.returnValue = true;
}
//-->
</script>
</head>
<body>
<!--#include file="top.asp" -->
<table width="1004" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="231" rowspan="5" valign="top" background="images/leftbj.gif"><table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/left01.gif" width="231" height="27" /></td>
</tr>
<tr>
<td height="163" background="images/left-bj01.gif"><table width="95%" border="0">
<tr>
<td><!--#include file="memberlogin.asp"--></td>
</tr>
</table></td>
</tr>
</table>
<table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="234" valign="top" background="images/left-bj02.gif"><table width="86%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td height="58"> </td>
</tr>
<tr>
<td><table width="77%" border="0" align="center" cellpadding="0" cellspacing="0" class="fs-12px">
<%
set rs=Server.CreateObject("Adodb.recordset")
Sql ="Select top 7 * from T_Announce order by A_Id"
rs.open sql,conn,1,1
do while not rs.eof
%>
<tr>
<td colspan="2">‖<a href="ppls.asp?id=<%=rs("A_Id")%>" target="_blank"><%=rs("A_Title")%></a></td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
<tr>
<td width="74%"></td>
<td width="26%"><a href="ppls.asp"><img src="images/more01.gif" width="46" height="16" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/left02.gif" width="231" height="36" /></td>
</tr>
<tr>
<td background="images/left-bj03.gif"><table width="78%" border="0" align="right" cellpadding="0" cellspacing="0" class="fs-12px">
<%
set rs2=Server.CreateObject("Adodb.recordset")
Sql ="Select top 5 * from T_cwh order by N_ID"
rs2.open sql,conn,1,1
do while not rs2.eof
%>
<tr>
<td height="24"><img src="images/ioc02.gif" width="9" height="7" /> <a href="cwhshow.asp?id=<%=rs2("N_Id")%>&cid=<%=rs2("NC_Id")%>" title="<%=rs2("N_Title")%>" class="lsa" target="_blank">
</a><a href="cwhshow.asp?id=<%=rs2("N_Id")%>&cid=<%=rs2("NC_Id")%>" title="<%=rs2("N_Title")%>" class="lsa" target="_blank">
<%
response.write left(rs2("N_Title"),12)
%>
</a><a href="cwhshow.asp?id=<%=rs2("N_Id")%>&cid=<%=rs2("NC_Id")%>" title="<%=rs2("N_Title")%>" class="lsa" target="_blank"> </a></td>
</tr>
<%
rs2.movenext
loop
rs2.close
%>
</table></td>
</tr>
<tr>
<td height="13" valign="top"><img src="images/left03.gif" width="231" height="9" /></td>
</tr>
</table>
<table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/left04.gif" width="231" height="40" /></td>
</tr>
<tr>
<td valign="top" background="images/left-bj03.gif"><table width="78%" border="0" align="right" cellpadding="0" cellspacing="0" class="fs-12px">
<%
set rs3=Server.CreateObject("Adodb.recordset")
Sql ="Select top 5 * from T_hmt order by N_ID"
rs3.open sql,conn,1,1
do while not rs3.eof
%>
<tr>
<td height="24"><img src="images/ioc02.gif" width="9" height="7" /> <a href="jfhmtshow.asp?id=<%=rs3("N_Id")%>&cid=<%=rs3("NC_Id")%>" title="<%=rs3("N_Title")%>" class="lsa" target="_blank"><%=left(rs3("N_Title"),14)%></a></td>
</tr>
<%
rs3.movenext
loop
rs3.close
set rs3 = nothing
%>
</table></td>
</tr>
<tr>
<td height="20" valign="top"><img src="images/left03.gif" width="231" height="9" /></td>
</tr>
</table>
<table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="140" background="images/left-bj04.gif"><table width="86%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td><table width="73%" height="83" border="0" align="center" cellpadding="0" cellspacing="0" class="fs-12px">
<tr>
<td height="53" colspan="2">用户名:
<input name="textfield3" type="text" size="13" />
密 码:
<input name="textfield22" type="text" size="13" /></td>
</tr>
<tr>
<td width="46%" height="26"> </td>
<td width="54%"><img src="images/ioc01.gif" width="15" height="20" align="absmiddle" /><span class="fs-lv">立即登录</span></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="535" bgcolor="#CDF289"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><span class="STYLE2"><marquee onMouseOver="this.stop()" onMouseOut="this.start()" scrollAmount="3">
欢迎光临九峰连锁企业网站! 祝您心情愉快!
</marquee></span></td>
</tr>
</table></td>
<td width="218" height="36" valign="top" background="images/right-bj.gif"><img src="images/right01.gif" width="218" height="36" /></td>
<td width="20" valign="top" bgcolor="#CDF289"> </td>
</tr>
<tr>
<td width="535" rowspan="2" valign="top" background="images/bj.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2%" height="878"> </td>
<td width="98%" valign="top"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="14"><img src="images/bai.gif" width="26" height="14" /></td>
</tr>
</table>
<table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="83%" height="28" background="images/news-bj.gif"><img src="images/news1.gif" width="124" height="21" /></td>
<td width="17%" valign="bottom" background="images/news-bj.gif"><a href="news.asp"><img src="images/more02.gif" width="49" height="12" border="0" /></a></td>
</tr>
</table>
<table width="86%" border="0" align="center" cellpadding="0" cellspacing="0" class="fs-12px">
<%
set rs=server.createobject("adodb.recordset")
sql = "select top 5 * from T_News order by N_ID desc"
rs.open sql,conn,1,1
do while not rs.eof
%>
<tr>
<td height="26"><img src="images/ioc04.gif" width="7" height="7" /> <a href="newshow.asp?id=<%=rs("N_Id")%>&cid=<%=rs("NC_Id")%>" title=<%=rs("N_Title")%> class="lsa" target="_blank"><%
response.write (left(rs("N_Title"),28))
%>
</a> </td>
</tr>
<tr>
<td><img src="images/dotline.gif" width="449" height="3" /></td>
</tr>
<%
rs.movenext
loop
rs.close
set rs = nothing
%>
</table>
<table width="521" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="37" background="images/m-bj.gif"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="83%"><img src="images/m-01.gif" width="148" height="21" align="absmiddle" /></td>
<td width="17%"><a href="products.asp?cid=125"><img src="images/more03.gif" width="45" height="20" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="6">
<tr> <%
set rs1=server.CreateObject("Adodb.recordset")
Sql="select top 4 * from w163_books where anclassid=25 order by bookid desc"
rs1.open sql,conn1,1,1
do while not rs1.eof
%>
<td><table width="111" border="0" cellpadding="0" cellspacing="0" class="Bhui">
<tr>
<td><a href="mall/list.asp?id=<%=rs1("bookid")%>" target="_blank"><img src="mall/<%=rs1("bookpic")%>" width="111" height="86" border="0" /></a></td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="center"><a href="mall/list.asp?id=<%=rs1("bookid")%>" target="_blank"><%=rs1("bookname")%></a> <br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.,0,19,0" width="41" height="13">
<param name="movie" value="images/tbtj.swf" />
<param name="quality" value="high" />
<embed src="images/tbtj.swf" quality="high" pluginspage="http://www. type="application/x-shockwave-flash" width="41" height="13"></embed>
</object></td>
</tr>
</table></td>
<%
rs1.movenext
loop
rs1.close
set rs1=nothing
%> </tr>
</table>
<table width="521" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="37" background="images/m-bj.gif"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="83%"><img src="images/m-02.gif" width="147" height="21" align="absmiddle" /></td>
<td width="17%"><a href="jfhmt.asp"><img src="images/more03.gif" width="45" height="20" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="6">
<tr>
<td><table width="111" border="0" cellpadding="0" cellspacing="0" class="Bhui">
<tr>
<td><a href="jfhmtshow.asp?id=86&cid=5"><img src="images/01.jpg" width="110" height="100" border="0" /></a></td>
</tr>
</table></td>
<td><table width="111" border="0" cellpadding="0" cellspacing="0" class="Bhui">
<tr>
<td><a href="jfhmtshow.asp?id=30&cid=5"><img src="images/03.jpg" width="110" height="100" border="0" /></a><a href="jfhmtshow.asp?id=29&cid=5"></a></td>
</tr>
</table></td>
<td><table width="111" border="0" cellpadding="0" cellspacing="0" class="Bhui">
<tr>
<td><a href="jfhmtshow.asp?id=84&cid=5"><img src="images/02.jpg" width="110" height="100" border="0" /></a></td>
</tr>
</table></td>
<td><table width="111" border="0" cellpadding="0" cellspacing="0" class="Bhui">
<tr>
<td><a href="jfhmtshow.asp?id=27&cid=5"><img src="images/04.jpg" width="111" height="99" border="0" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><span class="STYLE3">一品清廉 应永忠</span></td>
<td align="center"><span class="STYLE3">鹬蚌相争 吴勇</span></td>
<td align="center"><span class="STYLE3">六瓣壶 范宜娟</span></td>
<td align="center"><span class="STYLE3">大梅桩 陈卫斌</span></td>
</tr>
</table>
<table width="521" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="37" background="images/m-bj.gif"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="83%"><img src="images/m-03.gif" width="147" height="22" align="absmiddle" /></td>
<td width="17%"><a href="jfsd.asp"><img src="images/more03.gif" width="45" height="20" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="97%" border="0" align="center" cellpadding="0" cellspacing="4" class="BhuiX">
<tr>
<%
set rs1=server.CreateObject("Adodb.recordset")
Sql="select top 5 * from w163_books where anclassid=28"
rs1.open sql,conn1,1,1
do while not rs1.eof
%>
<td height="58" align="center"><a href="mall/list.asp?id=<%=rs1("bookid")%>" target="_blank"><img src="mall/<%=rs1("bookpic")%>" width="84" height="105" border="0" /></a></td>
<%
rs1.movenext
loop
rs1.close
set rs1=nothing
%>
</tr>
</table></td>
</tr>
</table>
<table width="521" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="37" background="images/m-bj.gif"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="83%"><img src="images/m-04.gif" width="182" height="21" align="absmiddle" /></td>
<td width="17%"><a href="hxcytx.asp"><img src="images/more03.gif" width="45" height="20" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table>
<table width="515" border="0" align="center" cellpadding="0" cellspacing="0" class="fs-12px">
<tr>
<td><img src="images/m-line01.gif" width="515" height="7" /></td>
</tr>
<tr>
<td height="58" background="images/m-line02.gif"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="34%"><table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="51%"><table width="29%" border="0" cellpadding="0" cellspacing="0" class="BhuiX">
<tr>
<td><a href="hxcytx.asp?id=25" target="_blank"><img src="images/07.01.jpg" width="75" height="108" border="0" /></a><a href="hxcytxshow.asp?id=3&cid=2" target="_blank"></a></td>
</tr>
</table></td>
<td width="49%" class="fs-12px"><strong><a href="hxcytx.asp?id=25" target="_blank">海峡茶叶通讯07年04月</a></strong></td>
</tr>
</table></td>
<td width="1%"><img src="images/m-line04.gif" width="5" height="108" /></td>
<td width="32%"><table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="51%"><table width="29%" border="0" cellpadding="0" cellspacing="0" class="BhuiX">
<tr>
<td><a href="hxcytx.asp?id=24" target="_blank"><img src="images/06.12.jpg" width="75" height="108" border="0" /></a></td>
</tr>
</table></td>
<td width="49%"><strong class="fs-12px"><a href="hxcytx.asp?id=24" target="_blank">海峡茶叶通讯07年03月 </a></strong></td>
</tr>
</table></td>
<td width="1%"><img src="images/m-line04.gif" width="5" height="108" /></td>
<td width="32%"><table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="49%"><table width="29%" border="0" cellpadding="0" cellspacing="0" class="BhuiX">
<tr>
<td><a href="hxcytx.asp?id=23" target="_blank"><img src="images/06.11.jpg" width="75" height="108" border="0" /></a></td>
</tr>
</table></td>
<td width="51%"><strong class="fs-12px"><a href="hxcytx.asp?id=23" target="_blank">海峡茶叶通讯07年02月</a></strong></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/m-line03.gif" width="515" height="9" /></td>
</tr>
</table></td>
</tr>
</table></td>
<td valign="top" background="images/right-bj.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table width="187" height="31" border="0" align="center" cellpadding="0" cellspacing="0" class="fs-12px">
<form action="mall/research.asp" method="post" name="form2" id="form2">
<tr>
<td width="142">搜索:
<input name="searchkey" type="text" class="wenbenkuang" id="searchkey" size="15" /></td>
<td width="45"><input name="imageField" type="image" src="images/search.gif" align="absmiddle" width="45" height="20" border="0"></td>
</tr>
</form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/right03.gif" width="218" height="34" /></td>
</tr>
<tr>
<td>
<%
set rs=server.CreateObject("Adodb.recordset")
Sql="select top 1 * from T_News where N_ImgUrl<>null order by N_ID desc "
rs.open sql,conn,1,1
%>
<table width="79%" height="170" border="0" align="center" cellpadding="0" cellspacing="0" class="fs-12px">
<tr>
<td height="143"><a href="newshow.asp?id=<%=rs("N_ID")%>" target="_parent">
<img class="black-border" style="FILTER: revealTrans(duration=2,transition=20)" src="javascript:nextAd()" width="176" height="134" border="0" name="bannerADrotator" alt="活动图片"></a>
</td>
</tr>
<tr>
<td align="center"><a href="newshow.asp?id=<%=rs("N_ID")%>"><%=rs("N_Title")%></a></td>
</tr>
</table>
<%
rs.close
set rs=nothing
%>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="play.asp"><img src="images/right02.gif" width="218" height="37" border="0" usemap="#MapMap" /></a></td>
</tr>
<tr>
<td height="189" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/play01.gif" width="218" height="22" /></td>
</tr>
<tr>
<td height="131" valign="top" background="images/play03.gif"><table width="100%" height="130" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="17%" height="130"> </td>
<td width="69%"><div align="center">
<embed src="tongxun/61.MPG" width="152" height="150" type="audio/x-pn-realaudio-plugin" console="Clip1" controls="IMAGEWINDOW,ControlPanel,StatusBar" autostart="True"></embed>
</div></td>
<td width="14%"> </td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/play02.gif" width="218" height="25" /></td>
</tr>
</table></td>
</tr>
</table>
<map name="MapMap" id="MapMap">
<area shape="rect" coords="39,7,205,33" href="play.asp" />
</map>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/right04.gif" width="218" height="36" /></td>
</tr>
<tr>
<td><table width="79%" height="172" border="0" align="center" cellpadding="0" cellspacing="0" class="fs-12px">
<tr>
<td width="43%" colspan="2" class="fs-lan"> <!--#include file="info_vote.asp"--> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="4"><img src="images/right05.gif" width="218" height="4" /></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="20" valign="top"> </td>
</tr>
<tr>
<td height="222" align="center"><p><img src="images/xuanchuan.jpg" width="183" height="237" /></p>
</td>
<td width="20" valign="top"> </td>
</tr>
<tr>
<td height="4" colspan="3" valign="top"><img src="images/foot-line01.gif" width="773" height="4" /></td>
</tr>
<tr>
<td height="13" colspan="3" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%"><img src="images/foot-r.gif" width="11" height="23" /></td>
<td width="95%"><span class="STYLE3"><a href="about.asp">关于我们</a> | <a href="admin/adminlogin.asp" target="_blank">管理登陆</a> | <a href="http://mail. target="_blank">邮箱登陆</a> | <a href="mall/index.asp">网上商城</a> | <a href="bbs/index.asp" target="_blank">BBS论坛</a> | <a href="about-lxwm.asp">联系我们</a></span></td>
</tr>
</table></td>
</tr>
</table>
<table width="1004" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/foot-line02.gif" width="1004" height="4" /></td>
</tr>
</table>
<table width="1004" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="36" height="86" align="right"><img src="images/youqinglianjie.gif" width="17" height="60" /></td>
<td width="968"><table width="99%" border="0" cellspacing="4" cellpadding="0">
<tr><%
set rs1=server.CreateObject("Adodb.recordset")
sql="Select * from w163_links"
rs1.open sql,conn1,1,1
do while not rs1.eof
%>
<td align="center"><a href="<%=rs1("linkurl")%>" target="_blank"><img src="<%=rs1("linkimg")%>" width="87" height="32" / border="0"></a></td>
<%
rs1.movenext
loop
rs1.close
set rs1=nothing
%></tr>
</table></td>
</tr>
</table>
<table width="1004" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><img src="images/foot-line03.gif" width="1004" height="4" /></td>
</tr>
<tr>
<td width="254" height="76" align="center" bgcolor="#78C903"><img src="images/logo02.gif" width="57" height="61" /></td>
<td width="750" bgcolor="#78C903">福建九峰农业发展有限公司<br />
地 址:福建省福州市东街123号航空大厦12层九峰名茶<br />
电 话:0591-87678488 传 真:0591-87527021 <br />
邮 箱:jf@网 址:www.九峰名茶.cn<br />
全国免费服务热线:800-858-1159 技术支持:</td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="39,7,205,33" href="play.asp" />
</map>
</body>
</html>
网上下载的一个源码,还没有修改.INDEX.ASP 不能居中显示,感觉很难看.加了DIV不行.