实现聊天室在线人员无刷新所需要的JavaScript技术 - 2
发布时间:2006-10-14 2:40:38   收集提供:gaoqian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
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

 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50