Including Hyperlinks

 < Day Day Up > 



If you create Web pages, you're going to want to include hyperlinks. After all, the ability to jump from document to document (or from file location to file location) using hyperlinks is a major drawing point of the Web. Imagine entering a Uniform Resource Locator (URL) in the Address box every time you wanted to visit a Web page! Because hyperlinks play such a large role in text navigation these days, Word provides convenient ways to create and modify hyperlinks in your documents.

start sidebar
Controlling Automatic Hyperlinks

By default, Web and e-mail addresses are automatically formatted as hyperlinks when you type them in a Word document if Word can easily recognize the text as a Web address or an e-mail address. For example, if you type www.creationguide.com, Word will format the text as a Web address, but if you type creationguide.com, Word won't format the text as a hyperlink. To work around this, you could type www.creationguide.com, and then after Word formats the hyperlink, you could delete the www. portion of the Web address. Similarly, you could add http:// in front of a Web address that doesn't start with www. to indicate that the text is a Web address, as in http://creationguide.com.

This automatic formatting feature is usually welcome, but at times you might prefer to turn off the feature. To change this setting, you must configure the AutoCorrect options as follows:

  1. Choose Tools, AutoCorrect Options, and then click the AutoFormat As You Type tab.

  2. Clear the Internet And Network Paths With Hyperlinks check box under the Replace As You Type section, and then click OK.

After you turn off this AutoCorrect option, Word will no longer automatically format Web and e-mail addresses as hyperlinks in your documents. As you might expect, existing hyperlinks will not be affected.

end sidebar

As you probably know, hyperlinks are text or graphics that have been formatted to serve as links to other files, file locations, or e-mail addresses when users click them. Every hyperlink consists of two main components: an anchor and a target. The part of the hyperlink you click is the anchor, and the information you see in response to clicking an anchor is the target. When you create hyperlinks, you must specify the anchor information and enter the address or location of the target information. In addition, you can add a third component to hyperlinks, called ScreenTips. A ScreenTip is the text that appears when you hover your pointer over a hyperlink or that appears when the option to display graphics is turned off in an application (such as a browser). Using Word, you can easily create text, graphic, and e-mail hyperlinks, as described next.

Tip 

Change the Ctrl+click hyperlink setting in Word  By default, you must use Ctrl+click to follow a hyperlink while you're working in Word. This setup is convenient because it enables you to click within a hyperlink to edit its text. At times, though, you might find the combination is unnecessary or cumbersome. If that's the case, you can turn off this setting (so that you can simply click hyperlinks to follow them when you're working in Word). To remove the Ctrl+click setting, choose Tools, Options, click the Edit tab, and then clear the Use Ctrl+Click To Follow Hyperlink check box.

Creating Text Hyperlinks

Any text, including characters, words, phrases, headings, paragraphs, and so forth can be formatted to serve as a hyperlink. To create a text hyperlink, follow these steps:

  1. Click in the word or select the text you want to format as a hyperlink, or position your insertion point where you want to insert a text hyperlink. Generally, it's easier to work with existing text, but you can also position the insertion point and then add the text as you build a hyperlink.

  2. Click Insert Hyperlink on the Standard toolbar, or right-click the selected text or at the insertion point, and then choose Hyperlink from the shortcut menu. The Insert Hyperlink dialog box appears, as shown in Figure 26-10.

    click to expand
    Figure 26-10: The Insert Hyperlink dialog box helps you specify the target for a hyperlink; you can choose an existing or new file, location within the current file, or e-mail address to serve as a hyperlink target.

    Tip 

    In addition to using the Standard toolbar and right-click methods to access the Insert Hyperlink dialog box, you can also choose Insert, Hyperlink on the menu bar or press Ctrl+K.

  3. Verify that the Text To Display box shows the text you want to use to create the hyperlink. If not, you can change the text to suit your needs. Keep in mind that the text you insert in this text box will appear on your page; it will be inserted at the insertion point or replace the text you selected in step 1.

  4. Next, you need to specify the hyperlink's target file, file location, or e-mail address. To do so, click a button in the Link To to specify the type of hyperlink you'll be creating. You can select from among the following types of hyperlink targets:

    • Existing File Or Web Page-You can use this option if your hyperlink will link to an existing file or Web page. If the page you're linking to contains headings or bookmarks, you can format the hyperlink to jump directly to a particular heading or bookmark location. To do so, specify the file you want to link to, click Bookmark, and then click the bookmark or heading you want users to see when they click the hyperlink.

    • Place In This Document-You can create hyperlinks that jump to headings or bookmarks in the current document. When you click the Place In This Document button, the Insert Hyperlink dialog box changes to display a list of the headings and bookmarks in the current document, as shown in Figure 26-11. To create the hyperlink, verify the Text To Display text, click Place In This Document, click a listed heading or bookmark, and then click OK. This type of hyperlink comes in handy when you want to include a Return To Top link at the bottom of a page or if you have a long page with a list of links at the top of the page that enables viewers to jump to lower areas in the document.

      click to expand
      Figure 26-11: Using the Place In This Document option in the Link To area, you can configure a hyperlink to target a specific heading or bookmark in the current document.

    • Create New Document-You can use this option to create a hyperlink to a page that hasn't been created yet. When you click Create New Document, the Insert Hyperlink dialog box changes to display a text box you can use to name a new document. You can then specify whether you want to edit the new document now or later. When you name a new document, make sure you include the .htm or .html extension so that Word will create a Web page document instead of a Word document.

    • E-Mail Address-You can use this option to create hyperlinks that users can click to open a preaddressed e-mail message window. For more information about creating e-mail hyperlinks, see "Inserting E-Mail Hyperlinks".

      Tip 

      Create bookmarks to serve as hyperlink locations  To create a bookmark in your document, position your insertion point where you want to insert a bookmark, and choose Insert, Bookmark. Then, in the Bookmark dialog box, type a bookmark name without spaces and click Add. For more information about creating bookmarks, see Chapter 23, "Configuring Footnotes, Endnotes, and Cross-References."

  5. After you choose a Link To option, select the file or file location you want the hyperlink to link to or type a Web address in the Address box. Figure 26-10 shows the Insert Hyperlink dialog box with information in the Address box, which links the hyperlink to another document stored in the current folder.

  6. After you configure the hyperlink's target and text display information, click the ScreenTip button. The Set Hyperlink ScreenTip dialog box appears, as shown in Figure 26-12.

    click to expand
    Figure 26-12: The Set Hyperlink ScreenTip dialog box enables you to specify the text that appears when users hover their pointers over a hyperlink.

  7. Type text in the ScreenTip Text box, and then click OK.

  8. Click OK in the Insert Hyperlink dialog box to complete the hyperlink creation process.

start sidebar
Using Drag-and-Drop to Create Hyperlinks

If you want to create a hyperlink in one document to access information in another document, you can use the right-click and drag method, as follows:

  1. Open both documents, and arrange them so that you can see both documents at once.

  2. In the target file (the file containing the information you want to link to), select text you want to use as the hyperlink's display text. Right-click the selected text, and then drag it into the other document. When the insertion point is positioned where you want to insert the hyperlink, release the right mouse button.

  3. From the shortcut menu that appears, choose Create Hyperlink Here.

Keep in mind that you can't right-click and drag drawing objects to create hyperlinks; for those types of objects, you have to use the standard hyperlink procedures, as described in the next section, "Linking Graphics." If you use the right-click and drag method to create hyperlinks and you plan to post the Web pages online, you might find it easiest to store the files in the same folder. That way, you won't lose or confuse the hyperlink information when you upload the pages to the server.

end sidebar

Tip 

Set the hyperlink base  You can set the base address for a document if you want all hyperlinks to automatically include the base address information in their paths. To specify a base address, choose File, Properties, click the Summary tab, enter the base address in the Hyperlink Base box, and then click OK.

Linking Graphics

You can create graphics hyperlinks in the same way you create text hyperlinks. When you design Web pages, you'll find that some graphics make particularly intuitive hyperlinks, including the following:

  • Graphic buttons that link to subpages in a Web site

  • Logos that consistently link to a company's home page

  • Small (thumbnail) pictures that link to larger versions of the pictures

  • E-mail graphics that link to preaddressed e-mail message windows

  • Pictures that link to Web pages elaborating on the pictures, such as a picture of the company's president that's linked to a Letter From The President page or Bio page

To access the Insert Hyperlink dialog box when you're formatting a graphic as a hyperlink, click the image or drawing object, and then click the Hyperlink button on the Standard toolbar, or right-click the picture or drawing object, and then choose Hyperlink from the shortcut menu. After you open the Insert Hyperlink dialog box, you configure the hyperlink information in the same way you configure text hyperlinks, as described in "Creating Text Hyperlinks".

start sidebar
Creating Linked Banners and Navigation Buttons

You can combine Word features to create linked banners and buttons. For example, you can create banners using WordArt and you can create buttons by using Word's drawing tools, AutoShapes, and text boxes (see Chapter 12, "Enlivening Documents with Drawings and AutoShapes," for more information about this). After you create a banner or button in Word, you can format the object as a hyperlink by right-clicking the object and then choosing Hyperlink from the shortcut menu, or by clicking the object and then clicking the Hyperlink button on the Standard toolbar.

If you want to reuse a drawing object on several Web pages, you might want to save the object as a standard image file so that the button or banner appears consistently throughout your site. You'll need a drawing program such as Microsoft Paint to complete this procedure. To turn a drawing object into an image, follow these steps:

  1. Display the WordArt, button, or other drawing object on the screen.

  2. Press Print Scrn.

  3. Open a drawing program and paste the contents of your system Clipboard into the program. For example, in Paint, choose Edit, Paste or press Ctrl+V.

  4. Crop the WordArt or drawing object.

  5. Resize the object to its approximate display size if necessary.

  6. Save the image as a GIF file for use in your Web page.

After you create the GIF image, you can insert it in your Web page and format the image as a hyperlink, just as you insert and format other image files. For more information about inserting images in Web pages, see "Working with Web Graphics".

end sidebar

Inserting E-Mail Hyperlinks

The last type of hyperlink we'll look at here is an e-mail hyperlink. E-mail hyperlinks are frequently used on Web pages to present an E-Mail The Webmaster link or other similar "contact us" types of link. When a user clicks an e-mail hyperlink, an e-mail message window opens, containing an e-mail address in the To box that you specified for the hyperlink. When you create an e-mail hyperlink, you can also automatically configure the Subject line's text.

To create an e-mail hyperlink, follow these steps:

  1. Click in a word or select the text or graphic you want to display as a hyperlink, or position your insertion point where you want to insert the hyperlink.

  2. Click Hyperlink on the Standard toolbar, or right-click and then choose Hyperlink from the shortcut menu, or press Ctrl+K.

  3. In the Link To area in the Insert Hyperlink dialog box, click E-Mail Address. The Insert Hyperlink dialog box changes to accommodate creating e-mail hyperlinks.

  4. In the E-Mail Address box, enter the e-mail address you want to associate with the hyperlink, or, if available, click the e-mail address in the Recently Used E-Mail Addresses list, as shown in Figure 26-13. Notice that when you enter an e-mail address, Word automatically adds the mailto: prefix.

    click to expand
    Figure 26-13: When you create an e-mail hyperlink, you can specify the To line e-mail address, ScreenTip information, and a Subject line for the e-mail message.

  5. Verify or change the Text To Display text, and then type text in the Subject box, if desired.

  6. Click the ScreenTip button, enter ScreenTip information in the Set Hyperlink ScreenTip dialog box, and then click OK.

  7. Click OK in the Insert Hyperlink dialog box to complete the e-mail hyperlink.

    Tip 

    Use AutoCorrect to create e-mail hyperlinks  As mentioned, you can also create e-mail hyperlinks in your documents automatically by simply typing an e-mail address directly in the body of your document. By default, AutoCorrect formats e-mail addresses typed in a document as e-mail hyperlinks.

Editing Hyperlinks

After you create text hyperlinks, you can customize their appearance just as you customize other text by using standard formatting techniques such as applying font colors and font styles.

Tip 

To easily select a hyperlink before applying formatting, right-click the hyperlink, and then choose Select Hyperlink from the shortcut menu.

In addition, you can edit text, graphics, and e-mail hyperlinks by modifying the hyperlinks' properties. For example, you can make the following changes:

  • Change a hyperlink's target. To change a hyperlink's target, right-click the hyperlink, and then choose Edit Hyperlink from the shortcut menu. Then, in the Edit Hyperlink dialog box (which looks very much like the Insert Hyperlink dialog box), change the hyperlink's target information.

  • Change a text or an e-mail hyperlink's display text. You can edit a hyperlink's text directly in the body of your document by typing over existing hyperlink text, or you can right-click a hyperlink, choose Edit Hyperlink from the shortcut menu, and then change the Text To Display text in the Edit Hyperlink dialog box.

  • Remove hyperlink formatting. You can also remove hyperlink formatting from text, e-mail, and graphics hyperlinks. To do so, right-click the hyperlink, and then choose Remove Hyperlink from the shortcut menu. When you remove hyperlink formatting, the hyperlink is converted to regular, unlinked text or graphics. Keep in mind that formatted text retains its formatting, so if you manually applied boldface formatting or a font color to a hyperlink, the formatting remains intact even though the hyperlink is removed.

Troubleshooting: I want to remove hyperlink properties throughout a document without deleting the text or graphic anchors

start example

Word doesn't provide a way to remove all hyperlink properties in a document in one fell swoop. But if you're a little flexible and your document doesn't contain extensive advanced formatting or a large number of components, you can remove hyperlink properties from a document without finding, selecting, and clearing each hyperlink. The trick is to temporarily turn off hyperlink formatting; once the hyperlink settings are removed, you can select all instances of the text formatted to look like hyperlinks, and then clear the text formatting. Here's how to accomplish this:

  1. Open the document from which you want to remove all hyperlinks.

  2. Choose Tools, Option, and then click the Save tab.

  3. In the Save tab, click the Disable Features Introduced After check box, select Microsoft Word 6.0/95 in the list, and then click OK. You'll see a message box listing the changes that will be made to the document if you proceed with the format change. (If you don't see the message box, click Save on the Standard toolbar.) The message box should show how many instances of hyperlinks will be reformatted, similar to the following screenshot:

    click to expand

  4. If the changes in the message box look acceptable, click Continue. (If some of the changes aren't acceptable, you won't be able to continue with this procedure; in that case, click Cancel, and then remove hyperlinks manually.)

  5. At this point, your document won't contain any underlying hyperlink information, but text that served as hyperlink text anchors will continue to appear with hyperlink formatting (such as blue and underlined); therefore, you will probably want to clear the formatting. To clear all instances of hyperlink formatting at once, first right-click text that was a hyperlink, and then choose Select Text With Similar Formatting from the shortcut menu.

  6. After selecting all instances of formatted text, press Ctrl+Spacebar to clear formatting from all selected text.

  7. Finally, to reset the default Word format setting, choose Tools, Options, click the Save tab if necessary, clear the Disable Features Introduced After check box, and then click OK.

end example

Tip 

Modify hyperlink styles  If you want to change the style of all hyperlinks used in your Web page, your best bet is to alter the Hyperlink and Followed Hyperlink styles in the Styles And Formatting task pane. For more information about modifying styles, see Chapter 9, "Using Styles to Increase Your Formatting Power."

Deleting Hyperlinks

In addition to changing hyperlinks and removing hyperlink properties, you might want to delete hyperlinks-anchors and all. You delete hyperlinks the same way you delete standard text and graphics. Select the information you want to delete, and then press Delete or Backspace.



 < Day Day Up > 



Microsoft Office Word 2003 Inside Out
Microsoft Office Word 2003 Inside Out (Bpg-Inside Out)
ISBN: 0735615152
EAN: 2147483647
Year: 2005
Pages: 373

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net