Atribut shape

Havola vazifasini o’tovchi maydonning shaklini aniqlaydi.

Rasmdagi havola vazifasini o'tovchi maydonning shaklini aniqlaydi. <object> elementi ichida joylashgan <a> elementida qo'llaniladi.

Sintaksis

<object usemap="#identifikator">
 <map name="identifikator">
  <a href="manzil" shape="circle | default | poly | rect">...</a>
 </map>
</object>

Qiymatlari

circle
Doira shaklidagi maydon.
default
Odatiy shakldagi maydon. To’g’ri to’rtburchak.
poly
Ko’pburchak shaklidagi maydon.
rect
To’g’ri to’rtburchak shaklidagi maydon.

Default qiymati

Yo'q.

Misol

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>А, atribut shape</title>
 </head>
 <body>
  <div>
    <object type="image/jpeg" data="../../sample/sample.jpg" 
    width="500" height="500" usemap="#link">
    <map name="link">
      <area href="https://google.com" shape="rect" coords="0, 0, 250, 250" alt="Google" target="_blank">
      <area href="https://yandex.com" shape="rect" coords="250, 0, 500, 250" alt="Yandex" target="_blank">
    </map> 
    </object>
  </div>
</body>
</html>

Natija

Brauzerlar

Internet Explorer Edge Chrome Opera Safari Firefox
Android Firefox Opera Safari