<?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>ZENVERSE &#187; Tools &amp; Scripts</title>
	<atom:link href="http://zenverse.net/category/tools-and-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://zenverse.net</link>
	<description>Design and Web Development</description>
	<lastBuildDate>Tue, 15 Jan 2013 15:12:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>ZenTabs &#8211; A jQuery Tabbed Menu Script</title>
		<link>http://zenverse.net/zentabs-tabbed-menu/</link>
		<comments>http://zenverse.net/zentabs-tabbed-menu/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 15:05:36 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Tools & Scripts]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=1019</guid>
		<description><![CDATA[If you noticed my <a href="http://twitter.com/zenverse" target="_blank">tweet</a>, I started to learn jQuery few days ago because I need it to create a photoblogging theme. To test my understanding I need to try making something, so this is the outcome : a tabbed menu script.]]></description>
				<content:encoded><![CDATA[<h3>Latest version</h3>
<p>Latest version is 1.0.2, <a href="#changelog">what has changed</a>? </p>
<h3>Introduction</h3>
<p>If you noticed my <a href="http://twitter.com/zenverse" target="_blank">tweet</a>, I started to learn jQuery few days ago because I need it to create a photoblogging theme. To test my understanding I need to try making something, so this is the outcome : a tabbed menu script.</p>
<h3>ZenTabs</h3>
<p>I named it after my name. ZenTabs is a light-weight tabbed menu script powered by javascript and jQuery. It can have unlimited tabs, can be styled using CSS and more.</p>
<p>File size : ~ 3 Kb<br />
Requirement : jQuery (tested using version 1.3.2)<br />
Tested and compatible with : Firefox 3 , Opera 9 , Opera 10 , IE 6 and Safari.<br />
Price : Free (even for commercial purpose)<br />
License : GPL</p>
<h3>Features</h3>
<ul>
<li>For every tabbed menu, you can have unlimited tabs</li>
<li>No conflicts if you have more than 1 tabbed menu in a single page</li>
<li>Can be styled using CSS</li>
<li>3 animation styles (fade / slide / none) &#8211; default is slide</li>
<li>3+ animation speeds (fast / normal / slow / time in ms)</li>
<li>Uses CSS class name to determine tab title and tab content</li>
</ul>
<h3>ZenTabs Demo</h3>
<p>The following link show a demo with two tabbed menus running together in a same page, without conflicts.<br />
<a target="_blank" href="http://zenverse.net/wp-content/uploads/2009/09/zentabs.html">ZenTabs Demo</a></p>
<h3>Download</h3>
<blockquote><a rel="nofollow" href="http://zenverse.net/wp-content/plugins/download-monitor/download.php?id=21" title="ZenTabs - jQuery Tabbed Menu Script has been downloaded 2968 times">ZenTabs - jQuery Tabbed Menu Script 1.0.2 </a><br />[ Downloaded 2968 times |  ]<br /><br />Check back soon, an important update (wordpress thumbnail feature and version checker) is rolling out to all Zenverse themes, starting from the latest theme.</blockquote>
<h3>Using ZenTabs</h3>
<h5>Load the javascript and css</h5>
<p>Include this between &lt;head> tag and change the URL to css and js file if they were put in different directory.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1019code1'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10191"><td class="code" id="p1019code1"><pre class="html" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;zentabs.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;zentabs.css&quot; /&gt;</pre></td></tr></table></div>

<h5>The HTML Structure</h5>
<p>We have to prepare the tabbed menu for users that disable javascript. Therefore, we make our structure like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1019code2'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10192"><td class="code" id="p1019code2"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;zentabs&quot;&gt;
&nbsp;
  &lt;div class=&quot;onetab&quot;&gt;
    &lt;h2 class=&quot;tabtitle&quot;&gt;Tab Title 1&lt;/h2&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 1&lt;/div&gt;
  &lt;/div&gt;
&nbsp;
  &lt;div class=&quot;onetab&quot;&gt;
    &lt;h2 class=&quot;tabtitle&quot;&gt;Tab Title 2&lt;/h2&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 2&lt;/div&gt;
  &lt;/div&gt;
&nbsp;
&lt;/div&gt;</pre></td></tr></table></div>

<p>Without javascript, all you see were contents from top to bottom. </p>
<p>Basically, this is what all about:</p>
<ul>
<li>Wrap the whole tabbed menu with any element of class name &quot;zentabs&quot;</li>
<li>Wrap a single set of tab and content with any element of class name &quot;onetab&quot;</li>
<li>Wrap the tab title inside &quot;onetab&quot; with any element of class name &quot;tabtitle&quot;</li>
<li>Wrap the tab content inside &quot;onetab&quot; with any element of class name &quot;tabcontent&quot;</li>
</ul>
<h5>Adding More Tabs</h5>
<p>As you can see at above, you just have to add a div of class name &quot;onetab&quot; and a new tab will appear. If you are still not sure, here&#8217;s how:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1019code3'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10193"><td class="code" id="p1019code3"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;zentabs&quot;&gt;
&nbsp;
  &lt;div class=&quot;onetab&quot;&gt;
    &lt;h2 class=&quot;tabtitle&quot;&gt;Tab Title 1&lt;/h2&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 1&lt;/div&gt;
  &lt;/div&gt;
&nbsp;
  &lt;div class=&quot;onetab&quot;&gt;
    &lt;h2 class=&quot;tabtitle&quot;&gt;Tab Title 2&lt;/h2&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 2&lt;/div&gt;
  &lt;/div&gt;
&nbsp;
  &lt;div class=&quot;onetab&quot;&gt;
    &lt;h2 class=&quot;tabtitle&quot;&gt;Tab Title 3&lt;/h2&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 3&lt;/div&gt;
  &lt;/div&gt;
&nbsp;
&lt;/div&gt;</pre></td></tr></table></div>

<h5>Styling ZenTabs</h5>
<p>Since ZenTabs uses CSS class name to do its work, you can easily customise it using the class name. However, there is something you need to know:</p>
<ul>
<li>The CSS class &quot;zentabs&quot; changes to &quot;zentabs_live&quot; once loaded.</li>
<li>One loaded, the tab titles are wrapped in an unordered list (ul) with class name &quot;zentabs_ul&quot;</li>
</ul>
<p>This is the new structure once the script is loaded:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1019code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10194"><td class="code" id="p1019code4"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;zentabs_live&quot;&gt;
  &lt;ul class=&quot;zentabs_ul&quot;&gt;
    &lt;li&gt;&lt;a href=&quot;javascript:void(null)&quot;&gt;Tab Title 1&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;javascript:void(null)&quot;&gt;Tab Title 2&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
&nbsp;
  &lt;div class=&quot;tabcontent_wrapper&quot;&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 1&lt;/div&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 2&lt;/div&gt;
  &lt;/div&gt;
&nbsp;
&lt;/div&gt;</pre></td></tr></table></div>

<h5>Deciding which tab to show when it loaded</h5>
<p>Simply add a class &quot;firsttab&quot; to any &quot;onetab&quot; to make it show once loaded. EG &#8211; show tab#2:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1019code5'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10195"><td class="code" id="p1019code5"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;zentabs&quot;&gt;
&nbsp;
  &lt;div class=&quot;onetab&quot;&gt;
    &lt;h2 class=&quot;tabtitle&quot;&gt;Tab Title 1&lt;/h2&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 1&lt;/div&gt;
  &lt;/div&gt;
&nbsp;
  &lt;div class=&quot;onetab firsttab&quot;&gt;
    &lt;h2 class=&quot;tabtitle&quot;&gt;Tab Title 2&lt;/h2&gt;
    &lt;div class=&quot;tabcontent&quot;&gt;Tab Content 2&lt;/div&gt;
  &lt;/div&gt;
&nbsp;
&lt;/div&gt;</pre></td></tr></table></div>

<h5>Change Animation Style and Speed</h5>
<p>Open zentabs.js and edit the first few lines. Instructions were included in the file.</p>
<h3>Changelog<a name="changelog"></a></h3>
<p><strong>Version 1.0.2</strong><br />
- Now it works even if you load other library such as prototype,  scriptaculous or mootools</p>
<p><strong>Version 1.0.1</strong><br />
- Fixed an error in coding : Object doesn&#8217;t support this property or method</p>
<p><strong>Version 1.0</strong><br />
- First version of ZenTabs</p>
<h3>Support</h3>
<p>If you have any problem, just leave a comment here.</p>
<h3>Like this script? Donate via Paypal</h3>
<p>I spent a lot of time making themes, plugins and scripts. If you like this theme and would like to support my works, you can donate via PayPal using the button below.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"><br />
<input type="hidden" name="hosted_button_id" value="4859745"><br />
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><br />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<p>Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/zentabs-tabbed-menu/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
