<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: What code is used to make &quot;collapsable&#8230;.expandable&#8230;boxes&quot; on websites?</title>
	<atom:link href="http://www.antiagingskincareproductreview.com/skin-rejuvenation/what-code-is-used-to-make-collapsable-expandable-boxes-on-websites/feed" rel="self" type="application/rss+xml" />
	<link>http://www.antiagingskincareproductreview.com/skin-rejuvenation/what-code-is-used-to-make-collapsable-expandable-boxes-on-websites</link>
	<description>Helping You Look A Million Dollars!</description>
	<lastBuildDate>Thu, 26 Aug 2010 09:50:59 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: winkelthorp</title>
		<link>http://www.antiagingskincareproductreview.com/skin-rejuvenation/what-code-is-used-to-make-collapsable-expandable-boxes-on-websites/comment-page-1#comment-1151</link>
		<dc:creator>winkelthorp</dc:creator>
		<pubDate>Fri, 30 Oct 2009 13:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.antiagingskincareproductreview.com/skin-rejuvenation/what-code-is-used-to-make-collapsable-expandable-boxes-on-websites#comment-1151</guid>
		<description>What you need is some javascript and css.

CSS:
&lt;style&gt;
.show {}
.hide { display:none; background-color:white;cursor:hand;}
&lt;/style&gt;

Put that in the head section of the page.

The javascript:
&lt;script&gt;
function expandText(id){
         child = document.getElementById(id)
         if (child == null)
             return;
         else
             {
                 if (child.className == &#039;hide&#039;)
                     {
                         child.className = &#039;show&#039;;
                     }        else
                     {
                         child.className = &#039;hide&#039;;
                     }
             }
       }
   
&lt;/script&gt;

Also put that in the head section of the page.

Then make a link with a javscript onclick of the function expandText with the id of the element you&#039;d like to expand in the body section of the page:

&lt;a href=&quot;#&quot; onClick=&quot;expandText(&#039;div_info&#039;)&quot;&gt;Expand The Info div&lt;/a&gt;
&lt;div id=&#039;div_info&#039;&gt;
This is where the hidden text is put and the above link will cycle its visibiliy
&lt;/div&gt;

Try it out. It&#039;ll work, when used properly. I use these all the time; They&#039;re very useful.&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;Me, myself, I, and my brain.</description>
		<content:encoded><![CDATA[<p>What you need is some javascript and css.</p>
<p>CSS:<br />
&lt;style&gt;<br />
.show {}<br />
.hide { display:none; background-color:white;cursor:hand;}<br />
&lt;/style&gt;</p>
<p>Put that in the head section of the page.</p>
<p>The javascript:<br />
&lt;script&gt;<br />
function expandText(id){<br />
         child = document.getElementById(id)<br />
         if (child == null)<br />
             return;<br />
         else<br />
             {<br />
                 if (child.className == &#8216;hide&#8217;)<br />
                     {<br />
                         child.className = &#8217;show&#8217;;<br />
                     }        else<br />
                     {<br />
                         child.className = &#8216;hide&#8217;;<br />
                     }<br />
             }<br />
       }</p>
<p>&lt;/script&gt;</p>
<p>Also put that in the head section of the page.</p>
<p>Then make a link with a javscript onclick of the function expandText with the id of the element you&#8217;d like to expand in the body section of the page:</p>
<p>&lt;a href=&quot;#&quot; onClick=&quot;expandText(&#8217;div_info&#8217;)&quot;&gt;Expand The Info div&lt;/a&gt;<br />
&lt;div id=&#8217;div_info&#8217;&gt;<br />
This is where the hidden text is put and the above link will cycle its visibiliy<br />
&lt;/div&gt;</p>
<p>Try it out. It&#8217;ll work, when used properly. I use these all the time; They&#8217;re very useful.<br /><b>References : </b><br />Me, myself, I, and my brain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alphaant@ymail.com</title>
		<link>http://www.antiagingskincareproductreview.com/skin-rejuvenation/what-code-is-used-to-make-collapsable-expandable-boxes-on-websites/comment-page-1#comment-1150</link>
		<dc:creator>alphaant@ymail.com</dc:creator>
		<pubDate>Fri, 30 Oct 2009 12:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.antiagingskincareproductreview.com/skin-rejuvenation/what-code-is-used-to-make-collapsable-expandable-boxes-on-websites#comment-1150</guid>
		<description>DHTML (Dynamic HTML) is key. It is comprised of HTML, CSS, JavaScript and the DOM (Document Object Model). Using client-side JavaScript, you can manipulate the appearance of elements within the page and even animate them. There are countless resources/tutorials to learn DHTML. To make DHTML really easy, check out the jQuery library. It makes traversing the DOM as easy as working with CSS.

http://jquery.com/&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>DHTML (Dynamic HTML) is key. It is comprised of HTML, CSS, JavaScript and the DOM (Document Object Model). Using client-side JavaScript, you can manipulate the appearance of elements within the page and even animate them. There are countless resources/tutorials to learn DHTML. To make DHTML really easy, check out the jQuery library. It makes traversing the DOM as easy as working with CSS.</p>
<p><a href="http://jquery.com/" rel="nofollow">http://jquery.com/</a><br /><b>References : </b></p>
]]></content:encoded>
	</item>
</channel>
</rss>
