Computer: Makeuper: HTML: Ex01: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
主題:指定圖片某一區域連向某處的語法 | 主題:指定圖片某一區域連向某處的語法 | ||
[[Image:Html_usemap_01.PNG]] | [[Image:Html_usemap_01.PNG]] | ||
Line 15: | Line 13: | ||
<body> | <body> | ||
<P>< | <P><IMG src="html_usemap_01.PNG" | ||
usemap="#map1" style="border:1px solid red;"> | usemap="#map1" style="border:1px solid red;"> | ||
<P>This is a navigation bar. | <P>This is a navigation bar. | ||
<MAP name="map1"> | <MAP name="map1"> |
Revision as of 21:37, 29 July 2004
回到 Computer ‧ 回到 Computer: Makeuper ‧ 回到 Computer: Makeuper: HTML
主題:指定圖片某一區域連向某處的語法
- - - - - - - - - - - - - - - - -
<body> <P><IMG src="html_usemap_01.PNG" usemap="#map1" style="border:1px solid red;"> <P>This is a navigation bar. <MAP name="map1"> <AREA href="html_usemap_01.html" alt=" Rectangle 矩形 " title=" Rectangle 矩形 " shape="rect" coords="141,40, 252,116"> <AREA href="html_usemap_01.html" alt=" Circle 圓形 " title=" Circle 圓形 " shape="circle" coords="91,238, 45"> <AREA href="html_usemap_01.html" alt=" Poly 多邊形 " title=" Poly 多邊形 " shape="poly" coords="189,297, 143,342, 229,337"> </MAP> </body>
- - - - - - - - - - - - - - - - -
http://home.pchome.com.tw/young/kouyu/winiAlienHacker/pub/test/html_usemap_00.html
右邊那個矩形是畫好看的,不必理會。
大致上屬性跟數字的指定應該是這樣子的規則。
shape=" rect | circle | poly "
rect=" Rectangle 矩形 "
coords="141,40, 252,116"
兩者一組,前兩者為左上端點,後兩者為右下端點。
circle=" Circle 圓形 "
coords="91,238, 45"
前兩者為圓心,後一者為半徑長。
poly=" Poly 多邊形 "
coords="189,297, 143,342, 229,337"
兩者一組,代表各個端點的 X Y 軸位置。
W3C相關講義
http://www.w3.org/TR/html401/struct/objects.html#adef-usemap