<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Development Blog &#187; accordion</title>
	<atom:link href="http://www.leigeber.com/tag/accordion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leigeber.com</link>
	<description>This web development blog features fresh articles on JavaScript, AJAX, CSS, XHTML, PHP, Photoshop and more.</description>
	<lastBuildDate>Sat, 13 Feb 2010 02:05:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Accordion Script With Multi-Level Support</title>
		<link>http://www.leigeber.com/2009/03/accordion/</link>
		<comments>http://www.leigeber.com/2009/03/accordion/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 05:37:28 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[collapsible]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=141</guid>
		<description><![CDATA[This accordion script is powerful and lightweight. It now includes multi-level support, a parameter to determine whether only one panel can be expanded concurrently, and a hide/show all toggle.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leigeber.com/wp-content/uploads/2009/03/tiny-accordion.gif" alt="Accordion" width="459" height="175" /></p>
<p>This updated accordion script is powerful and lightweight at only 1.2kb. It now includes multi-level support, the option to allow multiple panels to expand concurrently, and a hide/show all toggle. I have reverted the markup to a div based structure to eliminate any validation issues with the definition tables in the previous version. Check back for more posts and scripts soon.</p>
<p>To initialize an accordion use the following code:</p>
<pre class="brush: jscript;">var accordion=new TINY.accordion.slider('accordion');
accordion.init('accordion','h3',0,0,'selected');</pre>
<p>You must create a new accordion object before initialization. The parameter taken by accordion.slider is the variable name used for the object. The object.init function takes 5 parameters: the id of the accordion “ul”, the header element tag, whether the panels should be expandable independently (optional), the index of the initially expanded section (optional) and the class for the active header (optional).</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong>Update 6/16/2009</strong></p>
<p>The script has been updated with a couple bug fixes, performance tweaks, and feature requests. I also shaved off 0.2KB.</p>
<p>You can now expand a particular section by its index, for example parentAccordion.pr(0,1), with the second parameter being the index of the section. If you don&#8217;t want any section to be expanded by default then use -1 for the initially expanded index in the initialization function, example accordion.init(&#8220;accordion&#8221;,&#8221;h3&#8243;,0,-1,&#8221;selected&#8221;). The script is also no longer tied to a strict doctype. If you are using this along with Flash, be sure to set the wmode property on the SWF object.</p>
<p><strong><a href="http://sandbox.leigeber.com/javascript-accordion/index.html">Click here for the demo.</a></strong></p>
<p><strong><a href="http://forum.leigeber.com/index.php?app=downloads&#038;showfile=5">Click here to download the source code.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2009/03/accordion/feed/</wfw:commentRss>
		<slash:comments>170</slash:comments>
		</item>
		<item>
		<title>Animated JavaScript Accordion V2</title>
		<link>http://www.leigeber.com/2008/10/animated-javascript-accordion/</link>
		<comments>http://www.leigeber.com/2008/10/animated-javascript-accordion/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 17:14:23 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[expanding]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[sliding]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=58</guid>
		<description><![CDATA[This animated JavaScript accordion script is lightweight (1.16 KB), fast, supports multiple instances and includes an active header class toggle.]]></description>
			<content:encoded><![CDATA[<p><img title="Animated JavaScript Accordion" src="http://www.leigeber.com/wp-content/uploads/2008/10/accordion.gif" alt="" width="459" height="173" /></p>
<p>A new version of this script is <a href="http://www.leigeber.com/2009/03/accordion/"><strong>available here</strong></a>.</p>
<p>This lightweight (1.16 KB) animated JavaScript accordion is an update to the <a href="http://www.leigeber.com/2008/04/lightweight-javascript-and-css-accordion/">original accordion script</a> posted on April 18th. It is now smaller, faster, supports multiple instances and includes an active header class toggle. The markup is also improved through the use of definition lists and the CSS has been simplified as well.</p>
<p>To initialize an accordion use the following code:</p>
<pre class="brush: jscript;">var mySlider=new accordion.slider('mySlider');
mySlider.init('slider',0,'open');</pre>
<p>You must create a new accordion object before initialization. The parameter taken by accordion.slider is the variable name used for the object. The object.init function takes 3 parameters: the id of the &#8220;dl&#8221;, the index of the initially expanded section (optional) and the class for the active header (optional).</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/accordion/index.html">Click here for the demo.</a></strong></p>
<p><strong><a href="http://sandbox.leigeber.com/accordion/accordion.zip">Click here to download the source code.</a></strong></p>
<p><strong>Update 11/24/2008</strong> &#8211; Updated logic to allow hover state when no sections are initially expanded. Consolidated some code to drop the weight by 15%.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2008/10/animated-javascript-accordion/feed/</wfw:commentRss>
		<slash:comments>70</slash:comments>
		</item>
		<item>
		<title>Horizontal JavaScript Accordion 1kb</title>
		<link>http://www.leigeber.com/2008/05/horizontal-javascript-accordion-menu/</link>
		<comments>http://www.leigeber.com/2008/05/horizontal-javascript-accordion-menu/#comments</comments>
		<pubDate>Mon, 26 May 2008 01:05:39 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=52</guid>
		<description><![CDATA[This versatile 1kb horizontal JavaScript accordion script can be used for menus, images, presentation content and more.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://sandbox.leigeber.com/slidemenu/slidemenu.html" width="459" height="100" scrolling="no" frameborder="0" name="slide_menu"></iframe></p>
<p><iframe src="http://sandbox.leigeber.com/slidemenu2/slidemenu.html" width="459" height="100" scrolling="no" frameborder="0" name="slide_menu_2"></iframe></p>
<p>This versatile 1kb horizontal accordion script can be used for menus, images, presentation content and more.  I had seen a similar looking feature on the <a href="http://www.mootools.net">mootools</a> homepage and set out the replicate the functionality as a standalone script and as lightweight as possible. The script will automatically adjust to the number of elements in the accordion and the dimensions of the accordion.</p>
<p>The front-end markup for the script is a simple unordered list as in the example below&#8230;</p>
<pre class="brush: xml;">
&lt;ul&gt;
	&lt;li&gt;&lt;img src=&quot;images/1.gif&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src=&quot;images/2.gif&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src=&quot;images/3.gif&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src=&quot;images/4.gif&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>To build the accordion call the function below onload&#8230;</p>
<pre class="brush: jscript;">slideMenu.build('sm',200,10,10,1)</pre>
<p>The first parameter is the id of the unordered list you would like to bind the accordion to. The second is the width you would like the accordion selection to expand to. The third is the timeout variable to control how quickly the sliding function is called. The fourth is the speed of the accordion with 1 being the fastest. The last is optional and is the integer that corresponds to the section you would like to be expanded when the accordion is loaded.</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href='http://www.leigeber.com/wp-content/uploads/2008/05/slidemenu.zip'>Click here to download the original script.</a></strong></p>
<p><strong><a href='http://www.leigeber.com/wp-content/uploads/2008/05/slidemenu2.zip'>Click here to download the script that collapses onmouseout.</a></strong></p>
<p><strong>Update 5/26/2008</strong> &#8211; Removed a line of unnecessary code and resolved an issue with IE6.<br />
<strong>Update 5/26/2008</strong> &#8211; Tweaked width parsing code, thanks to realazy for the suggestion.<br />
<strong>Update 6/05/2008</strong> &#8211; Added download for version that reverts back the the uniform collapsed positions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2008/05/horizontal-javascript-accordion-menu/feed/</wfw:commentRss>
		<slash:comments>331</slash:comments>
		</item>
		<item>
		<title>Lightweight JavaScript Accordion with CSS</title>
		<link>http://www.leigeber.com/2008/04/lightweight-javascript-and-css-accordion/</link>
		<comments>http://www.leigeber.com/2008/04/lightweight-javascript-and-css-accordion/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 02:44:25 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=13</guid>
		<description><![CDATA[This simple JavaScript accordion is only 1.65 kilobytes when packed. If you have a small project that could use a JavaScript accordion and don’t want to include an entire JavaScript framework to do the job then give this script a try.]]></description>
			<content:encoded><![CDATA[<p><strong>The updated accordion script is <a href="http://www.leigeber.com/2009/03/accordion/">available here</a>.</strong></p>
<p>This JavaScript accordion is only 1.5kb. If you have a small project that could use an accordion and don&#8217;t want to include an entire JavaScript framework to do the job then give this script a try.</p>
<p>You will need to call the following function in your body onload where the first parameter is the div id of the accordion parent and the second tells the script which section to expand onload.</p>
<pre class="brush: jscript;">slider.init('slider',1)</pre>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://www.leigeber.com/wp-content/uploads/2008/04/javascript_slider.zip">Click here</a> to download the source code.</strong></p>
<p><strong>Updated 5/27/2008</strong> &#8211; Slightly minified the code cutting off 1kb and added the script into a global namespace.<br />
<strong>Updated 6/19/2008</strong> &#8211; Shaved of a few bytes and added change the &#8220;c&#8221; variable to identify which section to be expanded onload.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2008/04/lightweight-javascript-and-css-accordion/feed/</wfw:commentRss>
		<slash:comments>106</slash:comments>
		</item>
	</channel>
</rss>
