<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=455893</guid>
        <pubDate>Sat, 11 Sep 2004 21:16:23 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=455893</link>
        <description><![CDATA[Суть Зла: offtop: понял, понял, каюсь-каюсь... больше не буду.<br><br>PS: то-то я думал, где аттач??  :D]]></description>
        <author>Суть Зла</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=455874</guid>
        <pubDate>Sat, 11 Sep 2004 20:04:13 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=455874</link>
        <description><![CDATA[SergeS: <strong class='tag-b'>Суть_Зла</strong>, <br>
1. пользуй свой ник, который ты уже зарегил &#33;<br>
2. ето можно было и приатачить еслиб ты выполнил пункт 1.]]></description>
        <author>SergeS</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=455626</guid>
        <pubDate>Sat, 11 Sep 2004 10:41:19 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=455626</link>
        <description><![CDATA[Суть_Зла: Вот примерчиков парочка, написано за 15 минут, так что <br>
не пужайтесь сильно  ;) <br>
Читать с форума, наверное, невозможно, но если скопировать...<br>
Пара недостатков: жестко привязан к конструкции таблиц <br>
(для другой структуры будет необходимо немного переписать скрипты).<br>
А еще разобраться сложно  :D <br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;</div><div class="code_line">&#60;html&#62;</div><div class="code_line">&#60;head&#62;</div><div class="code_line">&#60;style type=&quot;text/css&quot;&#62;</div><div class="code_line">.ultd {</div><div class="code_line">&nbsp;&nbsp;border-bottom: 1px solid black;</div><div class="code_line">}</div><div class="code_line">.ultd {</div><div class="code_line">&nbsp;&nbsp;border-up: 1px solid black;</div><div class="code_line">}</div><div class="code_line">&#60;/style&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&#60;script language=&quot;JavaScript&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;function Toggle(node,tagDes) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;if (node.nextSibling.nextSibling.style.display == &#39;none&#39;) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (node.children.length &#62; 0) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (node.children.item(0).tagName == &quot;IMG&quot;) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;node.children.item(0).src = &quot;minus.gif&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;node.nextSibling.nextSibling.style.display = &#39;block&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoSize(document.all[&#39;upperTr&#39;],tagDes,1);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoSizeL(document.all[&#39;upperTr&#39;],tagDes,1);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;} else {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (node.children.length &#62; 0) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (node.children.item(0).tagName == &quot;IMG&quot;) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;node.children.item(0).src = &quot;plus.gif&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;node.nextSibling.nextSibling.style.display = &#39;none&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoSize(document.all[&#39;upperTr&#39;],tagDes,2);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoSizeL(document.all[&#39;upperTr&#39;],tagDes,2);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;function DoSizeL(node,tagDes,opcl) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;if (node.nextSibling) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (node.children.length&#62;0) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (i=0; i&#60;node.nextSibling.children.item(0).children.item(0).children.item(0).children.length; i++) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (node.nextSibling.children.item(0).children.item(0).children.item(0).children.item(i).className==&#39;i&#39;+tagDes+&#39;i&#39;) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (opcl==1) {node.nextSibling.children.item(0).children.item(0).children.item(0).children.item(i).style.display=&#39;block&#39;; }</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else { node.nextSibling.children.item(0).children.item(0).children.item(0).children.item(i).style.display=&#39;none&#39;; }</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoSizeL(node.nextSibling,tagDes,opcl);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;function DoSize(node,tagDes,opcl) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;if (node.nextSibling) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (node.nextSibling.className==&#39;i&#39;+tagDes+&#39;i&#39;) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (opcl==1) { node.nextSibling.style.display=&#39;block&#39;; }</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else { node.nextSibling.style.display=&#39;none&#39;; }</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoSize(node.nextSibling,tagDes,opcl);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&#60;/script&#62;</div><div class="code_line">&#60;/head&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&#60;body style=&quot;font-family: serif, Arial; font-size: 11;&quot;&#62;</div><div class="code_line">&#60;center&#62;</div><div class="code_line">&#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&#60;tr style=&quot;background: #AAAAAA; height: 35px; position: relative;&quot;&#62;&#60;td colspan=&quot;2&quot;&#62;&#60;img align=&quot;left&quot; style=&quot;position: relative; top: 7; left: -3;&quot; src=&quot;down2.gif&quot; border=&quot;0&quot;&#62;&#60;div style=&quot;position: relative; top: 11; left: -3; font-size: 13;&quot;&#62;Московская ж.д.&#60;/div&#62;&amp;nbsp&#60;div align=&quot;right&quot; style=&quot;position: absolute; top: 11; font-size: 13; right: 0;&quot;&#62;&#60;b&#62;ВНИИАС. Пример дерева.&amp;nbsp&amp;nbsp&amp;nbsp&#60;/b&#62;&#60;/div&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&#60;tr&#62;&#60;td style=&quot;width: 130px; border-left: 1px solid black;&quot;&#62;&#60;div style=&quot;position: relative; top: 0; left: 0; width: 100%; height: 100%;&quot;&#62;</div><div class="code_line">&#60;TABLE cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; BORDER=&quot;0&quot; style=&quot;border-bottom: 1px solid black; width: 100%;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;tr&#62;&#60;td style=&quot;width: 100%;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;a onClick=&quot;Toggle(this,&#39;1&#39;);&quot;&#62;&amp;nbsp&#60;IMG src=&quot;plus.gif&quot; style=&quot;cursor: hand;&quot; Click=&quot;alert(&#39;&#39;);&quot;&#62;&#60;/a&#62;&#60;font&#62; C:\&#60;/font&#62;&#60;DIV style=&quot;display: none; position: relative; left: 10;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;a onClick=&quot;Toggle(this,&#39;2&#39;);&quot;&#62;&amp;nbsp&#60;IMG src=&quot;plus.gif&quot; style=&quot;cursor: hand;&quot;&#62;&#60;/a&#62;&#60;font&#62; Program Files&#60;/font&#62;&#60;DIV style=&quot;display: none;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&#60;IMG src=&quot;dot.gif&quot;&#62; setup.exe&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&#60;IMG src=&quot;dot.gif&quot;&#62; MSoffice.exe&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&#60;IMG src=&quot;dot.gif&quot;&#62; conf.txt&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/DIV&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;a onClick=&quot;Toggle(this,&#39;3&#39;);&quot;&#62;&amp;nbsp&#60;IMG src=&quot;plus.gif&quot; style=&quot;cursor: hand;&quot;&#62;&#60;/a&#62;&#60;font&#62; Works&#60;/font&#62;&#60;DIV style=&quot;display: none;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&#60;IMG src=&quot;dot.gif&quot;&#62; java.java&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&#60;IMG src=&quot;dot.gif&quot;&#62; jsp.jsp&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/DIV&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;a onClick=&quot;Toggle(this,&#39;4&#39;);&quot;&#62;&amp;nbsp&#60;IMG src=&quot;plus.gif&quot; style=&quot;cursor: hand;&quot;&#62;&#60;/a&#62;&#60;font&#62; Windows&#60;/font&#62;&#60;DIV style=&quot;display: none;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&#60;IMG src=&quot;dot.gif&quot;&#62; win.exe&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/DIV&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/DIV&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;tr&#62;&#60;td style=&quot;width: 100%;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;a onClick=&quot;Toggle(this,&#39;5&#39;);&quot;&#62;&amp;nbsp&#60;IMG src=&quot;plus.gif&quot; style=&quot;cursor: hand;&quot; Click=&quot;alert(&#39;&#39;);&quot;&#62;&#60;/a&#62;&#60;font&#62; D:\&#60;/font&#62;&#60;DIV style=&quot;display: none; position: relative; left: 20;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;a onClick=&quot;Toggle(this,&#39;6&#39;);&quot;&#62;&amp;nbsp&#60;IMG src=&quot;plus.gif&quot; style=&quot;cursor: hand;&quot;&#62;&#60;/a&#62;&#60;font&#62; autorun&#60;/font&#62;&#60;DIV style=&quot;display: none;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;tr&#62;&#60;td&#62;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&#60;IMG src=&quot;dot.gif&quot;&#62; autorun.inf&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/DIV&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/DIV&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&#60;/TABLE&#62;&#60;/td&#62;&#60;td&#62;</div><div class="code_line">&#60;div style=&quot;position: relative; top: 0; left: 0; width: 500px;&quot;&#62;</div><div class="code_line">&#60;TABLE cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-right: 1px solid black; border-left: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;tr&#62;&#60;td width=&quot;700&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;tr name=&quot;upperTr&quot; id=&quot;upperTr&quot; width=&quot;700px&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;tr class=&quot;i1i&quot; style=&quot;display: none;&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr class=&quot;i2i&quot; style=&quot;display: none;&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;tr class=&quot;i1i&quot; name=&quot;aaa&quot; id=&quot;aaa&quot; style=&quot;display: none;&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr class=&quot;i3i&quot; style=&quot;display: none;&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;tr class=&quot;i1i&quot; name=&quot;aaa&quot; id=&quot;aaa&quot; style=&quot;display: none;&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr class=&quot;i4i&quot; style=&quot;display: none;&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;tr class=&quot;i5i&quot; name=&quot;aaa&quot; id=&quot;aaa&quot; style=&quot;display: none;&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr class=&quot;i6i&quot; style=&quot;display: none;&quot;&#62;&#60;td&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;tr&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;td width=&quot;100&quot;&#62;&#60;center&#62;-&#60;/center&#62;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/table&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/td&#62;&#60;/tr&#62;</div><div class="code_line">&#60;/TABLE&#62;</div><div class="code_line">&#60;/center&#62;</div><div class="code_line">&#60;/body&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&#60;/html&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>Суть_Зла</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=454741</guid>
        <pubDate>Fri, 10 Sep 2004 06:48:06 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=454741</link>
        <description><![CDATA[Астарот: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><strong class='tag-b'>Mixxx</strong>, 9.09.04, 10:00<br>
А что такое hidden? </div></div><br>
Пардон, был не прав, исправлюсь. Попутался с <strong class='tag-b'>абсолютно</strong> другой вещью. :wall: Глюк-с... :blink:]]></description>
        <author>Астарот</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453798</guid>
        <pubDate>Thu, 09 Sep 2004 07:00:54 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453798</link>
        <description><![CDATA[Mixxx: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><strong class='tag-b'>Astaroth</strong>, 8.09.04, 19:09<br>
Кстати, а что насчет не display, а hidden? В чем разница? Противопоказания есть?</div></div><br>
 :blink: А что такое hidden?]]></description>
        <author>Mixxx</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453786</guid>
        <pubDate>Thu, 09 Sep 2004 06:53:18 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453786</link>
        <description><![CDATA[Астарот: Так и я обо что&#33; Это ввиду и имел.]]></description>
        <author>Астарот</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453345</guid>
        <pubDate>Wed, 08 Sep 2004 15:49:50 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453345</link>
        <description><![CDATA[Rom@nych: <strong class='tag-b'>Astaroth</strong>, obj - это <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">document.getElementById(element_id)</div></ol></div></div></div></div>]]></description>
        <author>Rom@nych</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453267</guid>
        <pubDate>Wed, 08 Sep 2004 13:09:47 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453267</link>
        <description><![CDATA[Астарот: obj я так понял это то, что ты прописал в id<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;a id=&quot;ssilka&quot; .......&#62;My Super Link&#60;/a&#62;</div></ol></div></div></div></div><br>
Не знаю сработает ли это дело относительно &lt;a&gt;, но вот &lt;div&gt; прятать одно удовольствие, я думаю.<br>
Кстати, а что насчет не display, а hidden? В чем разница? Противопоказания есть?]]></description>
        <author>Астарот</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453140</guid>
        <pubDate>Wed, 08 Sep 2004 08:56:57 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453140</link>
        <description><![CDATA[SER-Gun: obj в данном случае это имя объекта?<br>Вот у меня предположим есть текст:<br>Ссылка 1<br>Ссылка 2<br>Как его выделить в единый блок? Который будет исчезать и появляться?]]></description>
        <author>SER-Gun</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453104</guid>
        <pubDate>Wed, 08 Sep 2004 08:26:45 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453104</link>
        <description><![CDATA[Mixxx: Скрыть<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;</div><div class="code_line">obj.style.display=&#39;none&#39;</div></ol></div></div></div></div><br>
Показать<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;</div><div class="code_line">obj.style.display=&#39;block&#39;</div></ol></div></div></div></div><br>
<br>
А что значит выделить?]]></description>
        <author>Mixxx</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453095</guid>
        <pubDate>Wed, 08 Sep 2004 08:16:14 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=453095</link>
        <description><![CDATA[SER-Gun: Я там поползал, что-то мне ничего не понравилось...<br>Есть вопрос следующий, как скрыть какой-то блок, а потом его вывести при нажатии на какой-то элемент. И как вообще выделить этот блок. Желательно на примерчике, если у кого есть.]]></description>
        <author>SER-Gun</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=452416</guid>
        <pubDate>Tue, 07 Sep 2004 12:26:15 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=452416</link>
        <description><![CDATA[Rom@nych: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><strong class='tag-b'>SER-Gun</strong>, 7.09.04, 04:52<br>
а потом можно их сделать видимыми?</div></div><br>
Естественно&#33; <strong class='tag-b'>display: block;</strong> Для чего нужен? Даю ссылку на сайт. Там есть классные скрипты менюшек - глянь&#33;<br>
<a class='tag-url' href='http://www.twinhelix.com/' target='_blank'>http://www.twinhelix.com/</a><br>
P.S.: остальным тоже советую&#33;]]></description>
        <author>Rom@nych</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=452000</guid>
        <pubDate>Tue, 07 Sep 2004 05:52:02 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=452000</link>
        <description><![CDATA[SER-Gun: Большое спасибо за советы. Но у меня ситуация такая, что не хотел бы использовать XML...Выходные данные у меня подгатавливает php скрипт. И мне просто необходимо правильно понять, как реализовывается это меню...Чтобы оно разворачивалось и сворачивалось при нажатии на пункты. Я предполагал сделать это следующим способом. Подгружать все, но некоторые блоки делать hidden, а потом можно их сделать видимыми?  :whistle:]]></description>
        <author>SER-Gun</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451985</guid>
        <pubDate>Tue, 07 Sep 2004 05:32:12 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451985</link>
        <description><![CDATA[shipbrother: да, с помошью тега &lt;XML&gt;.]]></description>
        <author>shipbrother</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451930</guid>
        <pubDate>Tue, 07 Sep 2004 02:43:54 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451930</link>
        <description><![CDATA[Mixxx: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><strong class='tag-b'>shipbrother</strong>, 7.09.04, 00:31<br>
использовал xml+javascript(DOM)</div></div><br>
Интересно а как именно у тебя реализовано &quot;сцепление&quot;<br>
HTML с XML?<br>
С помощью тега &lt;XML&gt;?]]></description>
        <author>Mixxx</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451792</guid>
        <pubDate>Mon, 06 Sep 2004 18:31:53 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451792</link>
        <description><![CDATA[shipbrother: если тебе не надо периодически подгружать и отгружать часть меню, как в меню, которое ты найдешь по предложенной <strong class='tag-b'>Mixxxом</strong> ссылке, (то есть все меню сразу при первой загрузке может уже находится в памяти), то могу помочь с готовым кодом. использовал xml+javascript(DOM)<br>
гарантирую работу в IE(больше нигде не тестил), но скрипт можно подправить так, что все будет ок. <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='8' style='font-size:8pt;'><strong class='tag-b'>Добавлено в <time class="tag-mergetime" datetime="2004-09-06T18:36:08+00:00">06.09.04, 18:36</time></strong>:</span></span><br>
сразу предупредждаю, я не такй спец как <strong class='tag-b'>Mixxx</strong>, поэтому мое решение может быть не таким профессиональным. :) но точно скажу - выглядит оно попроще]]></description>
        <author>shipbrother</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451723</guid>
        <pubDate>Mon, 06 Sep 2004 16:16:52 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451723</link>
        <description><![CDATA[Mixxx: Велосипед изобретать не надо,<br>
дело в том, что  любой HTML документ - это уже дерево.<br>
Примерно такое:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;</div><div class="code_line">HTML</div><div class="code_line">&nbsp;|</div><div class="code_line">&nbsp;|----HEAD</div><div class="code_line">&nbsp;| &nbsp; &nbsp; &nbsp;|---TITLE</div><div class="code_line">&nbsp;| &nbsp; &nbsp; &nbsp;|---META</div><div class="code_line">&nbsp;|</div><div class="code_line">&nbsp;|----BODY</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;|</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;|----DIV</div><div class="code_line">..................</div></ol></div></div></div></div><br>
Другой вопрос, что не каждый умеет этим деревом пользоватся.<br>
Вот очень хорошая ссылка <a class='tag-url' href='http://rtfm.vn.ua/prog/js/domintro/' target='_blank'>Основы DOM</a><br>
А конкретно про меню читай -  <a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=64605&view=findpost&p=447477' target='_blank'>Динамическая подгрузка меню (сообщение #447477)</a>]]></description>
        <author>Mixxx</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451384</guid>
        <pubDate>Mon, 06 Sep 2004 10:13:56 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451384</link>
        <description><![CDATA[SER-Gun: Ну еще точнее, можно было бы, чтобы я сразу такую менюху формировал, но чтобы вложенные элементы были не видны, а потом при нажатии на пункт появлялось и при повторном нажатии исчезало]]></description>
        <author>SER-Gun</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451316</guid>
        <pubDate>Mon, 06 Sep 2004 08:58:18 +0000</pubDate>
        <title>Как реализовать структуру дерева?</title>
        <link>https://forum.sources.ru/index.php?showtopic=65140&amp;view=findpost&amp;p=451316</link>
        <description><![CDATA[SER-Gun: Подскажите пожалуйста, как реализовывается структура дерева...Хотя бы простейшего. Желательно, чтобы поддерживалась большенством броузеров. В итоге на 3-ем уровне будут ссылки. Желательно в текстовом режиме. Т.е. без всяких там выпендронов под винду. <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='8' style='font-size:8pt;'><strong class='tag-b'>Добавлено в <time class="tag-mergetime" datetime="2004-09-06T09:48:14+00:00">06.09.04, 09:48</time></strong>:</span></span><br>
Уточню, я хочу чтобы у меня было следующее отображение:<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>Пункт 1<br>
    Подпункт 1<br>
         Ссылка 1<br>
         Ссылка 2<br>
    Подпункт 2<br>
    Подпункт 3<br>
Пункт 2<br>
    Подпункт 4<br>
    Подпункт 5<br>
    Подпункт 6</div></div><br>
<br>
Чтобы это открывалось динамически из загруженных массивов данных.]]></description>
        <author>SER-Gun</author>
        <category>JavaScript, DOM/DHTML</category>
      </item>
	
      </channel>
      </rss>
	