很多公司网站都有即时通的功能,请问是怎么实现的?有没相关的资料介绍,提供一下?

dreamsky 2005-04-25 06:12:39
感觉有点类似QQ,可以实现一对一的聊天。
...全文
131 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0064)http://community.csdn.net/expert/deeptree/contentbar.asp?myie=ie -->
<HTML><HEAD><TITLE>Deeptree Content Bar</TITLE>
<META http-equiv=Refresh
content=1000;URL=/expert/deeptree/contentbar.asp?myie=ie>
<META content=noindex name=Robots>
<META http-equiv=Content-Type content=text/html;charset=gb2312>
<META content=TRUE name=MSSmartTagsPreventParsing>
<META http-equiv=MSThemeCompatible content=Yes><LINK
href="contentbar.files/csdn.css" type=text/css rel=stylesheet>
<SCRIPT src="contentbar.files/get_css.js"></SCRIPT>

<SCRIPT language=javascript>
if (top.location == self.location)
{
top.location.href = "/Expert/Forum.asp";
}

function selectstart()
{
window.event.cancelBubble = true;
window.event.returnValue = false;
return false;
}
function GoToURL(strX)
{
if (strX == "" || strX == null || strX == "undefined")
{
return;
}
window.top.location.href = strX;
}
function mylogin(url)
{
window.parent.parent.location = url+"&from="+window.parent.parent.location.pathname+"&Roomid=&typenum=&tabletype=&searchKeys=&author=&whichpage=";
}
function mylogin2(url)
{
window.open(url+"&from="+window.parent.parent.location.pathname);
newMessage.style.visibility = "hidden";
}
function loginsub()
{
document.login.submit();
}
//-->
</SCRIPT>

<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY class=color3 leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top noWrap align=left width="100%">
<DIV id=showtoc style="DISPLAY: none" name="showtoc">
<TABLE title=显示导航栏 style="CURSOR: hand"
onclick="if (document.readyState == 'complete') top.dtbar.showtoc();"
cellSpacing=0 cellPadding=0 align=left border=0>
<TBODY>
<TR>
<TD height=30></TD>
<TD vAlign=center height=30>
<IMG title=显示导航栏
src="contentbar.files/showtoc.gif" border=0 width="16" height="16"></TD>
<TD height=30></TD>
<TD vAlign=center height=30><A
href="http://community.csdn.net/expert/deeptree/contentbar.asp?myie=ie#"><FONT
face=verdana
color=#ffffff>显示导航栏</FONT></A></TD></TR></TBODY></TABLE></DIV>
<TABLE width="100%" border=0>
<FORM name=login action=/member/logon.asp method=post target=_top>
<SCRIPT>
document.write("<input type='hidden' name='from' value='")
document.write(parent.parent.location)
document.write("'>")
</SCRIPT>

<TBODY>
<TR>
<TD vAlign=top><FONT color=#ffffff><IMG height=15
src="contentbar.files/1d.gif" width=19>欢迎您:liuxiaoyi666 <IMG
height=15 src="contentbar.files/1d.gif" width=19>可用分:2900 <IMG
height=15 src="contentbar.files/1d.gif" width=19>总信誉分:140<IMG
height=15 src="contentbar.files/1d.gif" width=19>未结帖数:6 <IMG
height=15 src="contentbar.files/1d.gif" width=19><A
href="http://community.csdn.net/member/logonout.asp"
target=_top><FONT color=#ffffff>注销我的登录</FONT></A> <IMG height=15
src="contentbar.files/1d.gif" width=19><A
href="http://community.csdn.net/expert/deeptree/welcome.asp?1=1"
target=fraContent><FONT color=#ffffff>社区首页</FONT></A> </FONT></TD>
<TD></FONT></TD></FORM></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>

csdn的方式<META http-equiv=Refresh
content=1000;URL=/expert/deeptree/contentbar.asp?myie=ie>
dreamsky 2005-04-26
  • 打赏
  • 举报
回复
有没有例子可以提供的?
33881163 2005-04-26
  • 打赏
  • 举报
回复
这个功能的基本原理是,有一个message表,中间有发送人、接受人、信息内容、信息状态。
然后定时(5秒、1秒不等)刷新特定的区域,来查询信息状态为“没有阅读”的信息,将其显示出来
dreamsky 2005-04-26
  • 打赏
  • 举报
回复
up

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧