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: