实现聊天室在线人员无刷新所需要的JavaScript技术
2008-05-01 06:15
477 查看
实现聊天室在线人员无刷新所需要的javascript技术 - 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
asp精品屋 此只为实现无刷新的javascript客户端所需要的相似技术
具体要跟程序结合起来。 by 探索者
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'~~
index.htm
<script>
function renewlook()
{
list.document.open();
list.document.close();
list.document.write("<html><head><title>聊天室</title><style type=text/css>body, form, td, input,
select, textarea {font: 9pt 宋体,arial;}s</style></head><body bgcolor=ffffff>");
}
function writestr(tempstr)
{
list.document.write(tempstr);
}
</script>
<frameset rows="*,60" frameborder="0" border="false">
<frameset cols="*,102" frameborder="auto" border="0" framespacing="0">
<frame src="show.htm" scrolling="auto" name=list>
<frame name="rightframe" scrolling="auto" noresize alt=" 实现聊天室在线人员无刷新所需要的javascript技术 " src=http://www.yeahtech.com/study/about:blank>
</frameset>
<frameset cols="0,1*" frameborder="no" border="0" framespacing="0">
<frame cols="0,0" name="hiddenframe" scrolling="no" noresize alt=" 实现聊天室在线人员无刷新所需要的javascript技术 " src=http://www.yeahtech.com/study/about:blank>
<frame src="o.htm" scrolling="no" name=talk>
<frame cols="0,0" name="frshow" scrolling="no" noresize alt=" 实现聊天室在线人员无刷新所需要的javascript技术 " src=http://www.yeahtech.com/study/about:blank>
</frameset>
</frameset><noframes>
</noframes>
实现聊天室在线人员无刷新所需要的javascript技术 - 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
asp精品屋 此只为实现无刷新的javascript客户端所需要的相似技术
具体要跟程序结合起来。 by 探索者
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'~~
o.htm
<script>
var n;
n=2;
top.renewlook();
top.writestr("<div id=div0 name=div0>dkeoo3</div><div id=div1 name=div1>222222222</div>");
//opener.t11.innerhtml="<font onclick=javascript:opener.writestr('ddds');>ddd</font>";
top.writestr('写1');
top.writestr('写2');
top.writestr('写3');
var i=0;
function showsss()
{
//top.list.eval('div' + i).style.display='block';
eval("top.list."+"div"+i+".style.display='block';");
i=i+1
if (i>=n)
{
i=0;
top.list.div0.style.display='none';
}
else
{
eval("top.list."+"div"+i+".style.display='none';");
}
settimeout("showsss();",900);
}
showsss();
</script>
<font onclick="javascript:top.writestr('<div name=div'+n+' id=div'+n+'>'+n+'</div>');n=n+1;">
ddd
</font>
<font color=ff0000 onclick="top.list.div5.style.display='none';">o.htm</font>
<font color=ff0000 onclick="top.list.div5.style.display='block';">o.htm</font>
dddddddddddddddddd
实现聊天室在线人员无刷新所需要的javascript技术 - 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
asp精品屋 此只为实现无刷新的javascript客户端所需要的相似技术
具体要跟程序结合起来。 by 探索者
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'~~
show.htm
<div name=div0 id=div0></div>
<div name=t11 id=t11><table>
<tr><td>测试</td></tr></table>
</div>
<script>
function renewlook()
{
document.open();
document.close();
document.write("<html><head><title>聊天室</title><style type=text/css>body, form, td, input,
select, textarea {font: 9pt 宋体,arial;}s</style></head><body bgcolor=ffffff>");
}
function writestr(tempstr)
{
document.write(tempstr);
}
t11.style.display="none";
t11.style.display="block";
//t11.onclick="window.close();document.write('dd');";
writestr("<font style='cursor:hand' onclick=t11.style.display='block';>显示</font>");
</script>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
asp精品屋 此只为实现无刷新的javascript客户端所需要的相似技术
具体要跟程序结合起来。 by 探索者
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'~~
index.htm
<script>
function renewlook()
{
list.document.open();
list.document.close();
list.document.write("<html><head><title>聊天室</title><style type=text/css>body, form, td, input,
select, textarea {font: 9pt 宋体,arial;}s</style></head><body bgcolor=ffffff>");
}
function writestr(tempstr)
{
list.document.write(tempstr);
}
</script>
<frameset rows="*,60" frameborder="0" border="false">
<frameset cols="*,102" frameborder="auto" border="0" framespacing="0">
<frame src="show.htm" scrolling="auto" name=list>
<frame name="rightframe" scrolling="auto" noresize alt=" 实现聊天室在线人员无刷新所需要的javascript技术 " src=http://www.yeahtech.com/study/about:blank>
</frameset>
<frameset cols="0,1*" frameborder="no" border="0" framespacing="0">
<frame cols="0,0" name="hiddenframe" scrolling="no" noresize alt=" 实现聊天室在线人员无刷新所需要的javascript技术 " src=http://www.yeahtech.com/study/about:blank>
<frame src="o.htm" scrolling="no" name=talk>
<frame cols="0,0" name="frshow" scrolling="no" noresize alt=" 实现聊天室在线人员无刷新所需要的javascript技术 " src=http://www.yeahtech.com/study/about:blank>
</frameset>
</frameset><noframes>
</noframes>
实现聊天室在线人员无刷新所需要的javascript技术 - 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
asp精品屋 此只为实现无刷新的javascript客户端所需要的相似技术
具体要跟程序结合起来。 by 探索者
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'~~
o.htm
<script>
var n;
n=2;
top.renewlook();
top.writestr("<div id=div0 name=div0>dkeoo3</div><div id=div1 name=div1>222222222</div>");
//opener.t11.innerhtml="<font onclick=javascript:opener.writestr('ddds');>ddd</font>";
top.writestr('写1');
top.writestr('写2');
top.writestr('写3');
var i=0;
function showsss()
{
//top.list.eval('div' + i).style.display='block';
eval("top.list."+"div"+i+".style.display='block';");
i=i+1
if (i>=n)
{
i=0;
top.list.div0.style.display='none';
}
else
{
eval("top.list."+"div"+i+".style.display='none';");
}
settimeout("showsss();",900);
}
showsss();
</script>
<font onclick="javascript:top.writestr('<div name=div'+n+' id=div'+n+'>'+n+'</div>');n=n+1;">
ddd
</font>
<font color=ff0000 onclick="top.list.div5.style.display='none';">o.htm</font>
<font color=ff0000 onclick="top.list.div5.style.display='block';">o.htm</font>
dddddddddddddddddd
实现聊天室在线人员无刷新所需要的javascript技术 - 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
asp精品屋 此只为实现无刷新的javascript客户端所需要的相似技术
具体要跟程序结合起来。 by 探索者
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'~~
show.htm
<div name=div0 id=div0></div>
<div name=t11 id=t11><table>
<tr><td>测试</td></tr></table>
</div>
<script>
function renewlook()
{
document.open();
document.close();
document.write("<html><head><title>聊天室</title><style type=text/css>body, form, td, input,
select, textarea {font: 9pt 宋体,arial;}s</style></head><body bgcolor=ffffff>");
}
function writestr(tempstr)
{
document.write(tempstr);
}
t11.style.display="none";
t11.style.display="block";
//t11.onclick="window.close();document.write('dd');";
writestr("<font style='cursor:hand' onclick=t11.style.display='block';>显示</font>");
</script>
相关文章推荐
- 实现聊天室在线人员无刷新所需要的JavaScript技术 - 1
- 实现聊天室在线人员无刷新所需要的JavaScript技术 - 3
- 实现聊天室在线人员无刷新所需要的JavaScript技术 - 2
- 聊天室用ajax实现在线人员列表
- Ajax PHP JavaScript MySQL实现简易的无刷新在线聊天室
- Ajax PHP JavaScript MySQL实现简易的无刷新在线聊天室
- Struts+Ajax实现定时刷新Table内容,实现在线人员显示
- Struts+Ajax实现定时刷新Table内容,实现在线人员显示
- 聊天室的实现(消息实时刷新)
- GCD实现单个页面多个网络请求,需要监听所有网络请求结束后刷新UI的处理
- 用ASP实现聊天室中的在线答题游戏
- 想要亲手实现一个刷新控件,你只需要掌握这些知识
- 无刷新聊天室技术实现方法
- PHP实现一个简单的无刷新聊天室
- 用ASP实现聊天室中的在线答题游戏
- 我是使用笔记本的,请问贺工还有什么配件需要购买吗?如何实现在线仿真调试呢? - 上海嵌入式家园 贺工
- Spring整合DWR comet 实现无刷新 多人聊天室
- 亿能测试大讲堂 - YY在线课程[ 测试人员需要掌握的Shell脚本编程 ]
- Node.js + express + socket 实现在线实时多人聊天室
- AngularJS+Node.js实现在线聊天室