|
|
 |

 |
|
Microsoft® FrontPage® Version 2002 Step by Step
|
|
|
Author
|
|
Online Training Solutions, Inc.
|
|
|
Pages
|
368
|
|
Disk
|
1 Companion CD(s)
|
|
Level
|
Beg/Int
|
|
Published
|
06/06/2001
|
|
ISBN
|
9780735613003
|
|
Price
|
$29.99
To see this book's discounted price, select a reseller below.
|
|
|
|
|
 |
|
|
Chapter 7: Enhancing the Capabilities of Your Web Site continued
Adding Dynamic Elements to a Web Page
You can add a class of Web components called dynamic effects to your pages to create an illusion of movement. Although some components provide information that changes from one visit to your Web site to another, the information itself is static. The dynamic effects components, on the other hand, actually move. With a few simple commands, you can create elements that flash on and off or that scroll across the screen.
In this exercise, you will insert two common dynamic elements: a marquee and a banner ad.
The working folder for this exercise is SBS\FrontPage\Capabilities\Elements.
Follow these steps:
- Open the GardenCo Web site located in the working folder.
- Open classes.htm in the Page view editing window.
- With the insertion point at the beginning of the body of the page, click the Web Component button on the Standard toolbar.
The Insert Web Component dialog box opens with Dynamic Effects selected in the Component type box.
- In the Choose an effect box, click Marquee, and then click Finish.
The Marquee Properties dialog box opens, as shown here:

Click to view graphic
- In the Text box, type Register Now for Upcoming Classes!.
- Retain all the default settings, and click OK.
In the Normal pane, your marquee has been inserted as a new line of textnot very exciting!
- Switch to the Preview pane.
The text scrolls across the top of the content pane from right to left, repeating continuously.
- Switch back to the Normal pane.
- Right-click the marquee text, and click Marquee Properties on the shortcut menu.
- In the Marquee Properties dialog box, change the Behavior setting to Alternate and the Background color to Green, and then click OK.
- With the marquee text still selected in the Normal pane, click the Bold and Italic buttons on the Formatting toolbar.
- Click the down arrow to the right of the Font Color button, and select White from the Standard Colors palette.
The marquee text now looks like this:

Click to view graphic
- Switch to the Preview pane to see the results of your changes.
- Now open contact.htm in the Page view editing window.
- Place the insertion point at the beginning of the second paragraph of text, which begins with Please feel free, and then click Enter to create a new line.
- With the insertion point on the blank line, click the Web Component button on the Standard toolbar to display the Insert Web Component dialog box.
- With Dynamic Effects selected in the Component type list, click Banner Ad Manager in the Choose an effect list, and then click Finish.
This Banner Ad Manager Properties dialog box opens:

Click to view graphic
- In the Width box, type 264. In the Height box, type 72.
These are the dimensions in pixels of the banner ad that will be inserted.
- In the Transition effect drop-down list, click Blinds Horizontal.
- In the Show each picture for (seconds) box, type 2.
- Leave the Link to box blank.
If you were posting this banner advertisement on another site, you could enter your own URL here to direct visitors to your site.
- In the Pictures to display area, click Add.
- In the Add Picture for Banner Ad dialog box, browse to SBS\FrontPage\Capabilities\Elements, select banner1.bmp, and click OK.
- Repeat step 23 to add banner2.bmp and banner3.bmp to the Pictures to display box, and then click OK to insert your banner ad.
- With the banner ad selected in the Normal pane, click the Center button on the Formatting toolbar to center the ad on the page.
Your page now looks like this:

Click to view graphic
- Click the Preview in Browser button, and save the embedded graphic files when prompted to do so.
In the browser, the banner ad cycles between the three graphics according to your specified settings.
- Close the browser to return to FrontPage.
- Close any open pages, saving them if prompted.
- If you are not continuing on to the next chapter, quit FrontPage.
Previous
| Table of Contents
| Next
Last Updated: Saturday, July 7, 2001 |