Chat Room | Source code for i = 1 to My_point
If i = My_point Then
Session ("ss_oldpoint") = My_point-1
If session ("Ss_oldpoint") Session ("ss_oldpoint") = 50
End If
Sc_xx = 1
Exit For
End If
j = j+1
' Create a statement
My_message1 (j) = ""
' Distinguish the categories of words
' logo bit: 1 kicking, 2 forbidden to speak, 3 forbidden to browse, 4 public words,
xml| Server | chat Room | refresh | no Refresh | original use of XML. Without constant refresh. Asp.
No refresh to achieve the article by article display.
Use Application variables to store chat records, so you need to create a virtual directory
The server side does not need to support XML, as long as it supports ASP and can build virtual directories.
The followi
xml| Server | chat Room | refresh | no Refresh | Original This is the most important one. is also very large. My habits are not very good. Without a detailed comment, look carefully.
######## #send. asp##############
var tmp0= "$F to $t said: | no expression | $F smiled to $t: | smile | $F smiled and said to $t: | giggle | $F $t Silly smile: | giggle | $F to $t smile: | smile | $F to $t laughing: | laughin
Simple Chat Room code written in php. For more information, see. Index. php
The Code is as follows:
_ A. php
The Code is as follows:
$ Person = @ $ _ POST [person];$ Msg = @ $ _ POST [message];If ($ person! = "" $ Msg! = ""){$ Handle = fopen ("msg.t
xml| Server | chat Room | refresh | no Refresh | original ############### #main. asp######################
Response.expires=0
Username=request.form ("UserName")
If Username= "" then Response.Redirect "index.asp"
Session ("U_name") =username
If Request.Form ("sx") = "1" Then
Session ("U_SX") = "1"
Else
Session ("U_SX") = "0"
End If
%>
xml| Server | chat Room | refresh | no Refresh | original ############ #续send. asp#################
var ordom=new activexobject ("Microsoft.XMLDOM");
Ordom.async=false;
var path= "reload.asp";
var Tcok;
function Clock ()
{crld++;
if (crld>10) {crld=1; Getxmldata ();}
Cleartimeout (TCOK);
Tcok=settimeout ("Clock ()", 1000);
}
Functions Getxmldata ()//This is the function that refreshes the user's XML data
{
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.