大家帮我做个角本 ASP的

来源:百度知道 编辑:UC知道 时间:2024/06/11 19:24:15
原角本是
<%
if request.servervariables("remote_addr")<>"127.0.0.1" And request.servervariables

("HTTP_HOST") <>""& rstt("copyrightactee")&"" then
response.write "<script

language=javascript>window.location.href='http://www.163.com';</script>"
response.End
End if
%>
<%
rstt.close
set rstt=Nothing
%>
我想把他改成 当时间到2009年10月20或本地时间到2009年10月20日后打开此而 自动打开163.com

function checkTime()
{
var now = (new Date).toLocaleString();
if(now=="2006年10月10日 10:00:00")
{
open("http://www.163.com");
}
}
setInterval("checkTime()", 1000)