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 Adobe Dynamic Media Classic, you can also create image maps when you design a catalog in Adobe Acrobat or Adobe 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
-
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.
-
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 and the slider is reset to its maximum value.
-
-
Enter a name for the Image Map, if desired, in the Image Map list. After you draw an Image Map, Adobe Dynamic Media Classic assigns it a name.
To create the name, Adobe 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.
-
If you want users to open a new web page when they select the Image Map, enter the URL in the Image Map list.
-
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.
-
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.)
-
(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 temporarily remove an Image Map from an image, an image in a SpinSet, or an eCatalog page, without deleting it, deselect the appropriate On option in the Image Map list.
-
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:
-
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 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 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:
- Go to the Image Map editor page (for images or images in SpinSets) or the Map Pages tab of the eCatalog editing screen.
- Select Import Metadata.
- In the Upload Metadata dialog box, select Image or Image Map to upload the metadata from desired asset property type.
- In the Generate File drop-down list, select the type of file that you want to create.
- (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.
- Browse to the file that you want to upload. In the File Name text field, specify the name of the generated file.
- (Optional) In the Job Name field, specify a name for the metadata upload job.
- 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 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:
-
Go to the Image Map editor page (for images or images in SpinSets) or the Map Pages tab of the eCatalog editing screen.
-
Select Copy Maps to.
-
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.
-
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 Adobe Dynamic Media Classic JavaScript handler called loadProduct
that opens the image in a new window.
About URL templates about-url-templates
The URL template works by substituting the contents of the URL column in the Image Map list 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 Adobe 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 Adobe 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
- 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.
- 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.
- 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:
- On the Map Editor screen (images and SpinSets) or Map Pages tab of the eCatalog screen (eCatalogs), select the Show menu and select Other Actions.
- 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.
- 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 Adobe Acrobat or Adobe InDesign creating-image-maps-in-adobe-acrobat-or-adobe-indesign
You can create Image Maps while designing your eCatalog in Adobe Acrobat or Adobe InDesign.
In Adobe Acrobat or Adobe 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 Adobe Dynamic Media Classic automatically converts the links to Image Maps.
For more information, see Adobe InDesign Help or Adobe Acrobat Help.
To create Image Maps in Adobe InDesign to-create-image-maps-in-adobe-indesign
-
In Adobe InDesign, go to Windows® > Interactive > Hyperlinks.
-
In the Hyperlinks panel, select the text, frame, or graphic that you want to make into an Image Map.
-
Select New Hyperlink from the panel menu.
-
In the New Hyperlink dialog box, from the Link To menu, choose URL.
-
Type or paste the product ID in the URL box.
-
Select OK. (Adobe Dynamic Media Classic completes the URL using the Image Map URL template.)
note note NOTE You do not need to set appearance options in Adobe InDesign. You can specify appearance in Adobe Dynamic Media Classic. -
Repeat steps 2 through 6 for all the Image Maps you want to create.
-
Export the file as a PDF.
-
Upload the PDF to Adobe Dynamic Media Classic.
-
In PDF Options, select Extract Links.
To create Image Maps in Adobe Acrobat to-create-image-maps-in-adobe-acrobat
- In Adobe Acrobat, go to Tools > Advanced Editing > Link Tool.
- Drag to create the Image Map.
- In the Create Link box, select Custom Link, and select Next.
- In the Link Properties box, select Actions.
- Select Open A Web Link from the Select Action menu, and then select Add.
- Type the product ID for the Image Map in the Edit URL box, and select OK. (Adobe Dynamic Media Classic completes the URL using the image map URL template.)
- Repeat steps 1 through 7 for all the Image Maps you want to create.
- Save the file.
- Upload the PDF to Adobe Dynamic Media Classic and select Extract Links from the PDF Options.