一般是Sript重复刷新一小块页面

解决方案 »

  1.   

    一般是Sript重复刷新一小块页面
      

  2.   

    一小段脚本,或者PHP,或者ASP,实现数据库检索,放在要刷新的小框架中。
      

  3.   

    vcvj(Mr.wu):--
        放个最小内框架,减少压力还有隔一段时间删除旧消息
      

  4.   

    SQL的触发器,具体没实现过.
      

  5.   

    在网页中放一个<iframe>
    <TD width="33%" height=21><iframe src="../msg_reminder.jsp" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></TD>在msg_reminder.jsp里面定义一个定时刷新的元素
    <meta http-equiv="refresh" content="10">就是10秒中
    代码如下
    <%@ page contentType="text/html; charset=gb2312" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    <style type="text/css">
    <!--
    .remaider {
    font-size: 12px;
    color: #660000;
    text-decoration: none;
    }
    a:link {
    font-size: 12px;
    color: #990000;
    text-decoration: none;
    }
    a:visited {
    font-size: 12px;
    color: #660000;
    text-decoration: none;
    }
    a:hover {
    font-size: 12px;
    color: #FFFF00;
    text-decoration: none;
    }
    -->
    </style>
    </head>
    <%
    int MsgCount=0;
    try {
       pack1.DBean d=new pack1.DBean();
       MsgCount.getMsgCount();
    }
    catch (Exception e){
       System.out.println(e.getMessage());
    }
    %>
    <body bgcolor="#d6cfce">
    <meta http-equiv="refresh" content="10">
    <p class="remaider"><img src="html/leftimage/doc.gif" width="18" height="18"><a href="message_list.jsp" target="middle">未读消息<%=MsgCount%>份</a> </p> </p>
    </body>
    </html>