A 2 part hit counter that counts with one code and shows with another

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raptorjesus
    New Member
    • Jun 2010
    • 2

    A 2 part hit counter that counts with one code and shows with another

    Hi.

    Im not sure if this is possible, but I need a rather specific hit counter. It needs to be client side, and in 2 parts. The first part, counts the hits, so i can count the hits on one page (ie counting the number of times someone has 'played' a flash game), and show the number with another code, so you can see how many hits on any page the web developer chooses.

    Like I said, this needs to be client side, and i would prefer it if it did not need to be in a table, and used formattable text. I have tried php, but that (much against the claims of the code supplier) turned out to be server-side, and incompatable with html. I will upload my site as it is currently (not to be used online, it isnt designed to be on a server), if it helps.

    Please help me ASAP, this is for an IST Assessment task (year 10 stuff) and I am already 1-2 weeks overdue and am lucky to get a 3 week extension. I need this hit counter Urgently!!!
    Attached Files
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Do you want the hit counter to display accurately on one machine only? If you do, then you can use cookies. If you want it to show the accurate count on more than one machine, then you won't be able to do this client-side.

    Comment

    • raptorjesus
      New Member
      • Jun 2010
      • 2

      #3
      I want it to be accuratly shown on more than one pc. Cant it just get the amount, and add it to a text file, and show that number?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        unfortunately (or luckily), JavaScript is not able to communicate between different Clients/PCs (but the webserver can). thus any JavaScript solution can only monitor the count of one PC (like acoder already said).

        Comment

        Working...