<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8421650938130481857</id><updated>2026-05-19T02:26:17.520-07:00</updated><category term="программирование"/><category term="javascript"/><category term="юмор"/><category term="jQuery"/><category term="php"/><category term="я"/><category term="Instant Evil (IE)"/><category term="C#"/><category term="Партнерки"/><category term="seo"/><category term="symfony"/><category term="tools"/><category term="virus"/><category term="базы данных"/><category term="мысли"/><category term="не webdev"/><category term="проекты"/><title type='text'>Snowcore&#39;s блог</title><subtitle type='html'>Magento development</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default?start-index=26&amp;max-results=25'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-1913033388248304818</id><published>2009-01-30T05:40:00.000-08:00</published><updated>2009-01-30T05:42:29.346-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="не webdev"/><category scheme="http://www.blogger.com/atom/ns#" term="я"/><title type='text'>Never Ending Edge</title><content type='html'>Вот писал я все время только о веб программировании... Но я много чего понял и появился у меня еще один блог - &lt;a href=&quot;http://needge.net&quot;&gt;needge&lt;/a&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/1913033388248304818/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/1913033388248304818' title='Комментарии: 3'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1913033388248304818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1913033388248304818'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2009/01/never-ending-edge.html' title='Never Ending Edge'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-1983282723610153219</id><published>2008-11-25T05:00:00.000-08:00</published><updated>2008-11-25T05:08:09.278-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><category scheme="http://www.blogger.com/atom/ns#" term="проекты"/><title type='text'>vteatre.com - мой новый небольшой проект</title><content type='html'>Идея создания данного ресурса появилась у меня давно. Захотелось реализовать на symfony 1.1&lt;br /&gt;Проект находится на стадии разработки.&lt;br /&gt;Пока доступна стартовая страница - всем добро пожаловать на &lt;a href=&quot;http://vteatre.com&quot;&gt;http://vteatre.com&lt;/a&gt; !&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/1983282723610153219/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/1983282723610153219' title='Комментарии: 9'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1983282723610153219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1983282723610153219'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/11/vteatrecom.html' title='vteatre.com - мой новый небольшой проект'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-6608562539146951124</id><published>2008-06-20T07:12:00.000-07:00</published><updated>2008-06-20T07:17:36.879-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><category scheme="http://www.blogger.com/atom/ns#" term="virus"/><title type='text'>ICQ 12111 System</title><content type='html'>Весь мир вздрогнул!&lt;br /&gt;20.06.2008 у всех абонентов ICQ появился номер 12111 в группе General. Это троян - удаляйте его и меняйте пароль. Ходят слухи, что AOL number 12111 - это все проделки AOL, но это все-таки вирус! Так что остерегайтесь номера аськи 12111 - если вам не удается его удалить, перезапустите аську и снова попробуйте. Иначе - воспользуйтесь менеджером контактов (можна найти на сайте qip.ru).&lt;br /&gt;&lt;br /&gt; Мочите 12111 в своем QIP !!!&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/6608562539146951124/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/6608562539146951124' title='Комментарии: 9'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/6608562539146951124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/6608562539146951124'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/06/icq-12111-system.html' title='ICQ 12111 System'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-308364297175845601</id><published>2008-05-08T04:40:00.000-07:00</published><updated>2008-05-08T04:42:08.013-07:00</updated><title type='text'>Уррррряяяяяя!!!</title><content type='html'>Наконец-то я сделал это!&lt;br /&gt;&lt;br /&gt;Буду собирать вещи и перебираться потихоньку на &lt;a href=&quot;http://snowcore.net&quot;&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;snowcore.net&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/308364297175845601/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/308364297175845601' title='Комментарии: 2'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/308364297175845601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/308364297175845601'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/05/blog-post.html' title='Уррррряяяяяя!!!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-8614553222820755280</id><published>2008-04-10T07:30:00.000-07:00</published><updated>2008-04-10T07:33:45.271-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Instant Evil (IE)"/><title type='text'>Quirks Mode ... IE</title><content type='html'>Все... моему терпению уже нет конца... В связи с этим на моем блоге поселяется новая картинка НАВСЕГДА (смотрите правый верхний угол).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/8614553222820755280/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/8614553222820755280' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8614553222820755280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8614553222820755280'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/04/quirks-mode-ie.html' title='Quirks Mode ... IE'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-2299399755498853185</id><published>2008-04-04T07:15:00.000-07:00</published><updated>2008-04-04T07:40:02.865-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>Prevent text selection или отмена выделения текста</title><content type='html'>При разработке клиентской части приложения иногда нужно отменить выделение текста, которое делает браузер при двойном клике на элементе или при drag&#39;n&#39;drop.&lt;br /&gt;Этого можно избежать, используя объект &lt;span style=&quot;font-weight: bold;&quot;&gt;document.selection&lt;/span&gt;.&lt;br /&gt;Пишем простую функцию, которая отменяет выделение текста и задаем ее на соответствующее событие:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot;  style=&quot;color: rgb(0, 0, 0);font-family:monospace;&quot;&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;function&lt;/span&gt; clearSelection&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; sel;&lt;br /&gt;       &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;selection&lt;/span&gt; &amp;amp;&amp;amp; document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;selection&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;empty&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;selection&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;empty&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;       &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;window.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getSelection&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           sel = window.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getSelection&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;sel &amp;amp;&amp;amp; sel.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;removeAllRanges&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;               sel.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;removeAllRanges&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;       &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;a href=&quot;http://syhi.stworks.ru/&quot; style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;А еще проще (и лучше ;-) - используем jQuery плагин &lt;span style=&quot;font-weight: bold; color: rgb(0, 153, 0);&quot;&gt;jQuery Disable Text Select Plugin&lt;/span&gt; &lt;a href=&quot;http://www.jdempster.com/2007/07/14/jquery-disable-text-select/&quot;&gt;http://www.jdempster.com/2007/07/14/jquery-disable-text-select/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Подключаем единственный файл jquery.disable.text.select.js и задаем отмену выделения текста для нужных элементов:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot; style=&quot;font-family: monospace; color: #000000;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;#wrapper&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;disableTextSelect&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;a href=&quot;http://syhi.stworks.ru/&quot;  style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/2299399755498853185/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/2299399755498853185' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/2299399755498853185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/2299399755498853185'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/04/prevent-text-selection.html' title='Prevent text selection или отмена выделения текста'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-3832396920673651070</id><published>2008-04-02T06:47:00.000-07:00</published><updated>2008-04-02T07:05:21.255-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>jQuery Обработка щелчка правой кнопки мыши</title><content type='html'>Долго возился, никак не мог найти как задать этот обработчик. Я использую livequery plugin.&lt;br /&gt; Задать обработку можно так:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot; style=&quot;font-family: monospace; color: #000000;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;.pixel&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;livequery&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&#39;contextmenu&#39;&lt;/span&gt;, &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// do something ...&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;a href=&quot;http://syhi.stworks.ru/&quot;  style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/3832396920673651070/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/3832396920673651070' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/3832396920673651070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/3832396920673651070'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/04/jquery.html' title='jQuery Обработка щелчка правой кнопки мыши'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-3079092423923698586</id><published>2008-03-26T00:52:00.000-07:00</published><updated>2008-11-13T15:07:30.508-08:00</updated><title type='text'>Учимся достигать целей</title><content type='html'>Наконец-то ты начинаю побеждать себя, практически, во всем. Больше никакой лени и безответственности! Как приятно это ощущать!&lt;br /&gt;Ну что ж, теперь могу достигать большего...&lt;br /&gt;Первая цель - Atom MX 2.0&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg26IzxYIALMEQIara48mOP25mv5YZ1LmCrWO0Jca9UKRj7GrSZeFlEt_-UxVzpBFpLn8FJRFcbBVCd9vb-ekWDxFUZs8LGQ0ANAuSdh7XzPpTTOscu_cljb0EnRIOgpfhA8wt2Jl7DDjY/s1600-h/atom_mx_black.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg26IzxYIALMEQIara48mOP25mv5YZ1LmCrWO0Jca9UKRj7GrSZeFlEt_-UxVzpBFpLn8FJRFcbBVCd9vb-ekWDxFUZs8LGQ0ANAuSdh7XzPpTTOscu_cljb0EnRIOgpfhA8wt2Jl7DDjY/s320/atom_mx_black.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5181956817895717170&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;  Я люблю экстрим, давно себе хотел нормальный велик. Мне очень понравился этот экстремальный хардтейл с оборудованием любительского класса SRAM 3.0, 21 скорость. Алюминиевая рама Oversize-reinforced 7005. Передний амортизатор Suntour XCR, 120mm, регулируемый. Двойные обода Weinman ZAC2000DW. Тормоза дисковый механический Tectro IO/Promax V.Подходит для активной езды по различным дорогам и пересеченной местности.&lt;br /&gt;И цена за этого красавчика просто смешная - чуть больше $300&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/3079092423923698586/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/3079092423923698586' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/3079092423923698586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/3079092423923698586'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/03/blog-post_26.html' title='Учимся достигать целей'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg26IzxYIALMEQIara48mOP25mv5YZ1LmCrWO0Jca9UKRj7GrSZeFlEt_-UxVzpBFpLn8FJRFcbBVCd9vb-ekWDxFUZs8LGQ0ANAuSdh7XzPpTTOscu_cljb0EnRIOgpfhA8wt2Jl7DDjY/s72-c/atom_mx_black.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-5840260108748715383</id><published>2008-03-21T00:43:00.000-07:00</published><updated>2008-11-13T15:07:30.586-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="юмор"/><category scheme="http://www.blogger.com/atom/ns#" term="я"/><title type='text'>Новый проект :-)</title><content type='html'>С сегодняшнего утра объявил себе войну по поводу утренней зарядки. Все никак не мог начать ее делать постоянно. Поэтому прицепил на дверь напоминание:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhym0og1qCNcy-33dlIcseELJxo8cat6_plX6PY0X8DV1AxRZdAIRlw5cJgXipRS-O2hrBKg0F8aJb3gjH0UPZK83Tr-limb-WEZIjR25_ZdN1_MdLoePrbCApTKHOuBUPDQpwUaIeGTQE/s1600-h/(reflect)%D0%97%D0%B0%D1%80%D1%8F%D0%B4%D0%BA%D0%BEBETA.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhym0og1qCNcy-33dlIcseELJxo8cat6_plX6PY0X8DV1AxRZdAIRlw5cJgXipRS-O2hrBKg0F8aJb3gjH0UPZK83Tr-limb-WEZIjR25_ZdN1_MdLoePrbCApTKHOuBUPDQpwUaIeGTQE/s320/(reflect)%D0%97%D0%B0%D1%80%D1%8F%D0%B4%D0%BA%D0%BEBETA.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5187884957184976546&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Пока это бета-версия... Но скоро будет stable release!&lt;br /&gt;Желаю всем находить силы для борьбы с самим собой это &lt;span style=&quot;font-weight: bold;&quot;&gt;ОЧЕНЬ ВАЖНО &lt;/span&gt;!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/5840260108748715383/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/5840260108748715383' title='Комментарии: 2'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/5840260108748715383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/5840260108748715383'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/03/blog-post.html' title='Новый проект :-)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhym0og1qCNcy-33dlIcseELJxo8cat6_plX6PY0X8DV1AxRZdAIRlw5cJgXipRS-O2hrBKg0F8aJb3gjH0UPZK83Tr-limb-WEZIjR25_ZdN1_MdLoePrbCApTKHOuBUPDQpwUaIeGTQE/s72-c/(reflect)%D0%97%D0%B0%D1%80%D1%8F%D0%B4%D0%BA%D0%BEBETA.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-1320218081241426542</id><published>2008-03-05T02:58:00.000-08:00</published><updated>2008-03-05T04:05:07.017-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>jQuery binding events problem</title><content type='html'>При использовании ajax запросов и изменении DOM дерева налету не всегда срабатывают функции-обработчики событий для добавленных элементов в документе. Пример:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot;  style=&quot;color: rgb(0, 0, 0);font-family:monospace;&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// Получаем html код и вставляем его в div&lt;/span&gt;&lt;br /&gt;$&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;#grid_toolbar&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;load&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;./ajax/toolbar_menu/users.inc&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// Задаем обработчик для нового элемента&lt;/span&gt;&lt;br /&gt;$&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;#delete&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;click&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    $&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;#grid&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;empty&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;a href=&quot;http://syhi.stworks.ru/&quot; style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Такой способ, к сожалению, не будет работать.&lt;br /&gt;В этой ситуации поможет специальный плагин &lt;span style=&quot;font-weight: bold;&quot;&gt;livequery&lt;/span&gt;: &lt;a href=&quot;http://docs.jquery.com/Plugins/livequery&quot;&gt;http://docs.jquery.com/Plugins/livequery&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Подключаем единственный файл &lt;span style=&quot;font-weight: bold;&quot;&gt;jquery.livequery.js &lt;/span&gt;и переписываем код:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot; style=&quot;font-family: monospace; color: #000000;&quot;&gt;&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// Загружаем также ;-)&lt;/span&gt;&lt;br /&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;#grid_toolbar&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;load&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;./ajax/toolbar_menu/users.inc&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// А здесь уже задаем обработчики при помощи livequery&lt;/span&gt;&lt;br /&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;#delete&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;livequery&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&#39;click&#39;&lt;/span&gt;, &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;event&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;#grid&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;empty&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;a href=&quot;http://syhi.stworks.ru/&quot;  style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/1320218081241426542/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/1320218081241426542' title='Комментарии: 3'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1320218081241426542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1320218081241426542'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/03/jquery-bind-events.html' title='jQuery binding events problem'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-4823980104316761107</id><published>2008-03-04T04:52:00.000-08:00</published><updated>2008-03-05T03:10:08.129-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="программирование"/><title type='text'>Javascript ошибки</title><content type='html'>Сейчас разруливаю jQuery framework - отличная разработка! Много готовых и расширяемых инструментов. Не мог разобраться с одной ошибкой около часа. В итоге понял, в чем дело... поэтому пишу заметку в блог: если ищешь javascript ошибку больше, чем полчаса - посмотри в &lt;span style=&quot;font-weight: bold;&quot;&gt;правильном ли порядке ты подключаешь скрипты&lt;/span&gt; !!!&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/4823980104316761107/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/4823980104316761107' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/4823980104316761107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/4823980104316761107'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/03/javascript.html' title='Javascript ошибки'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-5847225334624101250</id><published>2008-02-29T05:11:00.000-08:00</published><updated>2008-11-13T15:07:30.731-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="я"/><title type='text'>Тонкая Красная Нить</title><content type='html'>Обалдеть! Чисто случайно наткнулся на альбом этих Харьковских ребят. Теперь уже целую неделю в плейлисте - только они. &lt;span style=&quot;font-weight: bold;font-size:24;&quot; &gt;СУПЕР!!!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUBhkDZesqncfuRgWzr2Wq279cjmJryqZH_qohusDsRw4BnMGgfLaS8BJRoW1QE66v3q8iQ_GtxbsNvyqRuS2uEEVQuDSSslKCotgUsKEK2YpPdVNU5laHGDMObh4WQc23HRhEH_roZzo/s1600-h/tkn.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUBhkDZesqncfuRgWzr2Wq279cjmJryqZH_qohusDsRw4BnMGgfLaS8BJRoW1QE66v3q8iQ_GtxbsNvyqRuS2uEEVQuDSSslKCotgUsKEK2YpPdVNU5laHGDMObh4WQc23HRhEH_roZzo/s320/tkn.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5172390140852989026&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Всем советую!!!&lt;br /&gt;Страница вконтакте - &lt;a href=&quot;http://vkontakte.ru/club447030&quot;&gt;http://vkontakte.ru/club447030&lt;/a&gt;&lt;br /&gt;Сайт группы - &lt;a href=&quot;http://www.tkn.com.ua/&quot;&gt;www.tkn.com.ua&lt;/a&gt;&lt;br /&gt;И, собственно говоря, альбомчик - &lt;a href=&quot;http://www.tkn.com.ua/mp3/tkn-106%28ep%29%282008%29.rar&quot;&gt;www.tkn.com.ua/mp3/tkn-106(ep)(2008).rar&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:24;&quot; &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;script style=&quot;font-size: 24px;&quot; src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/5847225334624101250/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/5847225334624101250' title='Комментарии: 2'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/5847225334624101250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/5847225334624101250'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/02/blog-post.html' title='Тонкая Красная Нить'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUBhkDZesqncfuRgWzr2Wq279cjmJryqZH_qohusDsRw4BnMGgfLaS8BJRoW1QE66v3q8iQ_GtxbsNvyqRuS2uEEVQuDSSslKCotgUsKEK2YpPdVNU5laHGDMObh4WQc23HRhEH_roZzo/s72-c/tkn.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-8383983433016444115</id><published>2008-02-05T01:03:00.000-08:00</published><updated>2008-02-05T01:09:45.311-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="базы данных"/><title type='text'>MySQL и кодировки</title><content type='html'>Иногда при работе с MySQL возникают ошибки, связанные с кодировкой (например, вместо русских символов - знаки вопроса).&lt;br /&gt; Эта проблема решается легко при помощи одного из следующих запросов:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;mysql&quot; style=&quot;font-family: monospace; color: #000000;&quot;&gt;mysql_query&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;SET NAMES &amp;quot;cp1251&amp;quot;&#39;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;mysql_query&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;SET collation_connection = &#39;cp1251_general_ci&#39;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;mysql_query&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;SET collation_server = &#39;cp1251_general_ci&#39;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;mysql_query&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;SET character_set_client=&#39;cp1251&#39;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;mysql_query&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;SET character_set_connection=&#39;cp1251&#39;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;mysql_query&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;SET character_set_results=&#39;cp1251&#39;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;mysql_query&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;SET character_set_server=&#39;cp1251&#39;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;a href=&quot;http://syhi.stworks.ru/&quot;  style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/8383983433016444115/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/8383983433016444115' title='Комментарии: 3'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8383983433016444115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8383983433016444115'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/02/mysql.html' title='MySQL и кодировки'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-2203473671804472156</id><published>2008-01-10T08:06:00.000-08:00</published><updated>2008-11-13T15:07:31.279-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Instant Evil (IE)"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="программирование"/><title type='text'>Перехват нажатия Enter в IE</title><content type='html'>Вот так уж повелось, что IE не дает спокойно жить всем web-developerам. И меня он не устает удивлять.&lt;br /&gt;&lt;br /&gt;Ситуация следующая: в текстовое поле вводится числовое значение, по нажатию Enter это значение передается на сервер (при помощи AJAX). Что может быть проще? Я привязал функцию обновления на событие &lt;span style=&quot;font-weight: bold;&quot;&gt;onchange&lt;/span&gt; элемента input (текст). Как обычно, все идеально сработало в FireFox и Safari. А этот IE... При нажатии Enter - вообще ничего не происходило.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Объясняю:&lt;/span&gt; в IE Enter вызывает событие &quot;onsubmit&quot; формы.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Решение: &lt;/span&gt;input должен находиться в форме. На событие onsubmit ставим return false;&lt;br /&gt;И добавляем следующий код:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot;  style=&quot;color: rgb(0, 0, 0);font-family:monospace;&quot;&gt;processKeyEvent = &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;eventType, event&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;                                             &lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;window.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;          event = window.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;event&lt;/span&gt;;&lt;br /&gt;      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; caller_;&lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;event.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;target&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;          caller_ = event.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;target&lt;/span&gt;;&lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;event.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;srcElement&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;          caller_ = event.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;srcElement&lt;/span&gt;;&lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; code;&lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;event.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;keyCode&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; code = event.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;keyCode&lt;/span&gt;;&lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;event.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;which&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; code = event.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;which&lt;/span&gt;;&lt;br /&gt;   &lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;switch&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;code&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;          &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;13&lt;/span&gt;:&lt;br /&gt;              checkEnteredOrder&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;caller_&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;; &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// наша функция для обновления&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;break&lt;/span&gt;;       &lt;br /&gt;      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;     &lt;br /&gt;  &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;processKeyPress = &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;event&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;      processKeyEvent&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;onkeypress&quot;&lt;/span&gt;, event&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;  &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;;&lt;a href=&quot;http://syhi.stworks.ru/&quot; style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Затем меняем событие onchange на &lt;span style=&quot;font-weight: bold;&quot;&gt;keypress:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot;  style=&quot;color: rgb(0, 0, 0);font-family:monospace;&quot;&gt;input.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;onkeypress&lt;/span&gt; = processKeyPress;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Теперь все проходит через &lt;span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;processKeyPress &lt;/span&gt;&lt;span&gt;хэндлер, а в нем мы отлавливаем нажатую клавишу по &lt;span style=&quot;font-weight: bold;&quot;&gt;keycode&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;P.S.: Чувствую, скоро нужно будет создать отдельную категорию на блоге типа &quot;Умри, IE поганый&quot; или &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;I&lt;/span&gt;nstant &lt;span style=&quot;font-weight: bold;&quot;&gt;E&lt;/span&gt;vil&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcfrMckIf4G4VrRfzU6FrjcNDEO_Wr0NfBHoSu6e4SuAbdpvp3pQV-DURgeRSqg1cy1izO3XPLn6E4VN8pBUpeGJRxDzbCb7v68zOZbDgiQ_52wm-zv72FxeOD9bLgsxkeVGnS27VPmd0/s1600-h/page23_19.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcfrMckIf4G4VrRfzU6FrjcNDEO_Wr0NfBHoSu6e4SuAbdpvp3pQV-DURgeRSqg1cy1izO3XPLn6E4VN8pBUpeGJRxDzbCb7v68zOZbDgiQ_52wm-zv72FxeOD9bLgsxkeVGnS27VPmd0/s320/page23_19.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5153885254205944290&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/2203473671804472156/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/2203473671804472156' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/2203473671804472156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/2203473671804472156'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/01/enter-ie.html' title='Перехват нажатия Enter в IE'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcfrMckIf4G4VrRfzU6FrjcNDEO_Wr0NfBHoSu6e4SuAbdpvp3pQV-DURgeRSqg1cy1izO3XPLn6E4VN8pBUpeGJRxDzbCb7v68zOZbDgiQ_52wm-zv72FxeOD9bLgsxkeVGnS27VPmd0/s72-c/page23_19.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-8900459699860079019</id><published>2008-01-08T04:15:00.000-08:00</published><updated>2008-04-10T07:36:22.039-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Instant Evil (IE)"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="программирование"/><title type='text'>const + javascript in IE</title><content type='html'>Ну вот закончились праздники (ура!), и снова любимая работа...&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Первое удивление в новом году:&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Никогда не используйте ключевое слово &lt;span style=&quot;font-weight: bold;font-size:100%;&quot; &gt;const&lt;/span&gt; в javascript. Константы не поддерживаются в &lt;span style=&quot;font-weight: bold;&quot;&gt;IE&lt;/span&gt; (в этом только что убедился, посвятив отладке 2 часа).  Так что &lt;span style=&quot;font-weight: bold;&quot;&gt;var&lt;/span&gt; вам в помощь ;-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script style=&quot;font-size: 24px;&quot; src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/8900459699860079019/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/8900459699860079019' title='Комментарии: 3'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8900459699860079019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8900459699860079019'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2008/01/const-javascript.html' title='const + javascript in IE'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-8808150810900721590</id><published>2007-12-28T23:51:00.000-08:00</published><updated>2008-11-13T15:07:31.811-08:00</updated><title type='text'>Всех с Новым 2008 Годом !!!</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;Удачи Вам, здоровья, всяческих благ и исполнения всех желаний!&lt;br /&gt;С Новым Годом !!!&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV4CyT8I816kDkxJol-yWrlVZ-HI9r2T-qYafLxFISpv8D57p03dCYYnz-S9AYsr7VA-7-u9kfoa8Bp2LmMn2vwU5yWjWP5UhPwxTRPTF6Sg1qMZlXhEgCy3tMMGo3FNOlQpyVYR1gmwQ/s1600-h/tree.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV4CyT8I816kDkxJol-yWrlVZ-HI9r2T-qYafLxFISpv8D57p03dCYYnz-S9AYsr7VA-7-u9kfoa8Bp2LmMn2vwU5yWjWP5UhPwxTRPTF6Sg1qMZlXhEgCy3tMMGo3FNOlQpyVYR1gmwQ/s320/tree.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5149307721011540434&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/8808150810900721590/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/8808150810900721590' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8808150810900721590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8808150810900721590'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/12/2008.html' title='Всех с Новым 2008 Годом !!!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV4CyT8I816kDkxJol-yWrlVZ-HI9r2T-qYafLxFISpv8D57p03dCYYnz-S9AYsr7VA-7-u9kfoa8Bp2LmMn2vwU5yWjWP5UhPwxTRPTF6Sg1qMZlXhEgCy3tMMGo3FNOlQpyVYR1gmwQ/s72-c/tree.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-5272550743112085905</id><published>2007-12-21T08:12:00.000-08:00</published><updated>2008-11-13T15:07:32.165-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="программирование"/><title type='text'>Javascript Treeview</title><content type='html'>В нашем &quot;вечном&quot; проекте появилась новая задача - реализовать иерархическую структуру категорий. Сделать это нужно было в таблице + реализовать следующие действия:&lt;ul&gt;&lt;li&gt;открытие/закрытие ветвей дерева&lt;/li&gt;&lt;li&gt;перемещение категории на уровень вверх/вниз&lt;/li&gt;&lt;li&gt;дублирование (как категории отдельно, так и целой ветки)&lt;/li&gt;&lt;li&gt;удаление элементов&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Немного поразмыслив я придумал такой подход:&lt;br /&gt;&lt;br /&gt;Каждой строке таблицы присваивается 2 параметра:&lt;br /&gt;level - уровень, на котором лежит узел (от 0 и выше)&lt;br /&gt;state - состояние узла (open - узел открыт, closed - закрыт, end - узел является конечным )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Смотрите скриншот таблицы:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7CtZt6YKpXyDF1WpMeAUY9plPmDRZxqhVGPaMjxOP68ju5hHruB-LB2SlQzVBNDCdtc8EX0hhFv2FyilohnjwFWXiuzNhg4pN7HfOxJMDsXaKQQ_Kzy5Lisa7N3mJIyp6HVHuloXhNms/s1600-h/tree.gif&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7CtZt6YKpXyDF1WpMeAUY9plPmDRZxqhVGPaMjxOP68ju5hHruB-LB2SlQzVBNDCdtc8EX0hhFv2FyilohnjwFWXiuzNhg4pN7HfOxJMDsXaKQQ_Kzy5Lisa7N3mJIyp6HVHuloXhNms/s320/tree.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5146462056069837202&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;И так, первая функция для открытия и закрытия узлов. Встречайте:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot;  style=&quot;color: rgb(0, 0, 0);font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;function&lt;/span&gt; changeRowState&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;box, RH_Panel&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    elem = box.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; current_level = elem.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; current_state = elem.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;state&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; current_table = &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;table_body&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;RH_Panel&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;        current_table = &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;RH_table_body&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;            &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; row_display = &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;none&quot;&lt;/span&gt;; &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// for style.display&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;current_state == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;closed&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// if item is closed, than show all children&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;        row_display = &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; tbody = document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getElementById&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;current_table&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; children = tbody.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;childNodes&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; after_current = &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;false&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; i=&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt;; i&amp;lt;children.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;length&lt;/span&gt;; i++&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;                &lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;        &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;tagName&lt;/span&gt; == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&#39;TR&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;        &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;            &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt; == elem&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;            &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                after_current = &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;true&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;            &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;            &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;after_current&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;            &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;   &lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt; != elem&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&#39;level&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; == current_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;current_state == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;open&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                        elem.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;setAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;state&quot;&lt;/span&gt;, &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;closed&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                        box.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;src&lt;/span&gt; = &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;images/branch_closed.gif&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                        elem.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;setAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;state&quot;&lt;/span&gt;, &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;open&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                        box.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;src&lt;/span&gt; = &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;images/branch_open.gif&quot;&lt;/span&gt;; &lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;return&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div  style=&quot;font-weight: normal;font-family:&#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;                &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&#39;level&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &amp;gt; current_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;                &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;                    children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;style&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;display&lt;/span&gt; = row_display;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;                &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;            &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;        &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;current_state == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;open&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-weight: normal; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;        elem.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;setAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;state&quot;&lt;/span&gt;, &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;closed&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;        box.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;src&lt;/span&gt; = &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;images/branch_closed.gif&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;    &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;        elem.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;setAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;state&quot;&lt;/span&gt;, &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;open&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;        box.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;src&lt;/span&gt; = &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;images/branch_open.gif&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;    &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px;&quot;&gt;&lt;div face=&quot;&#39;Courier New&#39;,Courier,monospace&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;a href=&quot;http://syhi.stworks.ru/&quot; style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;br /&gt;Эту функцию мы ставим на событие onclick для элемента &amp;lt;img&amp;gt; в строке таблицы:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;html4strict&quot;  style=&quot;color: rgb(0, 0, 0);font-family:monospace;&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/tr.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;tr&lt;/span&gt;&lt;/a&gt; level=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;0&quot;&lt;/span&gt; state=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;open&quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;style&lt;/span&gt;=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;background:#99ddaa;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/td.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/input.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;checkbox&quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;tree_items[]&quot;&lt;/span&gt; /&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/td.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/a.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;javascript:void(0)&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/img.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;img&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;images/branch_open.gif&quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;onclick&lt;/span&gt;=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;changeRowState(this);&quot;&lt;/span&gt; /&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/a.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;action.php&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(221, 187, 0);&quot;&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(221, 187, 0);&quot;&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/b.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;b&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;Web Channel (2)&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/b&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/td.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;56&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/td.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;2&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/td.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;3&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/td.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;10&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;a style=&quot;text-decoration: none;&quot; href=&quot;http://december.com/html/4/element/td.html&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;td&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;statusProduction&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Published&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://syhi.stworks.ru/&quot; style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Логика очень проста: при нажатии на иконку, функция проходит по всем строчкам таблицы и изменяет атрибут display (если уровень больше). При таком подходе, в принципе, уровень вложенности может быть большим. Но для нашего проекта я сделал ограничение до 10 уровней.&lt;br /&gt;&lt;br /&gt;Функция для изменения уровня узлов:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot;  style=&quot;color: rgb(0, 0, 0);font-family:monospace;&quot;&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;function&lt;/span&gt; changeLevel&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;direction&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; delta_level = &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;-1&lt;/span&gt;;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;direction == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;down&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;      delta_level = &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;1&lt;/span&gt;;&lt;br /&gt;   &lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; checkboxes = document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getElementsByName&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;tree_items[]&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; i=&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt;; i&amp;lt;checkboxes.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;length&lt;/span&gt;; i++&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;checkboxes&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;checked&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;          &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; row = checkboxes&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;;&lt;br /&gt;          &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; current_level = row.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;       &lt;br /&gt;          &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;current_level != &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt; || direction == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;down&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// dont move up row with level = 0&lt;/span&gt;&lt;br /&gt;          &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; td = checkboxes&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;nextSibling&lt;/span&gt;;&lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;nodeType&lt;/span&gt; == &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                  td = checkboxes&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;nextSibling&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;nextSibling&lt;/span&gt;;&lt;br /&gt;           &lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; prev_html = td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;innerHTML&lt;/span&gt;;&lt;br /&gt;              prev_html = prev_html.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;prev_html.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;&amp;lt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; new_level = parseInt&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;current_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; + parseInt&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;delta_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;              td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;innerHTML&lt;/span&gt; = getSpacesForLevel&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;new_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; + prev_html;&lt;br /&gt;              row.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;setAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;, new_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;              row.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;style&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;backgroundColor&lt;/span&gt; = arrColors&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;new_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;;&lt;br /&gt;           &lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; tbody = document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getElementById&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&#39;table_body&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; children = tbody.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;childNodes&lt;/span&gt;;&lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; row_index = getRowIndex&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;row&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;           &lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;direction == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;down&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                  row_index++;&lt;br /&gt;           &lt;br /&gt;              &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; j=row_index; j&amp;lt;children.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;length&lt;/span&gt;; j++&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;tagName&lt;/span&gt; == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&#39;TR&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;                      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; == current_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;                       &lt;br /&gt;                      &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &amp;gt; current_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;                           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; cur_level = children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; td = children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;childNodes&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;;&lt;br /&gt;                           &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;innerHTML&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;&amp;lt;img&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; == &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;-1&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// IE and Safari hack&lt;/span&gt;&lt;br /&gt;                              td = children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;childNodes&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;;&lt;br /&gt;                      &lt;br /&gt;                           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; prev_html = td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;innerHTML&lt;/span&gt;;&lt;br /&gt;                           prev_html = prev_html.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;prev_html.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;&amp;lt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;                           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; new_lev = parseInt&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;cur_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; + parseInt&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;delta_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;                           td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;innerHTML&lt;/span&gt; = getSpacesForLevel&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;new_lev&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; + prev_html;&lt;br /&gt;                           children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;setAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;, new_lev&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;                           children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;style&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;backgroundColor&lt;/span&gt; = arrColors&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;new_lev&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;;&lt;br /&gt;                      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// for&lt;/span&gt;&lt;br /&gt;              checkAll&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;    &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// uncheck all checkboxes&lt;/span&gt;&lt;br /&gt;          &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// if&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// if checked&lt;/span&gt;&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// AJAX request to set level&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;a href=&quot;http://syhi.stworks.ru/&quot; style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;А также функции дублирования:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;javascript&quot;  style=&quot;color: rgb(0, 0, 0);font-family:monospace;&quot;&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;function&lt;/span&gt; duplicateSingle&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; checkboxes = document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getElementsByName&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;tree_items[]&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; tbody = document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getElementById&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;table_body&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt; &lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; len = checkboxes.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;length&lt;/span&gt;;    &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// FireFox hack (against constant reference to collection of checkboxes)&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; i=&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt;; i&amp;lt;len; i++&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;checkboxes&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;checked&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; row = checkboxes&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; inserted_row = tbody.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;appendChild&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;row.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;cloneNode&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;         &lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; td = inserted_row.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;childNodes&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;innerHTML&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;&amp;lt;img&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; == &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;-1&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// IE and Safari hack&lt;/span&gt;&lt;br /&gt;              td = inserted_row.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;childNodes&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;;&lt;br /&gt;            &lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; cell_content = td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;innerHTML&lt;/span&gt;;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; ins_pos = cell_content.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;           td.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;innerHTML&lt;/span&gt; = cell_content.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt;, ins_pos&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; + &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot; Copy&quot;&lt;/span&gt; + cell_content.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;ins_pos&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;   checkAll&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;function&lt;/span&gt; duplicateBranch&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; checkboxes = document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getElementsByName&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;tree_items[]&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; tbody = document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getElementById&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;table_body&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt; &lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; len = checkboxes.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;length&lt;/span&gt;;    &lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;// FireFox hack (against constant reference to collection of checkboxes)&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; i=&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt;; i&amp;lt;len; i++&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;checkboxes&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;checked&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; row = checkboxes&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;parentNode&lt;/span&gt;;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; inserted_row = tbody.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;appendChild&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;row.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;cloneNode&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; current_level = inserted_row.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;         &lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; tbody = document.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getElementById&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&#39;table_body&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; children = tbody.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;childNodes&lt;/span&gt;;&lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; row_index = getRowIndex&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;row&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;           &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 51, 102); font-weight: bold;&quot;&gt;var&lt;/span&gt; j=&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;row_index&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;+1&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;; j&amp;lt;children.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;length&lt;/span&gt;; j++&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;tagName&lt;/span&gt; == &lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&#39;TR&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;                   &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; == current_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;                     &lt;br /&gt;                   &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 204);&quot;&gt;&quot;level&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt; &amp;gt; current_level&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                   &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;                       tbody.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;appendChild&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;children&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;cloneNode&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;; &lt;br /&gt;                   &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;   checkAll&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;a href=&quot;http://syhi.stworks.ru/&quot; style=&quot;display: block; text-align: right; font-size: 9px;&quot;&gt;Syhi-подсветка кода&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Кому нужны будут подробные объяснения, или кто сталкивался с подробной задачей - сообщите об этом в комментах.&lt;br /&gt;&lt;br /&gt;Удачи!&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/5272550743112085905/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/5272550743112085905' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/5272550743112085905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/5272550743112085905'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/12/javascript-treeview.html' title='Javascript Treeview'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7CtZt6YKpXyDF1WpMeAUY9plPmDRZxqhVGPaMjxOP68ju5hHruB-LB2SlQzVBNDCdtc8EX0hhFv2FyilohnjwFWXiuzNhg4pN7HfOxJMDsXaKQQ_Kzy5Lisa7N3mJIyp6HVHuloXhNms/s72-c/tree.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-7049146390611982324</id><published>2007-12-18T00:30:00.000-08:00</published><updated>2008-11-13T15:07:32.839-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="юмор"/><title type='text'>Процесс разработки</title><content type='html'>Как же правдиво все выглядит.&lt;br /&gt;Посмотрите на типичний процесс разработки проектов:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI1Tq0SdhB4S4D-438iZ3zwLHGpqekt-wJF1P8rLpFIiUOGN8RnrBK8i7AF7xNmBt94W7H-xWFJUpwIwsntBCb-KkNLXsj5cwlQOom19hSGbIRNkr0gOVyxTr-ov9ixDzIf90cPFyCrxM/s1600-h/process.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI1Tq0SdhB4S4D-438iZ3zwLHGpqekt-wJF1P8rLpFIiUOGN8RnrBK8i7AF7xNmBt94W7H-xWFJUpwIwsntBCb-KkNLXsj5cwlQOom19hSGbIRNkr0gOVyxTr-ov9ixDzIf90cPFyCrxM/s320/process.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5145228116260663682&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/7049146390611982324/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/7049146390611982324' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/7049146390611982324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/7049146390611982324'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/12/blog-post_18.html' title='Процесс разработки'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI1Tq0SdhB4S4D-438iZ3zwLHGpqekt-wJF1P8rLpFIiUOGN8RnrBK8i7AF7xNmBt94W7H-xWFJUpwIwsntBCb-KkNLXsj5cwlQOom19hSGbIRNkr0gOVyxTr-ov9ixDzIf90cPFyCrxM/s72-c/process.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-4539131284075712408</id><published>2007-12-14T06:51:00.000-08:00</published><updated>2007-12-14T06:53:37.761-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="юмор"/><title type='text'>Вот это так письмо!</title><content type='html'>Прислал недавно знакомый, я ржал долго:&lt;br /&gt;&lt;br /&gt;&quot;Здравствуй, дорогая доченька! Если ты получишь это письмо, значит, оно до тебя дошло. Если же нет, то дай мне знать, и я напишу тебе ещe раз. Я пишу медленно, потому что я знаю, что ты не очень быстро читаешь. Погода у нас хорошая. На прошлой неделе дождь шел всего два раза: в начале недели, 3 дня, и ближе к концу, в течение 4 дней. Кстати, насчет пальтишка, которое ты хотела, дядя Вася сказал, что если пересылать его с этими литыми пуговицами, то это выйдет слишком дорого по весу, поэтому я их отрезала. Пришей их обратно, я положила их в правый кармашек. Твой папа нашeл новую работу. Под ним 500 человек! Он косит траву на кладбище. Твоя сестра Настя недавно вышла замуж, и ждет малыша Мы не знаем, какого он пола, поэтому пока что не могу тебе сказать, будешь ли ты дядей или тeтей. Если это девочка, то она хочет еe назвать, как меня. Немного странное решение, назвать свою дочку Мама. С твоим братом Толей недавно случился казус: он закрыл свою машину, а ключи оставил внутри. Ему пришлось вернуться домой пешком&lt;br /&gt;( 10 километров!), чтобы взять второй комплект ключей, и выпустить нас из машины. Если ты вдруг встретишь свою кузину Лилю, то передай ей от меня привет. Eсли ты еe не встретишь, то ничего ей не говори. Твоя мама. P.S.: Я хотела отослать тебе немного денег, но уже заклеила конверт&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/4539131284075712408/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/4539131284075712408' title='Комментарии: 2'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/4539131284075712408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/4539131284075712408'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/12/blog-post_14.html' title='Вот это так письмо!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-86867939280013118</id><published>2007-12-11T01:53:00.000-08:00</published><updated>2007-12-11T02:06:02.371-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>Сервис подсветки кода</title><content type='html'>Очень часто в постах приходится писать участки кода.&lt;br /&gt;Раньше это было полное извращение - менял HTML, сам создавал стили... Недавно узнал об очень удобном сервисе - &lt;b&gt;SyHi&lt;/b&gt;(&lt;b&gt;Sy&lt;/b&gt;ntax &lt;b&gt;Hi&lt;/b&gt;ghlighter for blogs) система подсветки кода для блогов. Такая классная штука!&lt;br /&gt;&lt;br /&gt;Вот ряд ее достоинств:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;28 языков для подсветки (PHP, C++, C#, XML и другие)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;нумерация строк&lt;/li&gt;&lt;li&gt;возможность разрешать/запрещать переносы строк&lt;/li&gt;&lt;/ul&gt;Всем кодерам советую! Адрес: &lt;a href=&quot;http://syhi.stworks.ru/&quot;&gt;&lt;b&gt;SyHi&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;А какими сервисами пользуетесь Вы?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/86867939280013118/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/86867939280013118' title='Комментарии: 4'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/86867939280013118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/86867939280013118'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/12/blog-post_11.html' title='Сервис подсветки кода'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-1340732995492528463</id><published>2007-12-06T01:23:00.000-08:00</published><updated>2008-11-13T15:07:33.937-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="я"/><title type='text'>Удачное продвижение</title><content type='html'>Ура! Проект, который делаю на работе уже начинает внедряться!!! Как же приятно это слышать, а тем более видеть вот такие фотографии (эти ценники создаются при помощи нашего проекта):&lt;br /&gt;&lt;br /&gt;Великобритания:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWAna4TKgWG4qhus6-yM_uEHdAmJ6ocYfkwhyo1QvesgXoBK-KJ6NMh9wjKiNXOyK4kOEcxljcjUmxMsCRI2b0v0ywpJO72MnZr6FXUGg6-EIHwsYOcNjbYmNRCF1bmYPQjZY5BEnh-Nk/s1600-h/UK.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWAna4TKgWG4qhus6-yM_uEHdAmJ6ocYfkwhyo1QvesgXoBK-KJ6NMh9wjKiNXOyK4kOEcxljcjUmxMsCRI2b0v0ywpJO72MnZr6FXUGg6-EIHwsYOcNjbYmNRCF1bmYPQjZY5BEnh-Nk/s320/UK.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5140796322916040322&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Китай:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj614lE1LQgFGK_hYEa7X1QU7B2rfTYJFCuB0eI8kCjz4H0tVhQRKBqEKvth9EmF1FnJgi5aNALO-8AUpjqI4ee9bUIaN8NxDDLEJaHIvPYOPwWAnMQEjpe8LAlGHFtnrzEnXUDG14Veqg/s1600-h/China.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj614lE1LQgFGK_hYEa7X1QU7B2rfTYJFCuB0eI8kCjz4H0tVhQRKBqEKvth9EmF1FnJgi5aNALO-8AUpjqI4ee9bUIaN8NxDDLEJaHIvPYOPwWAnMQEjpe8LAlGHFtnrzEnXUDG14Veqg/s320/China.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5140796919916494482&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/1340732995492528463/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/1340732995492528463' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1340732995492528463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1340732995492528463'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/12/blog-post.html' title='Удачное продвижение'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWAna4TKgWG4qhus6-yM_uEHdAmJ6ocYfkwhyo1QvesgXoBK-KJ6NMh9wjKiNXOyK4kOEcxljcjUmxMsCRI2b0v0ywpJO72MnZr6FXUGg6-EIHwsYOcNjbYmNRCF1bmYPQjZY5BEnh-Nk/s72-c/UK.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-1989084019092389693</id><published>2007-12-05T07:16:00.000-08:00</published><updated>2007-12-21T06:07:39.588-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="программирование"/><title type='text'>Какая же ты прелесть ... C# !</title><content type='html'>С прошлой недели потихоньку начинаю переходить на C# - очень классная язык!  Я просто балдею от него!&lt;br /&gt;&lt;br /&gt;Параллельно с изучением в ШАГе решил написать свой проект для раскрутки сайтов.&lt;br /&gt;Идея давно всем известна и проста - полуавтоматическая регистрация в поисковиках, каталогах и т.д.&lt;br /&gt;&lt;br /&gt;Пока делаю основную часть программы. В будущем планирую добавить инструменты для упрощения работы с рекламными программами а также часть инструментов для блоггеров.&lt;br /&gt;&lt;br /&gt;Все свои результаты выложу здесь, так что следите :-)&lt;br /&gt;&lt;br /&gt;P.s.: использую Framework 2, у кого нету - можете скачать &lt;a href=&quot;http://depositfiles.com/files/2603257&quot;&gt;ТУТ&lt;/a&gt; (23,5 Мб)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/1989084019092389693/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/1989084019092389693' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1989084019092389693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/1989084019092389693'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/12/c.html' title='Какая же ты прелесть ... C# !'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-769229092769605535</id><published>2007-11-30T07:13:00.000-08:00</published><updated>2008-11-13T15:07:34.324-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="юмор"/><title type='text'>Горькая правда</title><content type='html'>Иногда смотришь на вот такое, и становится немного грустно:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvp1BfK40pxPn8U2Wy-HtX2RmfbVTNwQvH1xHvyEeTJJsZBCxZY350dUHex7UFyC7JvgQ32vI1Nli49dy0aap13cFmJl9CFMntDI8GJ-uZoYZRU4Gvjj855KBTixDk_W6ueCen5SDJ0Hc/s1600-r/teapot.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1I7QGRHncyDjDGxZgRdt3upKpQR3_foeYF_zag-r40JFf0MHfxx5465bnVSkX3G27fh1KXMici58_48s-p72eCBDpjPtAMMMB91DTDHiThGuRVk-nGYizfSDRK43WcSstiPSrOKRI7pc/s320/teapot.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5138652289716652242&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/769229092769605535/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/769229092769605535' title='Комментарии: 2'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/769229092769605535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/769229092769605535'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/11/blog-post_2396.html' title='Горькая правда'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1I7QGRHncyDjDGxZgRdt3upKpQR3_foeYF_zag-r40JFf0MHfxx5465bnVSkX3G27fh1KXMici58_48s-p72eCBDpjPtAMMMB91DTDHiThGuRVk-nGYizfSDRK43WcSstiPSrOKRI7pc/s72-c/teapot.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-8850530152342193692</id><published>2007-11-30T04:56:00.000-08:00</published><updated>2008-01-18T00:40:05.179-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="программирование"/><title type='text'>GUID Generator</title><content type='html'>Вот на днях понадобилось генерировать GUID. GUID (Globally Unique Identifier) — представляет собой статистически уникальный 128-битный идентификатор. Его главная особенность — уникальность, которая позволяет создавать расширяемые сервисы и приложения без опасения получения конфликтов, вызванных совпадением идентификатора. Хотя уникальность каждого отдельного GUID и не гарантируется, общее количество уникальных ключей настолько велико, что вероятность того, что один и тот же ключ будет получен дважды, крайне мала.&lt;br /&gt;&lt;br /&gt;GUID — это частная реализация (фирмой Microsoft) стандарта, имеющего название Universally Unique Identifier (UUID).&lt;br /&gt;&lt;br /&gt;В тексте GUID записывается в виде строки из 16-ричных цифр, разбитых на группы дефисами и окружённой фигурными скобками:&lt;br /&gt;&lt;br /&gt;   {6F9619FF-8B86-D011-B42D-00CF4FC964FF}&lt;br /&gt;&lt;br /&gt;Есть куча online сервисов, которые позволяют это сделать, я же предлагаю скачать мой &lt;a href=&quot;http://roman-snitko.narod.ru/download/GUID_Generator.rar&quot; style=&quot;color: green; font-weight: bold;&quot;&gt;GUID Generator&lt;/a&gt; (написан на C# Framework v2.0 )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/8850530152342193692/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/8850530152342193692' title='Комментарии: 2'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8850530152342193692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/8850530152342193692'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/11/guid-generator.html' title='GUID Generator'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8421650938130481857.post-9035484615049549886</id><published>2007-11-29T05:18:00.000-08:00</published><updated>2007-11-30T02:35:33.642-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="юмор"/><title type='text'>А теперь немного о нас...</title><content type='html'>&lt;br&gt;&lt;br /&gt;Поехал программист на стрельбище. Три раза стрелял, а ему с огневого рубежа сообщают, что ни одного попадания не зафиксировано.&lt;br /&gt;Программист вставил палец в ствол, нажал на спусковой крючок. Палец, естественно, разлетелся в разные стороны.&lt;br /&gt;Программист орет на огневого рубеж: - У меня на выходе все нормально, у вас проблемы с приемом.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;Сидят два программиста в кафе. Мимо идет красивая девушка.&lt;br /&gt;- Классные у нее properties, - говорит один.&lt;br /&gt;- Вчера проверял... Все &lt;span style=&quot;font-weight:bold;&quot;&gt;read only&lt;/span&gt;, - с грустью отвечает другой...&lt;br /&gt;&lt;br&gt;&lt;br /&gt;Останавливает дорожная полиция машину, из машины вываливается сильно пьяный программист.&lt;br /&gt;Полицейский спрашивает:&lt;br /&gt;- Ваши права?&lt;br /&gt;Водитель отвечает (с трудом ворочая языком):&lt;br /&gt;- Root!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src=&quot;http://odnaknopka.ru/ok3.utf8.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://snowcore.blogspot.com/feeds/9035484615049549886/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8421650938130481857/9035484615049549886' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/9035484615049549886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8421650938130481857/posts/default/9035484615049549886'/><link rel='alternate' type='text/html' href='http://snowcore.blogspot.com/2007/11/blog-post_29.html' title='А теперь немного о нас...'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>