<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>AK时代</title>
<link href="Style/Style.css" rel="stylesheet" type="text/css" />
<link href="Style/Reo.css" rel="stylesheet" type="text/css" />
<meta name="gfdg" content="" />
<style type="text/css">
<!--
.STYLE1 {
color: #FF0000;
display: none;
}
-->
</style>
</head>
<body><a name="top"></a>
<div id="topbar"><span class="sleft"><a href="#" title="展开登录框">登录</a><a href="#">注册</a></span><span class="sright"><font color=#215CA1>温馨提示</font></span></div>
<div id="maindiv">
<div id="midbar">
<!----头部-->
<div class="left"><img src="Style/Images/logo.png" width="124" height="71" /></div>
<div id="nav">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr><td class="nav-left"></td>
    <td align="left" class="nav-global"><div id="nav-dvbbs">AK时代</div></td>
    <td align="right" class="nav-global"><div class="tdv1"><input name="textfield2" type="text" class="inp" value="Search..." />
     <a href="#" class="good">高级</a></div></td><td class="nav-right"></td></tr></table></div>
<!--主体部分开始-->
<div id="box2"><span class="sp1"><img src="Style/Images/home.gif" /></span><span class="sp3">
  <a href="index.jsp">AK时代</a>&raquo;<a href="#">JAVA技术</a>&raquo;<a href="#">JAVA技术</a></span></div>
<!--分页导航--> 
  <div><div class="pagesbox"><div class="ddtr">
  <a href="#" class="a">首页</a>
  <a href="#" class="a">上一页</a>
  <a href="#" class="a">下一页</a>
  <a href="#" class="a">尾页</a></div>
  <div class="pen"><span>Pages: 2/2&nbsp;&nbsp;</span><input id="pp" onkeyup="javascript:if(isNaN(this.value))this.value=''"; size=3/><button onclick="goon('pp')">Go</button></div>
  <div class="imd">
  <span><a href="#"><img src="Style/Images/reply.png" border="0" style="cursor:pointer"/></a></span>&nbsp;&nbsp;
  <span><a href="#"><img src="Style/Images/post.png" border="0" style="cursor:pointer" /></a></span></div></div></div>
  
  
<script language="javascript" type="text/javascript">
function findlayer(id){

if(id=1){
    
}

}
</script>
 
 
   
  
  
  
  
  
  <div id="boxro" class="boxre1 t">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td colspan="2" class="h">主题&nbsp;:&nbsp;马尔代夫极品享乐天堂</td>
      </tr>
    <tr>
      <td rowspan="3" class="td4" style="width:200px;" valign="top"><div class="userbox">
  <div class="username">随风尔雅</div>
  <div class="userhead"><img src="Images/head/006.JPG" width="140" height="226" /></div>
  <div class="usercoun">积分&nbsp;:&nbsp;<span style="color:#FF0000">200</span></div>
  <div class="usercoun">等级&nbsp;:&nbsp;大精灵使</div>
  <div class="usercoun" style="height:20px;"><img src="Images/a5.gif" /></div>
      </div></td>
      <td class="td1"><span class="s3">楼主</span>  <span class="s7">发表于: 01-04</span> </td>
    </tr>
    <tr>
      <td><div class="td2">      
        <p>这里的一切都是净的。空气是净的,充满新鲜的氧气;道路是净的,幽静舒坦;沙滩是净的,纯白柔软;大海是净的,清澈透明。在这净的世界里,人的心灵也是净的了。忘记了世俗的烦恼,没有忙碌的工作,没有了时间和规则的约束,只有随性而为、毫无顾忌地放松和慵懒。远处沙滩上,椰子树伸出长长的树干,挺立在海面之上,不知何时,树干上垂着一个吊床,一位游客躺在里面享受着日光浴。他的不远处,另一位MM躺在游泳圈里,随波荡漾,正在望着天空发呆。远远望去,竟感觉不出他俩究竟谁在空中,谁在水中?大概是天空因大海的清澈而清澈,大海因天空的透明而透明的缘故吧。
</div></td></tr><tr>
      <td class="td3">举报 <a href="#top">顶端</a></td></tr>
  </table>
</div><div class="boxre1 t">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td rowspan="3" class="td4" style="width:200px;" valign="top"><div class="userbox">
  <div class="username">冷紫薰</div>
  <div class="userhead"><img src="Images/head/002.JPG" width="140" height="226" /></div>
  <div class="usercoun">积分&nbsp;:&nbsp;<span class="STYLE1">200</span></div>
  <div class="usercoun">等级&nbsp;:&nbsp;大精灵使</div>
  <div class="usercoun" style="height:20px;"><img src="Images/a5.gif" /></div>
  
  </div></td>
      <td class="td1"><span class="s3">1楼</span>  <span class="s7" style="color:#FF0000">发表于: 01-04</span> </td>
    </tr>
    <tr>
      <td><div class="td2">      
        <p>嘿嘿,我抢到沙发咯~ </div></td></tr><tr>
      <td class="td3">举报 <a href="#top">顶端</a></td></tr>
  </table>
</div>
<!--分页导航--> 
  <div><div class="pagesbox"><div class="ddtr">
  <a href="#" class="a">首页</a>
  <a href="#" class="a">上一页</a>
  <a href="#" class="a">下一页</a>
  <a href="#" class="a">尾页</a></div>
  <div class="pen"><span>Pages: 2/2&nbsp;&nbsp;</span><input id="pp" onkeyup="javascript:if(isNaN(this.value))this.value=''"; size=3/><button onclick="goon('pp')">Go</button></div>
  <div class="imd">
  <span><a href="#"><img src="Style/Images/reply.png" border="0" style="cursor:pointer"/></a></span>&nbsp;&nbsp;
  <span><a href="#"><img src="Style/Images/post.png" border="0" style="cursor:pointer" /></a></span></div></div>
<!--主体部分结束-->
</div><div id="botbar"><ul> 
              <li><a href="#">特别声明</a></li>
              <li><a href="#">Home首页</a></li>
              <li><a href="#">帮助中心</a></li>
              <li><a href="#">联系站长</a></li>
              <li><a href="#">友情链接</a></li>
  <li><a href="#top">返回顶部</a></li>
            </ul></div>
</div>
<!--用户登录部分-->
<div id="user_logn">
<div class="dv1"><span class="spa"><a href="#"><img src="Style/Images/close.gif" border="0" /></a></span>登录</div>
<div class="dv2"><form id="form1" name="form1" method="post" action="">
<table width="80%" border="0" cellspacing="0" cellpadding="0">
  <tr><td>用户名</td><td><input type="text" name="textfield" /></td>
  </tr><tr><td>密 码</td><td><input name="password" type="password" id="password" /></td>
  </tr><tr><td>&nbsp;</td><td><input name="Submit" type="submit" class="btn" value="提交" />
      <a href="#" class="ft">注册用户</a></td>
  </tr></table></form></div>
</div>
</body>
</html>

解决方案 »

  1.   

    /**
         * 根据主题id,查找回复的信息
         * @param replyId
         * @return 回复
         */
    public List<Reply> findReply(int rtid) {
    DbManager db=DbManager.NewInstance();
    List<Reply> list = new ArrayList<Reply>();
    try {
    String sql="select * from Reply where Rtid="+rtid+" order by RpubTime";
    ResultSet rs=db.execQuery(sql);
    while(rs.next()){
    Reply model=new Reply();
    model.setRid(rs.getInt("Rid"));
    model.setRcontent(rs.getString("Rcontent"));
    model.setRpubTime(rs.getString("RpubTime"));
    model.setRModifyTime(rs.getString("RModifyTime"));
    model.setRtid(rs.getInt("Rtid"));
    model.setRSmId(rs.getInt("RSmId"));
    model.setRuid(rs.getInt("Ruid"));
    list.add(model);
    }
    } catch (SQLException e) {
    e.printStackTrace();
    return null;
    } finally {
    db.close();
    }
    return list;
    }
      

  2.   

    function openNewDiv(_id)
    {
        var newDiv = document.createElement("div");
        newDiv.id="mask";//层唯一的标识//mask遮罩层
        newDiv.style.position = "absolute";//定位:绝对
        newDiv.style.zIndex = "1";//Z轴
        var _scrollWidth = Math.max(document.body.scrollWidth,document.documentElement.scrollWidth);//用最大值求出页面宽度
        var _scrollHeight = Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);//用最大值求出页面高度
        newDiv.style.width = _scrollWidth + "px";  //层的宽度
        newDiv.style.height = _scrollHeight + "px";//层的高度
        newDiv.style.top = "0px"; //与父容器上边距
        newDiv.style.left = "0px";//与父容器左边距
        newDiv.style.background = "#33393C";//背景颜色
    newDiv.className="nickbox";
    newDiv.style.display = "";//显示
        newDiv.style.filter = "alpha(opacity=40)";
        newDiv.onselectstart=function(){return false};//不可以选中
        newDiv.style.opacity = "0.40";//透明度
        document.body.appendChild(newDiv);//加载到页面
        //
        var newDiv = docEle(_id);
        newDiv.style.position = "absolute";
        newDiv.style.zIndex = "9999";
    newDiv.style.display = "";
        newDiv.style.top = (document.body.clientHeight/2 - newDiv.scrollHeight/2) + "px";
        newDiv.style.left = (document.body.clientWidth/2 - newDiv.scrollWidth/2) + "px";
    //newDiv.style.top = (document.documentElement.scrollTop + document.documentElement.clientHeight/2 - newDiv.scrollHeight/2) + "px";
        //newDiv.style.left = (document.documentElement.scrollLeft + document.documentElement.clientWidth/2 - newDiv.scrollWidth/2) + "px";
    }
    //关闭DIV层
    function closeFloatDiv(_id)
    {
    document.getElementById(_id).style.display = "none";
    document.body.removeChild(docEle('mask'));//移出层
    }
      

  3.   

    function openNewDiv(_id)
    {
        var newDiv = document.createElement("div");
        newDiv.id="mask";//层唯一的标识//mask遮罩层
        newDiv.style.position = "absolute";//定位:绝对
        newDiv.style.zIndex = "1";//Z轴
        var _scrollWidth = Math.max(document.body.scrollWidth,document.documentElement.scrollWidth);//用最大值求出页面宽度
        var _scrollHeight = Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);//用最大值求出页面高度
        newDiv.style.width = _scrollWidth + "px";  //层的宽度
        newDiv.style.height = _scrollHeight + "px";//层的高度
        newDiv.style.top = "0px"; //与父容器上边距
        newDiv.style.left = "0px";//与父容器左边距
        newDiv.style.background = "#33393C";//背景颜色
        newDiv.className="nickbox";
        newDiv.style.display = "";//显示
        newDiv.style.filter = "alpha(opacity=40)";
        newDiv.onselectstart=function(){return false};//不可以选中
        newDiv.style.opacity = "0.40";//透明度
        document.body.appendChild(newDiv);//加载到页面
        //
        var newDiv = docEle(_id);
        newDiv.style.position = "absolute";
        newDiv.style.zIndex = "9999";
        newDiv.style.display = "";
        newDiv.style.top = (document.body.clientHeight/2 - newDiv.scrollHeight/2) + "px";
        newDiv.style.left = (document.body.clientWidth/2 - newDiv.scrollWidth/2) + "px";
        //newDiv.style.top = (document.documentElement.scrollTop + document.documentElement.clientHeight/2 - newDiv.scrollHeight/2) + "px";
        //newDiv.style.left = (document.documentElement.scrollLeft + document.documentElement.clientWidth/2 - newDiv.scrollWidth/2) + "px";
    }
    //关闭DIV层
    function closeFloatDiv(_id)
    {
        document.getElementById(_id).style.display = "none";
        document.body.removeChild(docEle('mask'));//移出层
    }