ÃÛ¶¹ÊÓƵ

Create Image Maps creating-image-maps

An Image Map is a region on an image, an eCatalog page, or an image in a SpinSet that displays a rollover panel with text. When the user selects an Image Map, an action of some kind is triggered. For example, a Web page is launched so that the user can learn more about a product. An outline appears around an Image Map when the user moves the pointer over it.

Besides the ability to create Image Maps in ÃÛ¶¹ÊÓƵ Dynamic Media Classic, you can also create Image Maps when you design a catalog in ÃÛ¶¹ÊÓƵ Acrobat or ÃÛ¶¹ÊÓƵ InDesign.

When you create Image Maps, you can do any of the following:

  • Enter rollover text.
  • Enter JavaScript and URLs for launching Web pages.
  • Create URL templates for Image Maps.
  • Copy Image Maps to other images, or eCatalog pages, or SpinSets.
  • Export Image Maps to CSV or to XML.
  • Import image metadata from a tab-delimited file or from an XML file.
  • Define Other Actions as determined by the World Wide Web Consortium.
  • Preview Image Maps.

Draw and adjust an Image Map drawing-and-adjusting-an-image-map

  1. Do one of the following:

    • If you are working with an image in the Grid View or List View, in the Edit drop-down list select Image Map. Or, open it in Detail View, and then select Image Map above the image.
    • If you are working with a SpinSet in the Grid View or List View, select Edit. Or, open it in Detail View, and then select Edit. Select an image asset, and then select Image Map.
    • If you are working with an eCatalog, in the Grid View, List View, Detail View, select Edit. Select the Map Pages tab.

    Image Map illustration

  2. Draw a rectangular or polygonal (many-sided) Image Map:

    • Rectangular map: Select the Rectangle Image Map tool and drag on the page to create the rectangle. To add a point to a rectangular map (thus changing it to a polygon map), press Ctrl, then place the insertion tool at the desired location and select.

    • Polygonal map: Select the Polygon Image Map tool and select points on the perimeter of the area of the image you want to enclose. Use the polygon density slider to vary the point density in the polygon. The original density is remembered if you select other maps. If any point is added, deleted, or moved in the polygon, the original density is lost. The slider is reset to its maximum value.

  3. Enter a name for the Image Map, if desired, in the Image Map list. After you draw an Image Map, ÃÛ¶¹ÊÓƵ Dynamic Media Classic assigns it a name.

    To create the name, ÃÛ¶¹ÊÓƵ Dynamic Media Classic appends a sequential number to the name of the image or eCatalog page you are working with. You can enter a name of your choice.

  4. If you want users to open a new Web page when they select the Image Map, enter the URL in the Image Map list.

    See to enter JavaScript and URLs.

  5. To display rollover text when users move the pointer over your Image Map, enter the text in the Image Map list. In the Image Map list, select the Show menu and select Rollover Text. Then enter the text that you want users to see onscreen. You can write the text in a word processor and copy it into the Rollover text field.

  6. If you want another action effect to occur when users move the mouse over an Image Map, define the action. In the Show drop-down list, select Other Actions. Enter the attributes of the action. (Go to Show > Both to create rollover text and an action for an Image Map.)

    See Define other actions for Image Maps.

  7. (Optional) Do any of the following:

    • To preview Image Maps, select Preview.

    • To delete an Image Map or polygon vertex, select a shape on the image, and then select Delete. Or, for an eCatalog, on the Order Pages tab, select Clear Maps to remove Image Maps from all pages.

    • To remove an:

      • Image Map from an image
      • an image in a SpinSet
      • or, an eCatalog page

      temporarily, without deleting it, deselect the appropriate On option in the Image Map list.

  8. Select Save.

Adjust the position, shape, and size of Image Maps adjusting-the-position-shape-and-size-of-image-maps

To change the position, shape, and size of an Image Map, select the Image Map button. Then, select the Pan tool and follow these instructions:

  • Change position: Move the pointer near to but not over the border of the Image Map. When you see the four-headed arrow icon, drag the map to a new location.

  • Change the size and shape: How you change the shape and size of an Image Map depends on whether you are working with a rectangular or polygonal Image Map:

TIP
You can drag the Size slider at the bottom of the screen to change views and get a better look at your Image Map.
  • Rectangular Image Map: Move the pointer over a side or corner of the Image Map. When you see the double-headed arrow icon, start dragging. Hold down the Shift key as you drag to change the size but maintain the aspect ratio (the shape).

  • Polygonal Image Map: Drag a square selection handle. To create a selection handle, select the border of the Image Map and start dragging.

Handle overlapping Image Maps handling-overlapping-image-maps

If your image or eCatalog page includes more than one Image Map and the maps overlap, you can determine how the maps overlap. To do so, change the order of maps on the Image Map list. Drag their names higher or lower on the list. How high a name is on the list determines whether its Image Map overlaps other Image Maps.

Import Image Map data importing-image-map-data

Rather than enter Image Map data on each page, you can import the data for your image, Spin Set, or eCatalog into the Map Summary screen. You import the Image Map data in the form of a tab-delimited file or XML DTD. The fields in your file must be in the order shown in the Map Summary screen: Name, TOC Labels, Maps, URLs, Rollover Text, Other Actions, and Search Strings. Importing Image Map data saves you the trouble of entering the data in the Image Map list as you create each Image Map.

To import Image Map data:

  1. Go to the Image Map editor page (for images or images in SpinSets) or the Map Pages tab of the eCatalog editing screen.
  2. Select Import Metadata.
  3. In the Upload Metadata dialog box, select Image or Image Map to upload the metadata from the desired asset property type.
  4. In the Generate File drop-down list, select the type of file that you want to create.
  5. (Optional) Select Generate to preview the resulting data based on the type of file you want to create. Select Close to return to the Upload Metadata dialog box.
  6. Browse to the file that you want to upload. In the File Name text field, specify the name of the generated file.
  7. (Optional) In the Job Name field, specify a name for the metadata upload job.
  8. Select Upload.

Copy Image Maps copying-image-maps

You can copy Image Maps from an image or an eCatalog page to another. Use Copy Image Map to get a head start creating them. You can also copy Image Maps to re-create them in images or pages that share layout or mapping structure.

For example, copying Image Maps in an eCatalog is a convenient way to copy all Image Maps between foreign language versions of the same eCatalog. For best results, copying is most successful if you copy between eCatalogs with the same number of pages and the same images. If the eCatalog to which you copy already contains Image Maps, those Image Maps are deleted when the copy is made.

To copy Image Maps:

  1. Go to the Image Map editor page (for images or images in SpinSets) or the Map Pages tab of the eCatalog editing screen.

  2. Select Copy Maps to.

  3. Do one of the following, based on if you are copying Image Maps from images or copying Image Maps from an eCatalog:

    • (Images) In the Select Images screen, select the images that you want to copy the Image Maps to.
    • (eCatalog) In the Select Asset screen, select the images or eCatalog pages that you want to copy the Image Maps to.
  4. Choose Select.

Use a template to enter JavaScript and URLs using-a-template-to-enter-javascript-and-urls

You can define a URL template (also known as an href template) to make entering Image Map URLs easier and more efficient. Define a URL template if most of your Image Map URLs share a common, fixed format. By entering the portion of the URL that is fixed as the URL template, you do not have to enter this portion of the URL each time you create an Image Map. Your URL template can also contain JavaScript commands, pathnames, and parameters. By default, the URL template contains a proprietary ÃÛ¶¹ÊÓƵ Dynamic Media Classic JavaScript handler called loadProduct that opens the image in a new window.

NOTE
When you add the JavaScript code into the href attribute of your Image Map, the code is run on the client’s computer. Therefore, make sure that the JavaScript code is secure.

About URL templates about-url-templates

The URL template works by substituting the contents of the URL column in the Image Map list. It substitutes it with the double dollar signs (‘$$’) in the template:

Javascript:loadProduct('$$');void(0);

You place all values that do not change between Image Maps in the URL template. Add only the values that do change in the URL column in the Image Map list. For example:

  • URL template: javascript:loadProduct('https://www.examplesitehere.com/$$');void(0);
  • URL value: product.htm
  • Actual URL generated: javascript:loadProduct('https://www.examplesitehere.com/product.html);void(0);

By default, the URL template includes a proprietary ÃÛ¶¹ÊÓƵ Dynamic Media Classic JavaScript handler called loadProduct that opens a new window with the URL destination. However, you can use any JavaScript code to replace this JavaScript handler or use one of the following ÃÛ¶¹ÊÓƵ Dynamic Media Classic handlers:

  • loadProductCW: Displays the URL target specified in the URL column in the current window. This handler is primarily for eCatalogs that are integrated into a page within a website.

  • loadProductPW: Displays the URL target specified in the URL column in the parent window (the page that opened the current one). The current window remains open, but the parent window changes to display the URL target.

    note note
    NOTE
    The handler loadProductPW does not support DHTML and HTML5 viewers.

Create a URL template creating-a-url-template

  1. On the Map Editor screen (images or SpinSets) or the Map Pages tab of the eCatalog screen (eCatalogs), select Edit next to the URL template option. The Edit Map Template dialog box opens.
  2. Enter the JavaScript code and the complete URL (with the variable portion replaced by dollar signs [$$]). You can paste the code by right-clicking and choosing Paste.
  3. Select Save.

Handle URL templates handling-url-templates

The Map Editor page (images and SpinSets) and the Map Pages tab of the eCatalog screen (eCatalogs) offer these commands for handling URL templates:

  • URL template option: Select the URL template option to apply your URL template to all the Image Maps on an image or eCatalog page.

  • Template option: Deselect a Template option in the URL Image Map list if you do not want an individual Image Map to use the URL template.

Define other actions for Image Maps defining-other-actions-for-image-maps

You can select the Show menu and choose Other Actions to trigger actions other than rollover text and Web page launches. When the user moves the pointer over an Image Map, you can initiate an action. These actions are attributes defined for client-side Image Maps by World Wide Web Consortium HTML specifications. They include:

  • accesskey: Triggers an action when the user presses a designated key on the keyboard.

  • onfocus: Triggers an event when the Image Map receives focus—by the cursor, by tabbing, or by pressing an access key. For example, you can launch a Web page when the Image Map receives focus and close it when your Image Map loses focus.

  • onblur: Triggers an event when the Image Map loses focus, either by the cursor or by tabbing.

To define other actions for Image Maps:

  1. On the Map Editor screen (images and SpinSets) or the Map Pages tab of the eCatalog screen (eCatalogs), select the Show menu and select Other Actions.
  2. Using the syntax specified by the World Wide Web Consortium HTML specifications, add the supported attributes in the Other Actions column of the Image Map list.
  3. Select Save.

Select the Show menu and select Both if you want an Image Map to have rollover text and an action.

Create Image Maps in ÃÛ¶¹ÊÓƵ Acrobat or ÃÛ¶¹ÊÓƵ InDesign creating-image-maps-in-adobe-acrobat-or-adobe-indesign

You can create Image Maps while designing your eCatalog in ÃÛ¶¹ÊÓƵ Acrobat or ÃÛ¶¹ÊÓƵ InDesign.

In ÃÛ¶¹ÊÓƵ Acrobat or ÃÛ¶¹ÊÓƵ InDesign, create hyperlink references where you want the Image Maps to appear, and specify URL locations for the Image Map. Selecting the Extract Links option when uploading the PDF file into ÃÛ¶¹ÊÓƵ Dynamic Media Classic automatically converts the links to Image Maps.

For more information, see ÃÛ¶¹ÊÓƵ InDesign Help or ÃÛ¶¹ÊÓƵ Acrobat Help.

To create Image Maps in ÃÛ¶¹ÊÓƵ InDesign to-create-image-maps-in-adobe-indesign

  1. In ÃÛ¶¹ÊÓƵ InDesign, go to °Â¾±²Ô»å´Ç·É²õ® > Interactive > Hyperlinks.

  2. In the Hyperlinks panel, select the text, frame, or graphic that you want to make into an Image Map.

  3. Select New Hyperlink from the panel menu.

  4. In the New Hyperlink dialog box, from the Link To menu, choose the URL.

  5. Type or paste the product ID in the URL box.

  6. Select OK. (ÃÛ¶¹ÊÓƵ Dynamic Media Classic completes the URL using the Image Map URL template.)

    note note
    NOTE
    You do not need to set appearance options in ÃÛ¶¹ÊÓƵ InDesign. You can specify the appearance in ÃÛ¶¹ÊÓƵ Dynamic Media Classic.
  7. Repeat steps 2 through 6 for all the Image Maps you want to create.

  8. Export the file as a PDF.

  9. Upload the PDF to ÃÛ¶¹ÊÓƵ Dynamic Media Classic.

  10. In PDF Options, select Extract Links.

To create Image Maps in ÃÛ¶¹ÊÓƵ Acrobat to-create-image-maps-in-adobe-acrobat

  1. In ÃÛ¶¹ÊÓƵ Acrobat, go to Tools > Advanced Editing > Link Tool.
  2. Drag to create the Image Map.
  3. In the Create Link box, select Custom Link, and select Next.
NOTE
You do not need to set appearance options in ÃÛ¶¹ÊÓƵ Acrobat. You can specify the appearance in ÃÛ¶¹ÊÓƵ Dynamic Media Classic.
  1. In the Link Properties box, select Actions.
  2. Select Open A Web Link from the Select Action menu, and then select Add.
  3. Type the product ID for the Image Map in the Edit URL box, and select OK. (ÃÛ¶¹ÊÓƵ Dynamic Media Classic completes the URL using the Image Map URL template.)
  4. Repeat steps 1 through 7 for all the Image Maps you want to create.
  5. Save the file.
  6. Upload the PDF to ÃÛ¶¹ÊÓƵ Dynamic Media Classic and select Extract Links from the PDF Options.
recommendation-more-help
ba789e76-bace-4e0e-bd26-52691fb2cb26