增加可按的熱點到影像上

Contents
Index 🔎︎

# 新增可按的熱點至影像

影像映射可讓您將 URL 附加到文件中圖片上的特定區塊，這些區塊稱為熱點。影像映射就是由一個或多個熱點組成的群組。

您可以繪製三種類型的熱點：矩形、橢圓和多邊形。當您按一下熱點時，該 URL 便會在指定的瀏覽器視窗或外框中開啟。您也可以指定當滑鼠置於熱點上時所顯示的文字。

## 若要增加可按的熱點到影像上

1. 將游標置於文件中您要放置影像映射的位置。

2. Choose Insert - Image, select and insert a bitmap image.

3. With the image selected, choose Edit - ImageMap in Writer and Calc or Tools - ImageMap in Impress and Draw. You see the ImageMap Editor, which displays the image at the background.

4. 使用「影像映射編輯器」中的圖示，在背景的影像上繪製熱點形狀，例如矩形。

   當您在 [LibreOffice] - [喜好設定][工具] - [選項] - [LibreOffice] - [一般] 中啟用 [進階的說明] 時，會在每個圖示的功能上看到進階的說明。

5. 輸入當使用者按一下熱點時，Web 瀏覽器中將顯示的「位址」URL。

6. 或者，輸入當使用者將滑鼠指向熱點時，將顯示的提示「文字」。

7. 按一下 [套用] 按鈕以套用變更，並關閉「影像映射編輯器」。

8. 以 LibreOffice 或 HTML 格式儲存文件。

例如，您可以將影像映射儲存為檔案，並將該檔案上傳到 Web 伺服器。

## ImageMap

An ImageMap is a reference-sensitive graphic or text frame. You can click on defined areas of the graphic or text frame to go to a target (URL), which is linked with the area. The reference areas, along with the linked URLs and corresponding text displayed when resting the mouse pointer on these areas, are defined in the ImageMap Editor.

There are two different types of ImageMaps. A Client Side ImageMap is evaluated on the client computer, which loaded the graphic from the Internet, while a Server Side ImageMap is evaluated on the server computer which provides the HTML page on the Internet. In server evaluation, clicking an ImageMap sends the relative coordinates of the cursor within the image to the server, and a dedicated program on the server responds. In the client evaluation, clicking a defined hotspot of the ImageMap activates the URL, as if it were a normal text link. The URL appears below the mouse pointer when passing across the ImageMap.

As ImageMaps can be used in different ways, they can be stored in different formats.

## ImageMap Formats

ImageMaps are basically divided between those that are analyzed on the server (i. e. your Internet provider) and those analyzed on the web browser of the reader's computer.

## Server Side ImageMaps

Server Side ImageMaps appear for the reader as a picture or frame on the page. Click on the ImageMap with the mouse, and the coordinates of the relative position are sent to the server. Aided by an extra program, the server then determines the next step to take. There are several incompatible methods to define this process, the two most common being:

- W3C (CERN) HTTP Server (Format type: MAP - CERN)

- NCSA HTTP Server (Format type: MAP - NCSA)

LibreOffice creates ImageMaps for both methods. Select the format from the File type list in the Save As dialog in the ImageMap Editor. Separate Map Files are created which you must upload to the server. You will need to ask your provider or network administrator which type of ImageMaps are supported by the server and how to access the evaluation program.

## Client Side ImageMap

The area of the picture or frame where the reader can click is indicated by the appearance of the linked URL when the mouse passes over the area. The ImageMap is stored in a layer below the picture and contains information about the referenced regions. The only disadvantage of Client Side ImageMaps is that older Web browsers cannot read them; a disadvantage that will, however, resolve itself in time.

When saving the ImageMap, select the file type SIP - StarView ImageMap. This saves the ImageMap directly in a format which can be applied to every active picture or frame in your document. However, if you just want to use the ImageMap on the current picture or text frame, you do not have to save it in any special format. After defining the regions, simply click Apply. Nothing more is necessary. Client Side ImageMaps saved in HTML format are inserted directly into the page in HTML code.