dim input(30) ' 定義一個數組,大小可隨時更改.這裡為了顯示方便.file_path=Server.Mappath("index.html")Set fs=Server.CreateObject("Scripting.FileSystemObject")Set file_open=fs.OpenTextFile(file_path)n=0Do While Not
Dim strCookie, strTrystrCookie = Request.Cookies("MyCookie") strTry = Request.QueryString("Try") If strCookie = "" Then ' 檢測否是設定了Cookie. If strTry = "" Then Response.Cookies("MyCookie") = "Set"' 重新導向到這一頁面再試.
<%Dim NumVisit' 聲明變數.NumVisit = Request.Cookies("chunfeng")("totalvisit")' 檢查使用者來訪問過多少次.If NumVisit = "" ThenNumVisit = 0End If' 如果是第一次來訪,NumVisit 應為空白,所以我們將NumVisit設為0.'*** Display how many times they have'*** visited your web
creatdoc.asp<!DOCTYPE html PUBLIC "-//W3C/Dtd html 3.2 Final//EN"><head><title>星河影動之建立Word檔案</title><META HTTP-EQUIV="Refresh" CONTENT="30;URL='orderForm.asp'"></head><% dotLocation="'servernamedirectory
<%Function Comma(str)If Not(IsNumeric(str)) Or str = 0 Then Result = 0ElseIf Len(Fix(str)) < 4 Then Result = strElse Pos = Instr(1,str,".") If Pos > 0 Then Dec = Mid(str,Pos) End if Res = StrReverse(Fix(str)) LoopCount = 1 While
Public Function XtoF(str As Currency, Optional fenm As Integer = 32) As String ' 只限於整除分數. Dim Cfm As Currency Dim cfmmod As Integer On Error GoTo Erroreof Cfm = 1 / fenm XtoF = "" If str = 0 Then XtoF = "": Exit Function Dim point As Integer