<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Reference%2FJavascript_Properties%2Fcoords</id>
		<title>JavaScript Reference/Javascript Properties/coords - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Reference%2FJavascript_Properties%2Fcoords"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Properties/coords&amp;action=history"/>
		<updated>2026-04-04T15:29:10Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Properties/coords&amp;diff=6875&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Properties/coords&amp;diff=6875&amp;oldid=prev"/>
				<updated>2010-05-26T08:21:45Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 08:21, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Properties/coords&amp;diff=6874&amp;oldid=prev</id>
		<title> в 18:30, 25 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Properties/coords&amp;diff=6874&amp;oldid=prev"/>
				<updated>2010-05-25T18:30:11Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==&amp;quot;coords&amp;quot; Example==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- &lt;br /&gt;
Example revised from &lt;br /&gt;
The Web Programmer&amp;quot;s Desk Reference&lt;br /&gt;
by Lazaro Issi Cohen and Joseph Issi Cohen &lt;br /&gt;
ISBN: 1593270119&lt;br /&gt;
Publisher: No Starch Press 2004&lt;br /&gt;
--&amp;gt;    &lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    function function1() {&lt;br /&gt;
        document.all.area1.coords = &amp;quot;0, 0, 100, 50&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    function function2() {&lt;br /&gt;
        document.all.area2.coords = &amp;quot;100, 0, 200, 50&amp;quot;; &lt;br /&gt;
        document.all.area2.noHref = &amp;quot;true&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    function function3() {&lt;br /&gt;
        document.all.area3.coords = &amp;quot;0, 50, 100, 100&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    function function4() {&lt;br /&gt;
        document.all.area4.coords = &amp;quot;100, 50, 200, 100&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    function function5() {&lt;br /&gt;
        document.getElementById(&amp;quot;area1&amp;quot;).coords = &amp;quot;0, 0, 0, 0&amp;quot;;&lt;br /&gt;
        document.getElementById(&amp;quot;area2&amp;quot;).coords = &amp;quot;0, 0, 0, 0&amp;quot;;&lt;br /&gt;
        document.getElementById(&amp;quot;area3&amp;quot;).coords = &amp;quot;0, 0, 0, 0&amp;quot;;&lt;br /&gt;
        document.getElementById(&amp;quot;area4&amp;quot;).coords = &amp;quot;0, 0, 0, 0&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;img src=&amp;quot;yourimage.gif&amp;quot; id=&amp;quot;myImg&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;200&amp;quot; height=&amp;quot;100&amp;quot; usemap=&amp;quot;#myMap2&amp;quot;&amp;gt; &lt;br /&gt;
&amp;lt;map name=&amp;quot;myMap2&amp;quot;&amp;gt; &lt;br /&gt;
    &amp;lt;area id=&amp;quot;area1&amp;quot; &lt;br /&gt;
          shape=&amp;quot;rect&amp;quot; &lt;br /&gt;
          href=&amp;quot;http://www.wbex.ru&amp;quot; &lt;br /&gt;
          alt=&amp;quot;wbex.ru&amp;quot; &lt;br /&gt;
          onClick=&amp;quot;return false&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;area id=&amp;quot;area2&amp;quot; &lt;br /&gt;
          shape=&amp;quot;rect&amp;quot; &lt;br /&gt;
          href=&amp;quot;http://www.wbex.ru&amp;quot; nohref=&amp;quot;true&amp;quot; &lt;br /&gt;
          alt=&amp;quot;wbex.ru home page&amp;quot; &lt;br /&gt;
          onClick=&amp;quot;return false&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;area id=&amp;quot;area3&amp;quot; &lt;br /&gt;
          shape=&amp;quot;rect&amp;quot; &lt;br /&gt;
          href=&amp;quot;http://www.wbex.ru&amp;quot; &lt;br /&gt;
          alt=&amp;quot;wbex home page&amp;quot; &lt;br /&gt;
          onClick=&amp;quot;return false&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;area id=&amp;quot;area4&amp;quot; &lt;br /&gt;
          shape=&amp;quot;rect&amp;quot; &lt;br /&gt;
          href=&amp;quot;http://www.wbex.ru&amp;quot; &lt;br /&gt;
          alt=&amp;quot;wbex.ru&amp;quot; &lt;br /&gt;
          onClick=&amp;quot;return false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/map&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Make area 1 active&amp;quot; onClick=&amp;quot;function1();&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Make area 2 active&amp;quot; onClick=&amp;quot;function2();&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Make area 3 active&amp;quot; onClick=&amp;quot;function3();&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Make area 4 active&amp;quot; onClick=&amp;quot;function4();&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;function5();&amp;quot;&amp;gt;Restore areas to inactive&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;alert(myImg.isMap);&amp;quot;&amp;gt;IS MAP&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;alert(area2.noHref);&amp;quot;&amp;gt;noHref for Area 2&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
    &lt;br /&gt;
      &lt;br /&gt;
      &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;coords&amp;quot; is applied to==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
+----------------+--------------------------------------------------------------+&lt;br /&gt;
| Applied_To     |&amp;lt;a&amp;gt;                             &amp;lt;area&amp;gt;                        |&lt;br /&gt;
+----------------+--------------------------------------------------------------+&lt;br /&gt;
      &lt;br /&gt;
      &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;coords&amp;quot; Syntax and Note==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
Note:&lt;br /&gt;
Read and write property. &lt;br /&gt;
Sets the the element clickable region coordinates.&lt;br /&gt;
    &lt;br /&gt;
Syntax:&lt;br /&gt;
    &lt;br /&gt;
document.getElementById(&amp;quot;elementID&amp;quot;).coords = value&lt;br /&gt;
document.all.elementID.coords = value // IE only&lt;br /&gt;
&lt;br /&gt;
Values depend on the shape attribute&amp;quot;s value:&lt;br /&gt;
shape = circ or circle                 x, y (coordinates of the center), r (radius).&lt;br /&gt;
shape = rect or rectangle              x1, y1 (coordinates of the upper-left corner), &lt;br /&gt;
                                       x2, y2 (coordinates of the lower-right corner).&lt;br /&gt;
shape = poly or polygon                x1, y1, x2, y2, x3, y3, . . . &lt;br /&gt;
                                       pairs of coordinates for each vertex of the polygon.&lt;br /&gt;
    &lt;br /&gt;
      &lt;br /&gt;
      &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>