求一个简单网页访问计数代码

来源:百度知道 编辑:UC知道 时间:2024/05/24 23:34:37
想在网页里面加一个代码,显示
只要有总PV,和今日PV,还有昨日PV,就行了,还有统计时间,其他的不要,

http://down.china-code.net/1/5/19928/ccIlQfM.html这个挺不错,比较简单,我自己也试了,你可以看看

<%@ language=jscript%>
<%

Application.Lock();
if(Application("Counter")!=null)
Application("Counter") = parseInt(Application("Counter")) + 1;
else
Application("Counter") = 1000;
Application.UnLock();

function G( counter )
{
var S, i, myimage;
myimage = "";
S = counter + "";
for(i = 0; i<S.length; i++)
{
myimage = myimage + "<IMG SRC=image/timeimage/" + S.charAt(i) + ".gif>";
}
return myimage;
}

%>
<%=G(Application("Counter"))%>