聊天室技术(四)-- 显示_PHP
Jun 01, 2016 pm 12:34 PM
print("<frameset rows="*,110,0,0,0" border=0>n");
print("<frameset cols="660,118" rows="*">n");
//主显示屏幕,负责显示聊天内容
print("<frame name=u src=about:blank frameborder="NO" noresize>n");
//在线人数屏幕
print("<frame name=r src="about:blank" frameborder="NO">");
print("</frameset>n");
//发送信息的屏幕,信息指挥中心,所有指令都要由这里发出
print("<frame name=d src=send.php?name=$name&&pass=$pass scrolling='no
' frameborder="NO" noresize>n");
//被动更新屏幕,处理发送的信息
print("<frame src="about:blank" name="bl">n");
/主动更新屏幕,显示自己和其他聊友的聊天信息
print("<frame src="about:blank" name="flush">n");
//检测是否在线的屏幕,对于异常离开,如死机,掉线等的处理
print("<frame src="about:blank" name="check">n");
print("</frameset>n");
因为各个页面之间的程序有联系,所以显示顺序很重要,可以看到,我这里只有发送页面不是about:blank,其他页面的显示都要先通过发送页面的调用才能开始.
原作者:howtodo
来源:php2000.com

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This article is enough for you to read about autonomous driving and trajectory prediction!

The Stable Diffusion 3 paper is finally released, and the architectural details are revealed. Will it help to reproduce Sora?

DualBEV: significantly surpassing BEVFormer and BEVDet4D, open the book!

Reasons and solutions for desktop layout being locked

How to display the wifi password QR code? It is recommended to scan the wifi password on WeChat in 3 seconds.

Samsung will provide displays for Microsoft's MR headsets, and the devices are expected to be lighter and have clearer displays

How to check the current directory in Linux?

More than just 3D Gaussian! Latest overview of state-of-the-art 3D reconstruction techniques
