
<% '======== 2006-10-10 Add a counter
Dim theMaxNumb
Dim theSql
Dim execSql
execSql = "update tEmailServicesVisit set theId = theId + 1"
conn.Execute(execSql)
theSql = "select max(theID) as theMaxId from tEmailServicesVisit"
theMaxNumb = conn.execute(theSql)(0) 
Response.Write(theMaxNumb)
%>
图片显示
<script language="javascript" runat="server">
var theCount="223"; // input your counter numb.
var showNum = "";
for(i=0; i< theCount.length; i++)
...{
digi = theCount.substr(i,1);
showNum += "<img src='num//" + digi + ".gif'>";
}
document.write(showNum);
</script>
本文介绍了一种使用 ASP (Active Server Pages) 进行网页访问计数更新的方法,并展示了如何通过 JavaScript 动态显示计数结果。具体包括了利用 SQL 更新数据库中记录的访问次数,以及将数字转换为图像进行展示的技术细节。
2002

被折叠的 条评论
为什么被折叠?



