如何判斷使用者是否非正常離開聊天室? total = application("AllPeople")' 聊天總人數. aryHuman = split(total,";") for i = lbound(aryHuman) to ubound(aryHuman) - 1 if application("user" & i) = "online" then if int(timer) - int(application("TimeBegin" &
第一步,建立一個計數器(最簡單的數字計數器,不是圖片式的): <% @language="vbscript" %> <% set fsFilesys=CreateObject("Scripting.FileSystemObject") set myText=fsFilesys.OpenTextFile(Server.MapPath("/count")&"\count.txt")count=myText.ReadLine'
請問如何做一個專業的圖片計數器? <%countlong=8 ' 定義計數器位元. On Error Resume Next ' 忽略所有的錯誤. count=server.mappath(count.txt) set cou = server.createobject(scripting.filesystemobject) set out=cou.opentextfile(count,1,false,false)
sub chkIP(boardid) dim rsIP dim ipArr dim ignored dim i dim ip dim sql ip=Request.ServerVariables("REMOTE_ADDR") ignored=false if not isempty(boardid) then sql="select ignoreip from board where
<% If Err.Number <> 0 Then ' 錯誤處理. Response.Clear ' 清除緩衝區. Select Case Err.Number ' 根據不同錯誤分處理. Case "" ' 指定錯誤類型:此處填加我們指定的錯誤處理代碼. Case Else ' 一般錯誤. If IsObject(objConnection) Then
showimage.aspChange the HTTP headerResponse.ContentType = "image/gif"Set cn = Server.CreateObject("ADODB.Connection")cn.Open "driver={SQL Server};server=.;UID=sa;PWD=;DATABASE=pubs"Set rs = cn.Execute("select logo from pub_info WHERE
如何?電子郵件的自動發送?<%@import namespace="system.web.uit"%>dim mail as new mailmessage ' 建立一個mailmessage對象.mail.to=收件者mail.form=送件人mail.subject=主題mail.bodyformat=格式mail.body=內容smtpmail.send(mail) 具體代碼如下:<%@ Import Namespace="System.Web.Util" %&