This article describes how to create a custom image for the
hit counter in Microsoft FrontPage. The hit counter displays the numbers for an
image by dividing an image into 10 equal horizontal segments. The 10 percent
segment on the leftmost side is zero (0), and each 10 percent segment to the
right is enumerated 1 through 9. The hit counter supports Graphics Interchange
Format (GIF) images only.
Create a Custom Image for the FrontPage Hit Counter
To create a custom image for the FrontPage hit counter, follow
these steps:
- Create an image:
- Open an image editing program that can save files as
.GIF images (for example, Microsoft Photo Editor), and then create an image
that is 200 pixels wide and 40 pixels high.
- Evenly put text for the numbers 0 through 9 from left
to right. If your image editor program can put a grid on the image, you may
want to use this feature to better align the text. In this example, the graphic
for each number is 20 pixels wide. The numbers should be lined up as follows:
0 1 2 3 4 5 6 7 8 9
- After you are satisfied with the look and alignment of
your image, save the image in GIF format as
Counter.gif.
- Import the image into your FrontPage Web:
- Open your Web in FrontPage.
- On the View menu, click Folders. In the Folder List, click the Images folder to open it.
- On the File menu, click Import.
- In the Import dialog box, click Add File.
- In the Add File to Import List dialog
box, locate the Counter.gif file on your hard disk, select the file, and then
click Open.
- In the Import File to FrontPage Web
dialog box, click OK.
- Add the counter and custom image to your page:
- In Page view, open the page on which you want to use the
counter.
- Click your page to put the insertion point in the
location where you want the hit counter to appear.
- On the Insert menu, click Web Component.
- In the Insert Web Component dialog box, click Hit Counter, and then click Finish.
- In the Hit Counter Properties dialog box, click Custom Picture.
- In the Custom Image text box, type images/counter.gif, and
then click OK.
- On the File menu, click Save, and then click Preview in Browser.
- In the Preview in Browser dialog box, click Preview.
NOTE: You may have to edit the image in your image editing program
several times to get the placement and look of the numbers correct. The size of
the image does not matter to the hit counter, but, for simplicity, it is a good
idea to create images that have widths that are evenly divisible by 10 (for
example, 100 pixels, 200 pixels, 300 pixels).