亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        如何檢測用戶第一次訪問我的網(wǎng)站并顯示友好信息?

        字號:


            < %@ LANGUAGE="VBscript" % >
            < %
            RequestName = Request.Form("Name")
            RequestLeaveMeAlone = Request.Form("LeaveMeAlone")
            If RequestName < >"" or RequestLeaveMeAlone < >"" then
            ' 在同一個頁面中檢查表單變量.
            Response.Cookies("MySiteVisitorName") = RequestName
            Response.Cookies("MySiteVisitorName").Expires = #January 01, 2008#
            Response.Cookies("MySiteLeaveMeAlone") = RequestLeaveMeAlone
            Response.Cookies("MySiteLeaveMeAlone").Expires = #January 01, 2008#
            ' 如果表單變量存在,就創(chuàng)建Cookie,并設(shè)置到期時間.
            End if
            VisitorName = request.Cookies("MySiteVisitorName")
            LeaveMeAlone = request.Cookies("MySiteLeaveMeAlone")
            ' 讀取Cookie.
            If VisitorName ="" and LeaveMeAlone ="" then
            ' 如果用戶機子上不存在該Cookie,就創(chuàng)建一個表單詢問相關(guān)信息.
            % >
            < html >
            < head >
            <title>隨風起舞歡迎你!</title>
            < /head >
            < body bgcolor="#ccffff" text="black" link="navy" vlink="purple" >
            < DIV ALIGN="CENTER" >
            < form action="index.asp" method="POST" >
            < H2 >歡迎光臨精彩春風< /H2 >
            您的網(wǎng)上昵稱是< input type="text" name="name" > (您可以選擇不回答而直接點擊"發(fā)送"按鈕)
            < br >< br >
            < input type="hidden" name="LeaveMeAlone" value="x" >
            < input type="submit" value="發(fā)送" >
            < /FORM >
            < /DIV >
            < /body >
            < %
            End if
            If VisitorName < > "" then
            Response.write "歡迎您," & VisitorName & "! 這兒就是您的家!"
            ' 如果Cookie和用戶名都已存在,則顯示一個歡迎頁面.
            End if
            ' 結(jié)束其余代碼.
            % >