Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design

  • Print
  • + Share This
  • 💬 Discuss
This chapter is from the book

Defining Hyperlinks

A hyperlink is an area of a page that can be clicked to send the reader to a new page, open a new document, move to a Web page, or send an email message. There are two parts to a hyperlink. The source is the object or text that you click to trigger the hyperlink. The destination is the page or Web link you go to.

To create a hyperlink:

  1. If the Hyperlinks panel is not visible, choose Window > Interactive > Hyperlinks to open the panel squ_a.jpg.
    405fig01.jpg

    squ_a.jpg The Hyperlinks panel is used to define both hyperlinks and cross-references.

  2. Select the text or object that you want to make the hyperlink source.
  3. Click the Create New Hyperlink icon in the panel or choose New Hyperlink from the panel menu. This opens the New Hyperlink dialog box squ_b.jpg.
  4. Set the options for Link To, Destination, Character Style, and Appearance as described in the following exercises.

There are several types of destinations for hyperlinks. You can, for instance, choose to link to a specific place in the document or you can link to a Web page. The type of link you choose determines the destination options that appear in the New Hyperlink dialog box.

To choose the type of link:

Use the Link To menu to choose one of the following types of links squ_a.jpg:

  • URL creates a link to a Web page.
  • File creates a link that opens a file in another application. Note: the file must be accessible to anyone choosing the link.
  • Email creates a link that opens the default email application. You can also set the email address and subject line.
  • Page creates a link that opens a new page in the document.
  • Text Anchor creates a link to a point in the text that was defined as a text anchor.
  • Shared Destination creates a link to a previously defined hyperlink. This is particularly helpful if you want several different hyperlinks to go to the same destination.

As you define hyperlinks, they appear in the Hyperlinks panel. Different types of hyperlinks display different icons.

To see the types of hyperlinks in the Hyperlinks panel:

Click each hyperlink in the Hyperlinks panel. An icon next to the link shows the type of link squ_b.jpg.

406fig02.jpg

squ_b.jpg The icons for hyperlinks in the Hyperlinks panel.

In addition to setting the destinations for hyperlinks, you can also control how the hyperlink appears on the page.

To set a character style to text hyperlinks:

  1. Select the text that you want as a hyperlink.
  2. In the New Hyperlink dialog box, click the Character Style menu squ_c.jpg.
    407fig01.jpg

    squ_c.jpg Use the Character Style menu to apply a text style to a hyperlink.

  3. Choose a predefined character style. Or choose None to apply no style to the selected text. You can also create visual indicators around all hyperlinks. This is controlled using the Appearance settings squ_d.jpg.

To set the appearance of a hyperlink:

  1. Use the Type menu in the Appearance area to choose a setting for the visibility of the rectangle around the hotspot.
  2. Use the Highlight menu to choose the appearance of the hotspot area when clicked.
  3. Use the Width menu to choose the thickness of the visible rectangle.
  4. Use the Style menu to choose a solid or dashed line for the visible rectangle.
  5. Use the Color menu to choose a color for the rectangle.

The easiest way to create a hyperlink destination is to create it as you define the hyperlink. However, it’s also possible to define destinations without defining the hyperlink. This is helpful if you have a lot of destinations that you want to define before you know where you will create the hyperlinks.

To create a page destination:

  1. Choose New Hyperlink Destination in the Hyperlinks panel menu.
  2. Choose Page from the Type menu. This sets the Page destination controls squ_a.jpg.
    408fig01.jpg

    squ_a.jpg The New Hyperlink Destination dialog box set for a Page destination.

  3. Use the Page number control to set the page destination.
  4. Enter a name for the page destination

    or

    Click the option for Name with Page Number. This forces the destination name to the name of the page and the zoom setting.

  5. Use the Zoom setting menu to set the magnification for the jump to that page.

You can set destinations for a URL. These are the links that are used to open Web pages.

To create a URL destination:

  1. Choose New Hyperlink Destination in the Hyperlinks panel menu to open the New Hyperlink Destination dialog box.
  2. Choose URL from the Type menu squ_b.jpg.
    408fig02.jpg

    squ_b.jpg The New Hyperlink Destination dialog box set for a URL destination.

  3. Enter a name for the destination.
  4. Enter the URL information.

As you work, you can edit the settings for the hyperlink source.

To edit hyperlinks:

  1. Double-click the hyperlink entry in the Hyperlinks panel or choose Hyperlink Options in the Hyperlinks panel menu.
  2. Make changes in the Hyperlink Options dialog box.

To delete a hyperlink:

  1. Select the hyperlink you wish to delete.
  2. Click the Delete icon in the Hyperlinks panel squ_c.jpg or choose Delete Hyperlink/Cross-Reference from the Hyperlinks panel menu.
409fig01.jpg

squ_c.jpg The Hyperlinks panel contains controls for working with hyperlinks.

To move to a hyperlink:

  1. Select the hyperlink in the Hyperlinks panel.
  2. Choose Go to Source from the Hyperlinks panel menu or click the Go to Source icon in the Hyperlinks panel squ_c.jpg.

To move to a hyperlink destination:

  1. Select the hyperlink in the Hyperlinks panel.
  2. Choose Go to Destination from the Hyperlinks panel menu or click the Go to Destination icon in the Hyperlinks panel squ_c.jpg.

To fix a missing hyperlink:

  1. Select the hyperlink that displays the missing destination icon squ_d.jpg.
    409fig02.jpg

    squ_d.jpg The missing destination icon indicates that the hyperlink needs to be fixed.

  2. Double-click the hyperlink to open the Edit Hyperlink dialog box.
  3. Set the new destination for the hyperlink.
  • + Share This
  • 🔖 Save To Your Account

Discussions

comments powered by Disqus