<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037433" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037433</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-function#comment-1214651</link>
    <description> &lt;p&gt;I think i need to adjust this if statement&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;function show(id)&lt;br /&gt;{&lt;br /&gt;	el = document.getElementById(id);&lt;br /&gt;	if (el.style.display == &amp;#039;none&amp;#039;)&lt;br /&gt;	{&lt;br /&gt;		el.style.display=&amp;#039;&amp;#039;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // here im trying to say if the table does not have that id close it&lt;br /&gt;		if(document. getElementsByTagName != id) {&lt;br /&gt;			el.style.display ==&amp;#039;none&amp;#039;;&lt;br /&gt;		}&lt;br /&gt;	}else {&lt;br /&gt;		el.style.display=&amp;#039;none&amp;#039;;&lt;br /&gt;	}&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;my navigation works ok, when you click on anyone tab the table associated with that tab shows and disappears when clicked agian but when you click another tab that table appears below it and so on.&lt;br /&gt;
 what i really want is when clicking another tab the table that is showing is replaced by the next table.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.yahoo.com/&quot; class=&quot;bb-url&quot;&gt;http://www.yahoo.com/&lt;/a&gt; take the yahoo homepage for example look at the tab system.&lt;/p&gt;
&lt;p&gt;I just though that the function could work out which id is associated with which table and hide all others when another is called.&lt;/p&gt;
 </description>
     <pubDate>Wed, 07 Feb 2007 02:26:18 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1214651 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-function#comment-1214636</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;benf wrote:&lt;/strong&gt; when another table is called?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I don&#039;t understand this bit of the question. Do you mean when another table is shown? You could create another function called [incode]hide(id)[/incode] then in the onclick event do:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;hide(&amp;#039;table1&amp;#039;);&lt;br /&gt;hide(&amp;#039;table2&amp;#039;);&lt;br /&gt;show(&amp;#039;table3&amp;#039;);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Does that make sense?&lt;/p&gt;
 </description>
     <pubDate>Tue, 06 Feb 2007 20:02:20 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1214636 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
