网页上是怎么实现有短消息自动通知的,就想csdn的短消息一样 一般是Sript重复刷新一小块页面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 一般是Sript重复刷新一小块页面 一小段脚本,或者PHP,或者ASP,实现数据库检索,放在要刷新的小框架中。 vcvj(Mr.wu):-- 放个最小内框架,减少压力还有隔一段时间删除旧消息 SQL的触发器,具体没实现过. 在网页中放一个<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> 有几个基础知识点的问题,求解答!! 谁可以给我一个项目,就是ssh框架集成xfire的。。 jndi连接数据源出错 大侠!~~ 请教一个问题,比较着急,请给与解答,谢谢 小女子真心求教 谁用Applet做过类似证券行业的实时曲线图? 移植到WebSphere的问题(急)? 奇怪的问题,高手请看,马上给分! hotenM(CMP)大侠等EJB大侠进来!小问题请教! 请问一个关于实体bean的问题 一线程迟中线程运行的问题。请运行试试看。欢迎高手解答。
放个最小内框架,减少压力还有隔一段时间删除旧消息
<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>