Unfortunately you can't make a hit counter in either JavaScript or DHTML (and I'm assuming that's what you wanted to do, since you posted in the JavaScript and DHTML forum). You see, a hit counter needs some way of keeping track of how many hits you've received so far - this can be either in a database or in a plain text file kept on the server. JS and DHTML are both client-side languages, which means they're executed in the web surfer's browser, and not on the server. Therefore, they don't have access to write to files.
Instead, they're used to do fancy menus and those types of ornamental bells and whistles. For a hit counter, you will need a server-side language such as PHP, for example.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
Offline 13,646 posts
since Feb 2002