这是页面源码:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>————欢迎防问————</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE type=text/css>.ziti {
COLOR: #2a2a2a; LINE-HEIGHT: 12px
}
A:link {
COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
COLOR: #717171; TEXT-DECORATION: none
}
A:hover {
COLOR: #c50707
}
TD {
COLOR: #000000; FONT-SIZE: 12px
}
body {
background-image: url();
}
</STYLE><META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<jsp:useBean id="DBconn" scope="page" class="DBconn.DBconn"/> 
<% 
String sql="select * from simple_user";
ResultSet rs=DBconn.executeQuery(sql); 
int i=1; 
for (i=1;i<7;i++) 

if (rs.absolute(i)) 
{  %>
<BODY leftMargin=0 topMargin=0
marginheight="0" marginwidth="0">
<CENTER>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=760>
  <TBODY>
  <TR>
    <TD height=79 width=174><IMG height=79 
      src="image/logo.jpg" width=174></TD>
    <TD width=99><IMG height=79 src="image/shouye.jpg" 
      width=99></TD>
    <TD width=96><IMG height=79 src="image/down.jpg" 
      width=96></TD>
    <TD width=99><IMG height=79 src="image/famous.jpg" 
      width=99></TD>
    <TD width=98><IMG height=79 src="image/member.jpg" 
      width=98></TD>
    <TD width=97><IMG height=79 src="image/ibm.jpg" 
      width=97></TD>
    <TD width=97>
<IMG height=79 src="image/us.jpg" width=97></TD>
  </TR></TBODY></TABLE><TABLE border=0 cellPadding=0 cellSpacing=0 height=133 width=760>
  <TBODY>
  <TR>
    <TD><IMG height=213 src="image/banner.jpg" 
  width=760></TD>
  </TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=511 width=760>
  <TBODY>
  <TR>
    <TD background=image/xian.gif height=511 vAlign=top 
    width=200>
      <TABLE border=0 cellPadding=0 cellSpacing=0 height=277 width="100%">
        <TBODY>
        <TR>
          <TD height=70 vAlign=bottom>&nbsp;&nbsp; &nbsp;&nbsp;<IMG height=9 
            src="image/dot4.gif" width=9> 来 宾 留 言</TD>
        </TR>
        <TR>
          <TD height=2><IMG height=1 src="image/xuxian.gif" 
            width=198></TD>
        </TR>
        <TR>
          <TD height=35 vAlign=bottom>&nbsp;&nbsp; &nbsp;&nbsp;<IMG height=9 
            src="image/dot4.gif" width=9> 介绍</TD>
        </TR>
        <TR>
          <TD height=24><IMG height=1 
            src="image/xuxian.gif" width=198></TD>
        </TR>
        <TR>
          <TD height=23>&nbsp;&nbsp; &nbsp;&nbsp;<IMG height=9 
            src="image/dot4.gif" width=9> 友 情 链 接</TD>
        </TR>
        <TR>
          <TD height=24><IMG height=1 
            src="image/xuxian.gif" width=198></TD>
        </TR>
        <TR>
          <TD height=30>&nbsp;&nbsp;&nbsp;<IMG height=14 
            src="image/dot3.gif" width=14>&nbsp;&nbsp; 
            <STRONG>5Q地带(华工BT下载)</STRONG></TD>
        </TR>
        <TR>
          <TD height=30>&nbsp;&nbsp;&nbsp;<IMG height=14 
            src="image/dot3.gif" width=14>&nbsp;&nbsp; 
            <STRONG>华中大在线</STRONG></TD>
        </TR>
        <TR>
          <TD height=30>&nbsp;&nbsp;&nbsp;<IMG height=14 
            src="image/dot3.gif" width=14>&nbsp;&nbsp; 
            <STRONG>醉晚亭</STRONG></TD>
        </TR></TBODY></TABLE></TD>
    <TD bgColor=#ffffff vAlign=top width=560>
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
        <TBODY>
        <TR>
          <TD width="1%"><IMG src="image/shadou.gif" 
            width=10 height="176"></TD>
          <TD vAlign=top width="52%">
            <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
              <TBODY>
              <TR>
                <TD><IMG height=16 src="image/biaoti.gif" 
                  width=312></TD>
              </TR></TBODY></TABLE>
            <TABLE background=image/lbg.gif border=0 
            cellPadding=0 cellSpacing=0 height=160 width="100%">
              <TBODY>
              <TR>
                <TD height=6>&nbsp;&nbsp;&nbsp;&nbsp; </TD></TR>
              <TR>
                <TD height=20>&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=8 
                  src="image/dot.gif" width=5> <A 
                  href="file:///J:/ibmclub/index.htm#"><% out.println(rs.getString(1));%></A></TD>
              </TR>
              <TR>
                <TD height=20>&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=8 
                  src="image/dot.gif" width=5> <A 
                  href="file:///J:/ibmclub/index.htm#"><% out.println(rs.getString(2));%></A></TD>
              </TR>
              <TR>
                <TD height=20>&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=8 
                  src="image/dot.gif" width=5> <A 
                  href="file:///J:/ibmclub/index.htm#"><% out.println(rs.getString(3));%></A></TD>
              </TR>
              <TR>
                <TD height=20>&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=8 
                  src="image/dot.gif" width=5> <A 
                  href="file:///J:/ibmclub/index.htm#"><% out.println(rs.getString(4));%></A></TD>
              </TR>
              <TR>
                <TD height=20>&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=8 
                  src="image/dot.gif" width=5> <A 
                  href="file:///J:/ibmclub/index.htm#"><% out.println(rs.getString(5));%></A></TD>
              </TR>
              <TR>
                <TD height=20>&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=8 
                  src="image/dot.gif" width=5> <A 
                  href="file:///J:/ibmclub/index.htm#"><% out.println(rs.getString(6));%></A></TD>
              </TR>
              <TR>
                <TD>&nbsp;</TD></TR></TBODY></TABLE>
<% } 
else 
{
break; 

}
rs.close(); 
%>

解决方案 »

  1.   

    接上面的
    </TD>
              <TD vAlign=top width="47%">
                <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
                  <TBODY>
                  <TR>
                    <TD><IMG height=16 src="image/right.gif" 
                      width=238></TD>
                  </TR>
                  <TR>
                    <TD align=middle background=image/rbg.gif 
                    height=160 vAlign=center>
                      <TABLE border=0 cellPadding=0 cellSpacing=0 height=111 
                      width=177>
                        <TBODY>
                        <TR>
                          <TD height=93 width=177>
                            <SCRIPT language=JavaScript1.2>     
    //设置下面的三行参数,分别是宽度、高度和背景色。     
    var scrollerwidth=180
    var scrollerheight=30    
    var scrollerbgcolor='#FFFFFF'     
        
    //下面设置显示的文字内容,可以使用标准的HTML语法。     
    var messages=new Array()     
    messages[0]="<font class=font9 color=#bb0314>&nbsp;&nbsp;&nbsp;&nbsp;页面2004<br>&nbsp;&nbsp;&nbsp;&nbsp;年全新改版,欢迎访问。</font>"     
    messages[1]="<font class=font9 color=#bb0314>&nbsp;&nbsp;&nbsp;&nbsp;新增加来宾留言,请新老会员<br>&nbsp;&nbsp;&nbsp;&nbsp;留言。"     
    messages[2]="<font class=font9 color=#bb0314>&nbsp;&nbsp;&nbsp;&nbsp;新增加名人堂,有华工各类<br>&nbsp;&nbsp;&nbsp;&nbsp;IT高手经验介绍 。</font>"     
         
         
    //下面的代码不要改动     
         
    if (messages.length>1)     
    i=2     
    else     
    i=0     
         
    function move1(whichlayer){     
    tlayer=eval(whichlayer)     
    if (tlayer.top>0&&tlayer.top<=5){     
    tlayer.top=0     
    setTimeout("move1(tlayer)",3000)     
    setTimeout("move2(document.main.document.second)",3000)     
    return     
    }     
    if (tlayer.top>=tlayer.document.height*-1){     
    tlayer.top-=5     
    setTimeout("move1(tlayer)",100)     
    }     
    else{     
    tlayer.top=scrollerheight     
    tlayer.document.write(messages[i])     
    tlayer.document.close()     
    if (i==messages.length-1)     
    i=0     
    else     
    i++     
    }     
    }     
         
    function move2(whichlayer){     
    tlayer2=eval(whichlayer)     
    if (tlayer2.top>0&&tlayer2.top<=5){     
    tlayer2.top=0     
    setTimeout("move2(tlayer2)",3000)     
    setTimeout("move1(document.main.document.first)",3000)     
    return     
    }     
    if (tlayer2.top>=tlayer2.document.height*-1){     
    tlayer2.top-=5     
    setTimeout("move2(tlayer2)",100)     
    }     
    else{     
    tlayer2.top=scrollerheight     
    tlayer2.document.write(messages[i])     
    tlayer2.document.close()     
    if (i==messages.length-1)     
    i=0     
    else     
    i++     
    }     
    }     
         
    function move3(whichdiv){     
    tdiv=eval(whichdiv)     
    if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){     
    tdiv.style.pixelTop=0     
    setTimeout("move3(tdiv)",3000)     
    setTimeout("move4(second2)",3000)     
    return     
    }     
    if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){     
    tdiv.style.pixelTop-=5     
    setTimeout("move3(tdiv)",100)     
    }     
    else{     
    tdiv.style.pixelTop=scrollerheight     
    tdiv.innerHTML=messages[i]     
    if (i==messages.length-1)     
    i=0     
    else     
    i++     
    }     
    }     
         
    function move4(whichdiv){     
    tdiv2=eval(whichdiv)     
    if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){     
    tdiv2.style.pixelTop=0     
    setTimeout("move4(tdiv2)",3000)     
    setTimeout("move3(first2)",3000)     
    return     
    }     
    if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){     
    tdiv2.style.pixelTop-=5     
    setTimeout("move4(second2)",100)     
    }     
    else{     
    tdiv2.style.pixelTop=scrollerheight     
    tdiv2.innerHTML=messages[i]     
    if (i==messages.length-1)     
    i=0     
    else     
    i++     
    }     
    }     
         
    function startscroll(){     
    if (document.all){     
    move3(first2)     
    second2.style.top=scrollerheight     
    }     
    else if (document.layers){     
    move1(document.main.document.first)     
    document.main.document.second.top=scrollerheight+5     
    document.main.document.second.visibility='show'     
    }     
    }     
         
    window.onload=startscroll     
         
    </SCRIPT>                        <SCRIPT language=JavaScript1.2>     
    if (document.all){     
    document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+'">')     
    document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')     
    document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')     
    document.write(messages[0])   
    document.writeln('</div>')     
    document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0">')     
    document.write(messages[1])      
    document.writeln('</div>')     
    document.writeln('</div>')     
    document.writeln('</span>')     
    }     
    </SCRIPT>
                          </TD></TR>
                        <TR>
                          <TD 
                height=17>&nbsp;</TD></TR></TBODY></TABLE></TD>
                  </TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
          <TABLE border=0 cellPadding=0 cellSpacing=0 height=335 width="100%">
            <TBODY>
            <TR>
              <TD rowSpan=2 width=10>&nbsp;</TD>
              <TD width=184><IMG height=113 src="image/a.gif" 
                width=184></TD>
              <TD width=188><IMG height=113 src="image/b.gif" 
                width=188></TD>
              <TD width=178><IMG height=113 src="image/c.gif" 
                width=178></TD>
            </TR>
            <TR>
              <TD background=image/ibm_r7_c4.gif colSpan=3 
              height=222 vAlign=top>
                <TABLE border=0 cellPadding=0 cellSpacing=0 height="90%" 
                width="100%">
                  <TBODY>
                  <TR>
                    <TD height=20 width="33%">&nbsp;&nbsp;<IMG height=9 
                      src="image/dot2.gif" width=9>&nbsp; <A 
                      href="file:///J:/ibmclub/index.htm#">vc++技术内幕例程</A></TD>
                    <TD width="34%">&nbsp;&nbsp;<IMG height=9 
                      src="image/dot2.gif" width=9>&nbsp; <A 
                      href="file:///J:/ibmclub/index.htm#">vc++技术内幕例程</A></TD>
                    <TD width="33%">&nbsp;&nbsp;<IMG height=9 
                      src="image/dot2.gif" width=9>&nbsp; <A 
                      href="file:///J:/ibmclub/index.htm#">vc++技术内幕例程</A></TD>
                  </TR>
                  <TR>
                    <TD height=20>&nbsp;&nbsp;<IMG height=9 
                      src="image/dot2.gif" width=9>&nbsp; 
                      vc++技术内幕例程</TD>
                    <TD>&nbsp;&nbsp;<IMG height=9 
                      src="image/dot2.gif" width=9>&nbsp; <A          
    后面的省略