✔ 最佳答案
You cannot do it with html code. You have to use server-side coding, e.g. asp, asp.net, php,etc. to record the number of visitors because it is only on the server that you can tell when a page is hit.
There are many on-line web statistics services that give you free visitor counter. You need only add a javascript or html code to link to their server. Search the web for "free website visitor counter" or similar wording and there are tons of web sites you can choose from.
Here are some of the counter providers:
http://www.webstat.net
http://www.easycounter.com
http://www.statcounter.com
http://www.website-hit-counters.com