Results 1 to 7 of 7
  1. #1
    ABW Ambassador Sam Bay's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,603
    Need a simple pageview counter
    I have been searching the web for a javascript code that simply counts the pageviews, to no avail. I need something like this:

    "This page has been viewed XXXXX times."

    XXXXX would be the output of the javascript code that counts every time the page is viewed, including multiple views by the same visitor.

    Does anybody know? Thanks.

  2. #2
    ABW Ambassador Snib's Avatar
    Join Date
    January 18th, 2005
    Location
    Virginia
    Posts
    5,303
    Unfortunately I don't know of anything that does this off the top of my head, but I'm just curious why you'd want to do this? Any site that has a counter like this just seems unprofessional to me. If you absolutely must have it, why not search Google for a downloable counter? I'm sure a site like www.hotscripts.com would have one.

    - Scott
    Hatred stirs up strife, But love covers all transgressions.

  3. #3
    Internet Cowboy
    Join Date
    January 18th, 2005
    Posts
    4,662
    Try this one. It is a "fake" counter, but you should be able to use 1 as the multiplier and make it a real counter.
    I agree with Snib, hit counters make your site look amateurish


  4. #4
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Hi Sam,

    It's impossible to make a self contained Javascript hit counter.

    Javascript only operates within the browser of the person visiting your site. It can only make changes on the 'visitor's computer'. While it's possible to count how many times you personally have visited the site/page, it's not possible to count how many times EVERYONE has visited the site. The JavaScript would need a way of accessing the server on which your site is stored for data (hit logs) to print to the page.
    Ray Thomas
    Webmaster Resources: http://DesignerWiz.com
    ABW Board Category: Programming / Coding
    http://forum.abestweb.com/forumdisplay.php?f=190

  5. #5
    ABW Ambassador Snib's Avatar
    Join Date
    January 18th, 2005
    Location
    Virginia
    Posts
    5,303
    Quote Originally Posted by DesignerWiz
    While it's possible to count how many times you personally have visited the site/page, it's not possible to count how many times EVERYONE has visited the site. The JavaScript would need a way of accessing the server on which your site is stored for data (hit logs) to print to the page.
    That's not necessarily true with AJAX though. Javascript can be used to query a server-side script like PHP or ASP to get it's content. I doubt he was asking for an AJAX Javascript counter though. I don't even know if people still make page counters anymore..

    - Scott
    Hatred stirs up strife, But love covers all transgressions.

  6. #6
    ABW Ambassador Sam Bay's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,603
    Thank you, guys.
    I am aware hit counters can make sites looks amateur and I do have normal tracking in place. I just think this will be useful for one page I have; not intented to 'impress' visitors or potential advertisers.

    Designer Whiz - What you said was interesting and makes sense. Is there any other way to achieve what I want in a HTML page?

  7. #7
    Affiliate Manager Allen Nance's Avatar
    Join Date
    January 18th, 2005
    Location
    Colorado River, Bullhead City AZ
    Posts
    1,604
    Sam,

    Here is another that just may do the job

    http://www.digitalpoint.com/tools/counter/

    Poopie

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Linkshare - Simple is Better Simple is Better
    By leeann in forum Rakuten LinkShare - LS
    Replies: 14
    Last Post: June 11th, 2005, 07:24 AM
  2. Counter Question
    By AddHandler in forum Commission Junction - CJ
    Replies: 11
    Last Post: February 24th, 2005, 04:31 AM
  3. Counter/Trackers?
    By T-Bone in forum Midnight Cafe'
    Replies: 0
    Last Post: August 13th, 2002, 01:46 PM

Posting Permissions

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