<%
dim numvisits
response.cookies("NumVisits").Expires=date+365
numvisits=request.cookies("NumVisits")
if numvisits="" then
response.cookies("NumVisits")=1
response.write("欢迎!这是您第一次访问该网页。")
else
response.cookies("NumVisits")=numvisits+1
response.write("您已经访问该")
response.write("网页 " & numvisits)
if numvisits=1 then
response.write " 1次!"
else
response.write " 多次!"
end if
end if
%>
<!DOCTYPE html>
<html>
<body>
</body>
</html>