<?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_DHTML%2FMochkit%2FMouse</id>
		<title>JavaScript DHTML/Mochkit/Mouse - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_DHTML%2FMochkit%2FMouse"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_DHTML/Mochkit/Mouse&amp;action=history"/>
		<updated>2026-04-04T12:20:43Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_DHTML/Mochkit/Mouse&amp;diff=3204&amp;oldid=prev</id>
		<title> в 10:00, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_DHTML/Mochkit/Mouse&amp;diff=3204&amp;oldid=prev"/>
				<updated>2010-05-26T10:00:07Z</updated>
		
		<summary type="html">&lt;p&gt;&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;Версия 10:00, 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>
			</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_DHTML/Mochkit/Mouse&amp;diff=3205&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_DHTML/Mochkit/Mouse&amp;diff=3205&amp;oldid=prev"/>
				<updated>2010-05-26T07:25:20Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Mouse Events with MochiKit==&lt;br /&gt;
&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;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
MochiKit is dual-licensed software.  It is available under the terms of the&lt;br /&gt;
MIT License, or the Academic Free License version 2.1.  The full text of&lt;br /&gt;
each license is included below.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- Code revised from MochiKit demo code --&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.1//EN&amp;quot;&lt;br /&gt;
        &amp;quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Mouse Events with MochiKit&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
h1 {&lt;br /&gt;
    font-size: 2em;&lt;br /&gt;
    color: #4B4545;&lt;br /&gt;
    text-align: center;&lt;br /&gt;
}&lt;br /&gt;
div.scroll-box {&lt;br /&gt;
    border  : 2px solid blue;&lt;br /&gt;
    padding : 4ex 4em;&lt;br /&gt;
    margin  : 4ex 4em;&lt;br /&gt;
}&lt;br /&gt;
div.padding {&lt;br /&gt;
    padding : 4ex 4em;&lt;br /&gt;
    margin  : 4ex 4em;&lt;br /&gt;
    border  : 1px solid silver;&lt;br /&gt;
}&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;MochiKit-1.4.2//lib/MochiKit/MochiKit.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
    Mouse Events: Simple Mouse Scrolling Handlers&lt;br /&gt;
*/&lt;br /&gt;
function showMouseEvent(evt) {&lt;br /&gt;
    getElement(&amp;quot;show-mouse-event-repr&amp;quot;).innerHTML = repr(evt);&lt;br /&gt;
    evt.stop();&lt;br /&gt;
};&lt;br /&gt;
function stopPageFromScrolling( event ) {&lt;br /&gt;
  var src = event.src();&lt;br /&gt;
  var scrollTop = src.scrollTop;&lt;br /&gt;
  //  While trying to stop scrolling events for IE, found that it&lt;br /&gt;
  //  jumped around a bit.  The following fudgetFactor is NOT the way&lt;br /&gt;
  //  to handle this but was the best I could do with the limited time&lt;br /&gt;
  //  I had.&lt;br /&gt;
  var fudgeFactor = /MSIE/.test(navigator.userAgent) ? 25 : 0;&lt;br /&gt;
  // scrolling up&lt;br /&gt;
  if (event.mouse().wheel.y &amp;lt; 0) {&lt;br /&gt;
    // Following test should probably be &amp;quot;if (scrollTop == 0)&amp;quot; which&lt;br /&gt;
    // works in FF but not IE.&lt;br /&gt;
    if (scrollTop &amp;lt;= fudgeFactor) {&lt;br /&gt;
      event.stop();&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  //..scrolling down&lt;br /&gt;
  else {&lt;br /&gt;
    // Following test should be &amp;quot;if (scrollTop == src.scrollHeight - src.clientHeight)&amp;quot;,&lt;br /&gt;
    // see comment above.&lt;br /&gt;
    if (src.scrollHeight &amp;lt;= (scrollTop + src.clientHeight + fudgeFactor)) {&lt;br /&gt;
      event.stop();&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
};&lt;br /&gt;
function connectEvents(){&lt;br /&gt;
  connect(&amp;quot;show-mouse-event&amp;quot;, &amp;quot;onmousemove&amp;quot;, showMouseEvent);&lt;br /&gt;
  connect(&amp;quot;show-mouse-event&amp;quot;, &amp;quot;onmousedown&amp;quot;, showMouseEvent);&lt;br /&gt;
  connect(&amp;quot;show-mouse-event&amp;quot;, &amp;quot;onmouseup&amp;quot;, showMouseEvent);&lt;br /&gt;
  connect(&amp;quot;show-mouse-event&amp;quot;, &amp;quot;onmousewheel&amp;quot;, showMouseEvent);&lt;br /&gt;
  connect(&amp;quot;no-scroll-page&amp;quot;, &amp;quot;onmousewheel&amp;quot;, stopPageFromScrolling);&lt;br /&gt;
};&lt;br /&gt;
connect(window, &amp;quot;onload&amp;quot;,&lt;br /&gt;
    function() {&lt;br /&gt;
          connectEvents();&lt;br /&gt;
          var elems = getElementsByTagAndClassName(&amp;quot;A&amp;quot;, &amp;quot;view-source&amp;quot;);&lt;br /&gt;
          var page = &amp;quot;mouse_events/&amp;quot;;&lt;br /&gt;
          for (var i = 0; i &amp;lt; elems.length; i++) {&lt;br /&gt;
            var elem = elems[i];&lt;br /&gt;
            var href = elem.href.split(/\//).pop();&lt;br /&gt;
            elem.target = &amp;quot;_blank&amp;quot;;&lt;br /&gt;
            elem.href = &amp;quot;../view-source/view-source.html#&amp;quot; + page + href;&lt;br /&gt;
          }&lt;br /&gt;
    });&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;h1&amp;gt;&lt;br /&gt;
        Mouse Events with MochiKit&lt;br /&gt;
    &amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;&lt;br /&gt;
        For a detailed description of what happens under the hood, check out&lt;br /&gt;
        &amp;lt;a href=&amp;quot;mouse_events.js&amp;quot; class=&amp;quot;view-source&amp;quot;&amp;gt;mouse_events.js&amp;lt;/a&amp;gt;.&lt;br /&gt;
    &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;&lt;br /&gt;
        View Source: [&lt;br /&gt;
            &amp;lt;a href=&amp;quot;index.html&amp;quot; class=&amp;quot;view-source&amp;quot;&amp;gt;index.html&amp;lt;/a&amp;gt; |&lt;br /&gt;
            &amp;lt;a href=&amp;quot;mouse_events.js&amp;quot; class=&amp;quot;view-source&amp;quot;&amp;gt;mouse_events.js&amp;lt;/a&amp;gt; |&lt;br /&gt;
            &amp;lt;a href=&amp;quot;mouse_events.css&amp;quot; class=&amp;quot;view-source&amp;quot;&amp;gt;mouse_events.css&amp;lt;/a&amp;gt;&lt;br /&gt;
        ]&lt;br /&gt;
    &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;show-mouse-event&amp;quot; class=&amp;quot;scroll-box&amp;quot;&amp;gt;&lt;br /&gt;
      Hover, Click, or Scroll In Me:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
      &amp;lt;span id=&amp;quot;show-mouse-event-repr&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;scroll-page&amp;quot; class=&amp;quot;scroll-box&amp;quot; style=&amp;quot;height: 100px; overflow: scroll;&amp;quot;&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page scrolls! &amp;lt;br /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;no-scroll-page&amp;quot; class=&amp;quot;scroll-box&amp;quot; style=&amp;quot;height: 100px; overflow: scroll;&amp;quot;&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
      Scroll Me and then the page does not scroll! &amp;lt;br /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;padding&amp;quot;&amp;gt;Ignore me I just make the page big enough to require scrollbars.&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>