Results 1 to 5 of 5

Thread: script for counter

  1. #1

    Thread Starter
    Hyperactive Member schuurke28's Avatar
    Join Date
    Feb 2001
    Posts
    402

    script for counter

    can anybody give me a simple script for a counter on a webpage?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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!

  3. #3
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    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!
    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

    ME!

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    i've had no contact with PHP.... what's so good bout it?

  5. #5
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    Originally posted by mendhak
    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. just give it a try.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width