<% if request.serverVariables("server_name") = "online2.cnitv.com" then %>
<% elseif request.serverVariables("server_name") = "qingdao.cnitv.com" then %>
<% elseif request.serverVariables("server_name") = "shvnet.cnitv.com" then %>
<% end if %>
<%
'获取当前访问的真实域名
OptDomain = Request.ServerVariables("SERVER_NAME")
Domain = right(OptDomain, len(OptDomain) - instr(OptDomain, "."))
setCookies "OptDomain", OptDomain, Domain, 1
'设置COOKIES 其中CookiesEnabled:1:设置;-1:清除
function setCookies(CookiesName, CookiesValue, CookiesDomain, CookiesEnabled)
response.cookies(CookiesName) = CookiesValue
response.cookies(CookiesName).domain = CookiesDomain
response.cookies(CookiesName).path = "/"
response.cookies(CookiesName).expires = dateadd("yyyy", 10 * CookiesEnabled, now)
end function
'Randomize
'rndwokkow=rnd
'if rndwokkow<0.3 then
' wokkowurl="http://www.wokkow.com/da/?flag=wok"
'elseif rndwokkow<0.6 then
' wokkowurl="http://www.wokkow.com/mall/?flag=wok"
'else
' wokkowurl="http://blog.wokkow.com/homepage/index.asp?flag=wok"
'end if
'response.write "
"
%>