<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" >

  <channel>
    <title><![CDATA[Комментарии к публикации «Javascript event.currentTarget — конфузная ситуация»]]></title>
    <link>https://habr.com/ru/articles/63243/</link>
    <description><![CDATA[Комментарии к публикации «Javascript event.currentTarget — конфузная ситуация»]]></description>
    <language>ru</language>
    <managingEditor>editor@habr.com</managingEditor>
    <generator>habr.com</generator>
    <pubDate>Wed, 22 Apr 2026 03:51:10 GMT</pubDate>
    
    
      <image>
        <link>https://habr.com/ru/</link>
        <url>https://habrastorage.org/webt/ym/el/wk/ymelwk3zy1gawz4nkejl_-ammtc.png</url>
        <title>Хабр</title>
      </image>
    

    
      

      
        
  
    <item>
      <title>01.07.2009 09:32:48 Zitrix</title>
      <guid isPermaLink="true">https://habr.com/ru/articles/63243/#comment_13371921</guid>
      <link>https://habr.com/ru/articles/63243/#comment_13371921</link>
      <description><![CDATA[хм… странно, я забыл про window.event… но… эээ… ие6 и так заработал… или у меня с ие6 что-то, или одно из двух.<br/>
<br/>
В onClick первой строчкой добавьте: evt = evt || window.event;]]></description>
      <pubDate>Wed, 01 Jul 2009 09:32:48 GMT</pubDate>
      <dc:creator><![CDATA[Zitrix]]></dc:creator>
    </item>
  

  
    <item>
      <title>01.07.2009 09:27:51 Zitrix</title>
      <guid isPermaLink="true">https://habr.com/ru/articles/63243/#comment_13371919</guid>
      <link>https://habr.com/ru/articles/63243/#comment_13371919</link>
      <description><![CDATA[Для таких вопросов <a href="http://xpoint.ru/">xpoint.ru</a> существует.<br/>
<br/>
<code><pre>
function getElementXY(node) {
	// если у html/body имеется паддинг или нода находится внутри ноды со скроллом (но не html),
	// то нужно будет дополнительно погемороиться
	var x = 0, y = 0;
	while(node.offsetParent) {
		x += node.offsetLeft;
		y += node.offsetTop;
		node = node.offsetParent;
	}
	return [x, y];
}

function onClick(evt) {
	// координаты мыши на странице
	var mouseXY = [evt.clientX, evt.clientY]; 
	// координаты ноды на странице
	var nodeXY = getElementXY(evt.currentTarget || evt.srcElement); 
	// координаты мыши внутри ноды - просто разность
	var XY = [ mouseXY[0] - nodeXY[0], mouseXY[1] - nodeXY[1] ]; 
	// проверка (я смотрел в ие6, фф2, опера 9.5)
	// alert(mouseXY[0] +&quot;, &quot;+ mouseXY[1] +&quot;\n&quot;+ nodeXY[0] +&quot;, &quot;+ nodeXY[1]);
}
</pre></code>]]></description>
      <pubDate>Wed, 01 Jul 2009 09:27:51 GMT</pubDate>
      <dc:creator><![CDATA[Zitrix]]></dc:creator>
    </item>
  

  
    <item>
      <title>30.06.2009 13:48:24 sultan</title>
      <guid isPermaLink="true">https://habr.com/ru/articles/63243/#comment_13371917</guid>
      <link>https://habr.com/ru/articles/63243/#comment_13371917</link>
      <description><![CDATA[Будем пробовать братцы, буду писать что у меня получилось… Спасибо.]]></description>
      <pubDate>Tue, 30 Jun 2009 13:48:24 GMT</pubDate>
      <dc:creator><![CDATA[sultan]]></dc:creator>
    </item>
  

  
    <item>
      <title>30.06.2009 12:52:54 josser</title>
      <guid isPermaLink="true">https://habr.com/ru/articles/63243/#comment_13371915</guid>
      <link>https://habr.com/ru/articles/63243/#comment_13371915</link>
      <description><![CDATA[Вот тут почитайте: <br/>
<a href="http://www.quirksmode.org/js/events_properties.html">www.quirksmode.org/js/events_properties.html</a><br/>
<br/>
Раздел «Mouse position»<br/>
]]></description>
      <pubDate>Tue, 30 Jun 2009 12:52:54 GMT</pubDate>
      <dc:creator><![CDATA[josser]]></dc:creator>
    </item>
  

  
    <item>
      <title>30.06.2009 12:29:09 OldFornit</title>
      <guid isPermaLink="true">https://habr.com/ru/articles/63243/#comment_13371913</guid>
      <link>https://habr.com/ru/articles/63243/#comment_13371913</link>
      <description><![CDATA[советую посмотреть на библиотеку openlayers. Вот <a href="http://gis-lab.info/qa/openlayers-begin.html">gis-lab.info/qa/openlayers-begin.html</a> введение на русском языке.]]></description>
      <pubDate>Tue, 30 Jun 2009 12:29:09 GMT</pubDate>
      <dc:creator><![CDATA[OldFornit]]></dc:creator>
    </item>
  

  
    <item>
      <title>30.06.2009 12:18:29 sultee</title>
      <guid isPermaLink="true">https://habr.com/ru/articles/63243/#comment_13371911</guid>
      <link>https://habr.com/ru/articles/63243/#comment_13371911</link>
      <description><![CDATA[омг, у автора ник равен моему имени]]></description>
      <pubDate>Tue, 30 Jun 2009 12:18:29 GMT</pubDate>
      <dc:creator><![CDATA[sultee]]></dc:creator>
    </item>
  

  
    <item>
      <title>12.03.2009 12:59:33 Tracks_Flow</title>
      <guid isPermaLink="true">https://habr.com/ru/articles/63243/#comment_1446236</guid>
      <link>https://habr.com/ru/articles/63243/#comment_1446236</link>
      <description><![CDATA[Согласен с Вами. На данный момент ссылки хранятся 30 дней, в течении 30 дней мы сделаем хранение файлов всегда, в отдельной вкладке под названием Архив покупок.]]></description>
      <pubDate>Thu, 12 Mar 2009 12:59:33 GMT</pubDate>
      <dc:creator><![CDATA[Tracks_Flow]]></dc:creator>
    </item>
  

      

      

    
  </channel>
</rss>
