Advertise with WINCOM and get seen by Thousands
   










support

Injecting custom code in Microsoft FrontPage

Example for adding the Hitcounter script so that Microsoft FrontPage doesn't complain or manipulate your code upon publishing your site.

FrontPage installation:
In order to properly install our website counter icon on your website using FrontPage you will need to follow one of the 2 procedures below. Otherwise FrontPage will change the HTML code for the hitcounter icon, causing the icon to function improperly.

Method 1
One way to add the Tag with Frontpage is as follows:

1) Open the html page (*.htm, *.html, *.asp, or whatever) and put the cursor where you want the counter to appear

2) In the main menu, choose Insert->Advanced->HTML... to open up the HTML Markup dialog

3) Paste the second line (the non-comment line) of the Tag into the dialog as shown below in Figure 1 and click OK.

4) Save the file (in the menu File->Save, or press CTRL-S)

<!-- webbot bot="HTMLMarkup" startspan -->
<img src="/cgi-bin/counter/Count.cgi?df=loginid.homepage">
<!-- webbot bot="HTMLMarkup" endspan -->

The opening and closing webbot comments seem to prevent "file:" from being added when the page is opened and then saved in Frontpage.

Method 2
The other way to essentially accomplish the same thing is to open the HTML source file in a text editor such as Notepad and add the webbot comment lines manually. Before the Tag, add:

<!-- webbot bot="HTMLMarkup" startspan -->

And after the Tag, add:

<!-- webbot bot="HTMLMarkup" endspan -->

 

So that your HTML source looks like:

<!-- webbot bot="HTMLMarkup" startspan -->

<img src="/cgi-bin/counter/Count.cgi?df=loginid.homepage">

<!-- webbot bot="HTMLMarkup" endspan -->

  Corporate Disclaimer   Terms & Conditions   Advertise with Us
Send questions and comments about our site to webmaster@wincom.net
© 2002 Windsor Information Network Company, Ltd. ... a Primus Canada Company.