The eCatalog Search Viewer supports the rendering of image map icons above the main view.
The appearance of map icons is controlled through CSS as described in Image map effect.
Image maps perform one of the following three actions: redirect to an external web page, Info panel pop-up activation, and internal hyperlinks.
Redirect to an external web page
The href
attribute of the image map has a URL to the external resource, either specified explicitly, or wrapped into one of the supported JavaScript template functions: loadProduct()
, loadProductCW()
, and loadProductPW()
.
The following is an example of a simple URL redirect:
href=http://www.adobe.com
In this example, the same URL is wrapped with the loadProduct()
function:
href=javascript:loadProduct("http://www.adobe.com");void(0);
Be aware that 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.
Info Panel Popup activation
To work with Info panels, an image map has the ROLLOVER_KEY
attribute set. Also, set the href
attribute at the same time, otherwise the external URL processing interferes with the Info panel pop-up activation.
Finally, be sure that the viewer configuration includes the appropriate values for InfoPanelPopup.template
and, optionally, InfoPanelPopup.infoServerUrl
parameters.