Displaying Source Code(s)
|
|
ASP Daily Hit Counter.
--------------------------------------------------------------------------------
Description : A simple ASP Daily Hit Counter for your simple or
e-commerce site using ASP Date function, trim function and
application variables.
<%
Dim x, y, temp, serv, D, hits
x = Trim(day(date()))
D = Application( "serv" )
If D = x Then
Application( "hits" ) = Application( "hits" ) + 1
Else
Application( "hits" ) = 1
End If
y = x
temp = y
Application( "serv" ) = temp
%>
There have been <%=Application( "hits" )%> hits to this page
today!
--------------------------------------------------------------------------------
|
|
|