Image hotspot & amp; image ing, dreamweaver image hotspot

Source: Internet
Author: User

Image hotspot & image ing, dreamweaver image hotspot
Image ing

Image ing is also called image hotspot.

Purpose:

Allows different areas on the same image to implement multiple hyperlinks.

Figure:

<Map> three steps for image ing:

The implementation of image ing must be completed in three aspects:

1. The image ing container is an img tag. You must use the usemap attribute to establish a connection with the map tag.

2. Image ing is a map tag. You need to use the name attribute to establish a connection with the map tag.

3. For hotspot areas, use the sub-label area of the map label to create the hotspot area.

 

Syntax format:

<Map name = "Map">

<Area shape = "Hotspot shape" coords = "coordinate" href = "Link" alt = "substitute text"/>

</Map>

 

Attribute introduction:

attributes to be used:

Usemap: # map Name

<Map> attributes:

Name: Set the hotspot region name.

<Area> common attributes:

Shape: Set the shape of the hotspot Area

Rect (rectangle ),

Circle ),

Polygon (polygon)

Coords: coordinates of the hotspot areas, which vary with shapes.

For rect, the coordinates are (x1, y1, x2, y2), (x1, y1) the upper left corner of the rectangle, and (x2, y2) the lower right corner of the rectangle.

For circle, the coordinates are (x, y, r), (x, y) center coordinates, and r is the radius.

For polygon, the seat is (x1, y1, x2, y2 ,... Xn, yn), (xn, yn) is the coordinate of nth Vertex

Example:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.