Area coords attribute
Definition and usage
coords
The attribute sets or returns the area coords attribute value.
coords
The attribute specifies the x and y coordinates of the area.
coords
The attribute is used with the shape attribute to specify the size, shape, and position of the area.
Hint:The coordinates of the top left corner of the area are 0,0.
Hint:Use shape attribute Set or return the area shape attribute value.
Example
Example 1
Get the coordinates of a specific area in the image map:
var x = document.getElementById("venus").coords;
Example 2
Change the coordinates of a specific area in the image map:
document.getElementById("venus").coords = "129,161,10";
Syntax
Return coords attribute:
areaObject.coords
Set coords attribute:
areaObject.coords = value
attribute value
value | description |
---|---|
x1, y1, x2, y2 | যদি shape এটিবার্ট প্রতিষ্ঠিত "rect" হলে, তবে এটি বহুকোণা কোর্ডিনেট নির্দেশ করে。 |
x, y, radius | যদি shape এটিবার্ট প্রতিষ্ঠিত "circle" হলে, তবে এটি বহুকোণা কেন্দ্র এবং ব্যাস নির্দেশ করে。 |
x1, y1, x2, y2, .. , xn, yn |
যদি shape এটিবার্ট প্রতিষ্ঠিত "poly" হলে, তবে এটি বহুকোণা প্রতিসূচক এবং প্রতিসূচক কোর্ডিনেট নির্দেশ করে。 যদি প্রথম এবং শেষ কোর্ডিনেট একই না হলে, ব্রাউজারটি বহুকোণা বন্ধ করতে শেষ কোর্ডিনেট যোগ করতে হবে。 |
প্রযুক্তিগত বিবরণ
ফলাফল: | শব্দতালিকা মান, কমা দ্বারা বিভক্ত কোণার তালিকা。 |
---|
ব্রাউজার সমর্থন
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |
সংশ্লিষ্ট পাতা
HTML রেফারেন্স ম্যানুয়েল:HTML <area> coords এট্রিবিউট