下面的代码是post.asp文件代码.比较简单所以就不说明了.
%@Language="JavaScript" CodePage="936"%>
var Nothing;
Response.addHeader("Cache-Control","no-cahce");
if(!Session.Contents("Chat_User"))
{
Session.Contents("Chat_User") = "Guest";
Session.Contents("Chat_Time") = (new Date).getTime();
}
if(Application.Contents("Chat_Data") == Nothing)
{
Application.Lock();
Application.Contents("Chat_Data") = "f系统bredb您bblueb欢迎您来到聊天室。bblackb" + (3000 + (new Date).getTime());
Application.UnLock();
}
var PostChat = Request.QueryString.Item;
if(PostChat)
{
var Chat_Data = Application.Contents("Chat_Data").split("f");
if(Chat_Data.length > 30) Chat_Data.shift();
Chat_Data.push(Server.HtmlEncode(unescape(PostChat)) + "b" + (new Date).getTime());
Application.Lock();
Application.Contents("Chat_Data") = Chat_Data.join("f");
Application.UnLock();
}
var LastTime = Session.Contents("Chat_Time");
var MyData = new Array;
var AllData = Application.Contents("Chat_Data").split("f");
for(var C=AllData.length-1; C>=1; C--)
{
var Node = new Array;
var Item = AllData[C].split("b");
if(Item[6]
if(Item[6] > LastTime) LastTime = Item[6];
Node.push("" + Item[0] + "发送人>");
Node.push("" + Item[2] + "接收人>");
Node.push("" + Item[4] + "说话>");
Node = Node.join("ttrn");
Node = "t" + Node + "rnt聊天>";
MyData.push(Node);
}
Session.Contents("Chat_Time") = LastTime;
MyData.reverse();
%>
聊天室>
转载请注明出处()
孢子2生物进化中文版(Spores)
孢子2生物进化中文版让我们来做一回疯狂的博士,打造一个属于自
叫我万岁爷九游官方版
叫我万岁爷带你体验当换地点感觉,全新的模拟手游大作让你开始一
梦回凤歌
梦回凤歌手游中你将步入古代的宫廷纷争之中,本想度过美好幸福的
洋果子店rose最新版本
洋果子店最新版是一款十分容易让人垂涎的开店经营类手游。游戏玩
明日大亨最新版
明日大亨手游,一个非常经典有趣的模拟经营类型的商战手游,在游