can anybody give me a simple script for a counter on a webpage?
Printable View
can anybody give me a simple script for a counter on a webpage?
u want it in ASP? I don't think it can be done in Javascript, but hey i could be wrong.
if u want it in ASP, try this:
<%
Application.Lock
Application("visits")=Application("visits")+1
Application.Unlock
%>
then write out "visits" onto your page.
if u want it in javascript, like a simple image, I think ull need some sort of a third party counter. answers anyone else? disprove me!
I would simply say that u should learn PHP (not ASP) and it'll change the way u look @ web pages forever ;) it is such a cool language :) anyway, i am going to babble on and i dont want to, so i'll just shut up :(Quote:
Originally posted by mendhak
u want it in ASP? I don't think it can be done in Javascript, but hey i could be wrong.
if u want it in ASP, try this:
<%
Application.Lock
Application("visits")=Application("visits")+1
Application.Unlock
%>
then write out "visits" onto your page.
if u want it in javascript, like a simple image, I think ull need some sort of a third party counter. answers anyone else? disprove me!
ME!
i've had no contact with PHP.... what's so good bout it?
well, saying goodbye to ADO was one of the easiest things i ever did. database operations are so easy in PHP, so much more straightforeward campared to ASP, mainly cos there is no ado and all the functions have slightly descriptive names. :D just give it a try.Quote:
Originally posted by mendhak
i've had no contact with PHP.... what's so good bout it?