How to create a page and add a hit counter in FrontPage 2003 (825532)



The information in this article applies to:

  • Microsoft Office FrontPage 2003

For a Microsoft FrontPage 2000 version of this article, see 309008.

For a Microsoft FrontPage 2002 version of this article, see 318275.

IN THIS TASK

SUMMARY

This article describes how to set up a Web page with a hit counter by using FrontPage 2003.

back to the top


How to create a page and add the hit counter

Follow these steps to create a page and to add a hit counter to the page:
  1. On a Web server that is running Internet Information Services (IIS) or Microsoft FrontPage Server Extensions 2002, start FrontPage 2003, and then open a Web page.
  2. Start a new page. To do this, click the New Page button on the FrontPage toolbar.
  3. In Page view at the bottom of the document window, click Design.
  4. Put the insertion point where you want the hit counter.
  5. On the Insert menu, click Web Component.
  6. Under Component type, click Hit Counter.
  7. Under Choose a counter style, double-click one of the of the hit counter styles.
  8. To set the counter to a specific number, click to select the Reset counter to check box, and then type the number.
  9. To display a fixed number of digits in the hit counter, click to select the Fixed number of digits check box, and then type the number.

    For example, to display the hit counter as "00#" instead of as a single or double digit, click to select the Fixed number of digits check box, and then type 3.
  10. Click OK.
Note To add a hit counter to your Web site, your site must be located on a IIS server that is running Microsoft FrontPage 2002 Server Extensions, Microsoft SharePoint Team Services version 1.0, or Microsoft Windows SharePoint Services. Ask your Web server administrator or Internet service provider (ISP) whether your server is running these technologies.

back to the top


How to use the hit counter on the page

Follow these steps to use the hit counter on the page:
  1. Put the insertion point before the Hit Counter object on the page.
  2. Type You are visitor followed by a space.
back to the top


How to save and preview the page

Follow these steps to save and preview the page:
  1. On the File menu, click Save.
  2. Name the file CounterText.asp, and then click Save.
  3. On the File menu, click Preview in Browser.
  4. Click Preview.
If you refresh the page in your browser, you will see the hit count value increment.

Note Because the output from the Hit Counter object is text, the hit counter changes when you change the fonts and colors for the page.

For more information about about how to change the fonts or colors, click Microsoft FrontPage Help on the Help menu, type fonts or colors in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

back to the top


How to reset the hit counter

Follow these steps to reset the value of the hit counter:
  1. In Page view, at the bottom of the document window, click Design.
  2. Double-click the hit counter.
  3. Click to select the Reset counter to check box, and then type a number in the box.
  4. Click OK.


back to the top

Modification Type:MinorLast Reviewed:1/6/2006
Keywords:kbhowto KB825532 kbAudEndUser