Include this in the body of all your HTML pages where you want the counter
to appear:
<SCRIPT SRC="counter.asp" LANGUAGE="javascript"></SCRIPT>
When processed, counter.asp *must* return a javascript formatted file to the
calling HTML page. You can do your counter housework in ASP, and then use
javascript to write the output.
---- COUNTER.ASP
<%
Response.Expires = 0
' do counter stuff here, and store it in strPageCount
%>
// this is the javascript
document.write('<%=strPageCount%> visits to this page');
end ----------------------
-Bill.
"Jim in Arizona" <ti*******@hotmail.com> wrote in message
news:ee*************@TK2MSFTNGP09.phx.gbl...
I've been looking for a counting script to count the number of hits to my
HTM and asp web pages on my company's internal website. So far, everything
I've seen only works on asp pages. Where would I find some counter code to
record hits on htm(l) as well as asp pages?
I'm using IIS 5.0.
Thanks.