我自己寫的聊天室原始碼(十

來源:互聯網
上載者:User
聊天室|原始碼 <%'************************重新整理,上*****************************%>
<%'new.asp%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>重新整理</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none">
<base target="contents">
<%if session("ss_nowflag") = 0 then%>
<script language="JavaScript"><!--
parent.location.href = "default.asp"
//--></script>
<%end if%>
<%if trim(request.form("b1")) <> "" then%>
<script language="JavaScript"><!--
parent.midleft.document.forms[0].acction.value = "0"
//-->
</script>
<%end if%>
<script
language="JavaScript"><!--
function refr()
{
parent.bottom.location.href = "new.asp";
return true;
}
function write1(text1)
{
parent.topleft.document.write("<br>" + text1);
parent.topleft.window.scrollTo(1,60000);
return true;
}
setTimeout("refr()",5000);
// --></script>
<%if request.form("b1") <> "" then
sc_www = cstr(request.form("who"))
%>
<script language="JavaScript"><!--
parent.midleft.location.href = "say.asp?name=<%response.write(sc_www)%>";
// --></script>
<%end if%>
</head>

<body>
<%
dim sc_what,sc_color,sc_who1,sc_who2,sc_flag,sc_bq
dim sc_point,sc_usernum,sc_message,sc_user,sc_user1(30,8),sc_userout,sc_userout1(30,6)
dim sc_ff,sc_time,sc_time1,my_message,my_message1(50),my_point,my_usernum
if session("ss_nowflag") <> 0 then
'全域變數
    application.lock
        sc_point = application("ap_point")
        sc_message = application("ap_message")
        sc_usernum = application("ap_usernum")
        sc_user = application("ap_user")
        sc_userout = application("ap_userout")
        '使用者線上檢查
        for i = 1 to 30
            for j = 1 to 8
                sc_user1(i,j) = ""
            next
            for j = 1 to 6
                sc_userout1(i,j) = ""
            next
        next
        sc_ff = 0
        j=0
        sc_time = now
        for i = 1 to 30
            if trim(sc_user(i,1)) = trim(session("ss_name")) then
                sc_ff = 1
                sc_user(i,7) = cstr(now)
            end if
            if trim(sc_user(i,1)) <> "" then
                sc_time1 = cdate(sc_user(i,7))
                if datediff("s",sc_time1,sc_time) < 61 then
                    j = j + 1
       &nb

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一頁    >>  



相關文章

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。