Real page effect: just a picture
HTML code:
<!DOCTYPE HTML><HTML><style>Body{padding:0px;margin:0px;}</style><Body><imgsrc= "Images/b.jpg"alt= "Planets"Usemap= "#planetmap" /><MapID= "Planetmap">< AreaShape= "Rect"coords= "10,10,200,300"href= "Sun.htm"alt= "Sun" />< AreaShape= "Circle"coords= "300,200,200"href= "Mercur.htm"alt= "Mercury" />< AreaShape= "Circle"coords= "500,240,200"href= "Venus.htm"alt= "Venus" /><!--Line -< AreaShape= "Poly"coords= "100,240,200,100,100"href= "Venus.htm"alt= "Venus"><!--Triangles -< AreaShape= "Poly"coords= "100,240,200,100,100,100"href= "Venus.htm"alt= "Venus"></Map></Body></HTML>
Ps:
Definition and usage
The Shape property mates with the Coords property to specify the size, shape, and position of the area.
Detailed Explanation:
The Shape property is used to define the shapes of the mouse-sensitive areas in the image map:
- Round (CIRC or circle)
- Polygon (poly or polygon)
- Rectangle (rect or rectangle)
1, Round:
2. Rectangle:
3, Straight line:
4, Triangle:
HTML5 Area Instance