Addició de zones sensibles a imatges

Els mapes d'imatge permeten adjuntar URL a àrees concretes, anomenades zones sensibles, a una imatge del document. Un mapa d'imatge és un grup d'una o diverses zones sensibles.

Podeu dibuixar tres tipus de zones sensibles: rectangles, el·lipses i polígons. Quan feu clic en una zona sensible, s'obri l'URL a la finestra o al marc del navegador que indiqueu. També podeu indicar el text que apareix quan es passa el ratolí per sobre d'una zona sensible.

Per afegir una zona sensible a una imatge

  1. Col·loqueu el cursor allà on vulgueu afegir el mapa d'imatge al document.

  2. Trieu Insereix - Imatge, seleccioneu una imatge de mapa de bits i inseriu-la.

  3. Amb la imatge seleccionada, trieu Edita ▸ Mapa d'imatge. Apareix l'Editor del mapa d'imatge, que mostra la imatge al fons.

  4. Utilitzeu les icones de l'editor del mapa d'imatge per dibuixar una forma de zona sensible, per exemple un rectangle, per sobre de la imatge en el fons.

    Per visualitzar un text d'ajuda ampliat sobre les funcions de cada icona, habiliteu l'opció Consells ampliats a - LibreOffice - General.

  5. Introduïu l'URL "Adreça" que s'ha de mostrar al navegador web quan l'usuari faça clic a la zona sensible.

  6. També podeu introduir el "Text" que s'ha de mostrar com a consell quan l'usuari col·loqui el ratolí sobre la zona sensible.

  7. Feu clic al botó Aplica per aplicar els canvis i tanqueu l'editor de mapa d'imatge.

  8. Guardeu el document en el format del LibreOffice o en HTML.

Podeu guardar el mapa d'imatge com a fitxer i penjar-lo en un servidor web, per exemple.

Mapa d'imatge

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:

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.