asp 定时执行代码如何写啊
asp 定时执行代码如何写啊
在客户端用js定时访问asp
可以用js延时,也可以用js判断时间做定时,或者asp刷新判断时间定时,下面是js延时
<html>
<head>
<script language="javascript">
j=10;
function func(){
document.getElementById("div1").innerText=j;
j++;
setTimeout("func()",1000);
}
</script>
</head>
<body onload="func();">
<div id="div1"> </div>
</body>
ASP无法直接实现,需要单独写.dll.
另外因为 ajax技术,所以现在基本都结合js来写!
UP
帮顶,我也在寻求解决方案
UP 帮顶
创建1个批命令文件url.bat:
start http://www.abc.com/xxx.asp
通过windows的“任务计划”运行这个批命令,既灵活又方便。
相关问答:
<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'注意变量 ......
conn.asp
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&server.MapPath("Connt ......
<%if request.QueryString("start") <>"" then%>
<%if cint(start)>0 then%>
<a href="search.asp?q= <%=q%>&start= <%if request.Query ......
我有一个文件名 aaa.bbb.rar或者a.b.c.d.html或者aa.b.dd.shtml
我怎样截取文件的后缀名呀。。。
<%
aa="aaa.bbb.rar"
bb=split(aa,".")
response.write bb(ubound(bb)) ......