|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Using the Hit Counter ComponentOne popular element on the home page of many sites is a counter that indicates how many people have visited the page. When counters first started to appear on pages, they were simply text, but later Web content providers got fancy and sent images to the browser to represent the digits in the visitor count. This enabled counters to take on various lookssome looked like a car odometer and others looked like an LED readout. Either way, counters add a little pizzazz to a page and give the pages owner a sense of how popular the page is with Web surfers. It used to be that you had to code a CGI script to retrieve the previous count, add one to it, and then display the result. Further coding was needed if you were going to parse the visitor count and send each digit as an image. But now, FrontPage relieves you of all that by providing a Hit Counter Component that you drop into place on a page. To put a Hit Counter Component on one of your pages, follow these steps:
When the Hit Counter appears on the Normal tab of the FrontPage Editor, youll see the text [Hit Counter] rendered in boldface. If you switch to the HTML tab, youll see code such as the following: <!--webbot bot=HitCounter i-image=1 i-digits=7 b-reset=FALSE PREVIEW=<strong>[Hit Counter]</strong> u-custom i-resetvalue=0 --> Using the Substitution ComponentThe Substitution Component inserts the value of a Web or page configuration variable into a document. The default configuration variables available to the Substitution Component are:
Any Web setting parameters you specify in the FrontPage Explorer will be available to the Substitution Component as well (choose Tools, Web Settings; see Figure 10.13).
To use the Substitution Component, follow these steps:
When the Substitution Component appears on the FrontPage Editors Normal tab, youll see the name of the variable you selected enclosed in square brackets. On the HTML tab, the Substitution Component is represented by code that resembles the following: <!--webbot bot=Substitution S-Variable=vti_modifiedby --> Using the Confirmation Field ComponentForms are a Web content providers means of collecting information from end users. Data entered into a form is typically sent back to the server for some kind of processing, but before that happens, you can do a few things with the form data to ensure that it is as polished as it can be. One thing is to confirm the data in the forms key fields, and the FrontPage Confirmation Field Component can help you do it. The first thing you need to make a form field confirmation is, not surprisingly, a form. Assuming youve already used the FrontPage Editor to compose a form, go back through the form and write down the names (as assigned in the NAME attributes) of the form fields you want to confirm. Youll need the field names when inserting the Field Confirmation Components. Next, you need to create a confirmation page where the Field Confirmation Components will reside. To do this, follow these steps:
With the confirmation page created, the last thing you need to do is to link the form with the confirmation page. You can accomplish this by performing these steps:
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |