<?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>Three2Tango &#187; JQuery</title>
	<atom:link href="http://www.three2tango.com/category/techcorner/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.three2tango.com</link>
	<description>Points To Ponder : The Latest news from the TechWorld,Automobiles,CellPhones and lots of useful Code Snippets</description>
	<lastBuildDate>Fri, 27 Jan 2012 09:03:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple Hover Effect Using JQuery</title>
		<link>http://www.three2tango.com/techcorner/simple-hover-effect-using-jquery.html/</link>
		<comments>http://www.three2tango.com/techcorner/simple-hover-effect-using-jquery.html/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 06:29:45 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[Simple Hover Effects using JQuery]]></category>

		<guid isPermaLink="false">http://www.three2tango.com/?p=1811</guid>
		<description><![CDATA[This time we will study about how to bring about a hover effect on an object using JQuery.We will create a menu like structure using basic html and show hover effects on the menu on which the mouse is hovered on.View Demo also and Download the Source.]]></description>
			<content:encoded><![CDATA[<p>This time we will study about how to bring about a hover effect on an object using JQuery.We will create a menu like structure using basic html and show hover effects on the menu on which the mouse is hovered on.<a href="http://www.three2tango.com/Jquery/hover.html" target="_blank">View Demo</a></p>
<p>Fist we create the basic HTML for this.Here is the basic HTML we will be using</p>
<p><code>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Simple Slide Panel Using jQuery&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form id="myform"&gt;<br />
&lt;div&gt;<br />
JQuery is a JavaScript library that emphasizes interaction<br />
between JavaScript and HTML.<br />
&lt;/div&gt;<br />
&lt;div&gt;<br />
JQuery simplifies the use of JavaScript and also can<br />
enhance your web application by adding a lot of<br />
professionalism and usability.<br />
&lt;/div&gt;<br />
&lt;div&gt;<br />
It is a great tool for webmasters as JQuery is SEO<br />
friendly too,which makes it a better option than Flash.<br />
&lt;/div&gt;<br />
&lt;div&gt;<br />
JQuery exists as a single JavaScript files which<br />
contains the DOM,Events,effects and Ajax functions<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>Now we will add some CSS styling.For actually distinguishing between the hovered mode and the normal mode,we need to stylize them in two different styles.Here is the CSS code i have applied.</p>
<p><code>&lt;style type="text/css"&gt;<br />
.pane{<br />
height:100px;<br />
width:200px;<br />
color:#FFFFFF;<br />
border-color:#FFFF00;<br />
border-style:groove;<br />
background-color:#000000;<br />
text-align:center;<br />
margin-left:auto;<br />
margin-right:auto;<br />
}<br />
.paneHover{<br />
cursor:hand;<br />
height:100px;<br />
width:200px;<br />
color:#FFFFFF;<br />
border-color:#000000;<br />
border-style:inset;<br />
background-color:#FF6633;<br />
text-align:center;<br />
margin-left:auto;<br />
margin-right:auto;<br />
}<br />
&lt;/style&gt;</code></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6525089797582043";
/* 468x15, created 7/8/09 */
google_ad_slot = "8684679217";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Ok,now we can apply the JQuery script to our page.What we will be doing is add the &#8220;paneHover&#8221; class when the mouse is over the particular div and remove the &#8220;paneHover&#8221; class when the particular div is returned to normal mode.Again we are using the minified version of the JQuery script here.Here is the JQuery script.</p>
<p><code>&lt;script src="jquery-1.3.2.min.js" type="text/javascript" /&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript"&gt;<br />
$(document).ready(function()<br />
{<br />
$(".pane").hover(function()<br />
{<br />
$(this).addClass("paneHover");<br />
},<br />
function()<br />
{$(this).removeClass("paneHover");}<br />
);<br />
});<br />
&lt;/script&gt;</code><br />
<a href="http://www.three2tango.com/Jquery/hovereffect.zip"><br />
Download Simple Hover Effects Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.three2tango.com/techcorner/simple-hover-effect-using-jquery.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disappearing Panel using JQuery</title>
		<link>http://www.three2tango.com/techcorner/disappearing-panel-using-jquery.html/</link>
		<comments>http://www.three2tango.com/techcorner/disappearing-panel-using-jquery.html/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 06:18:49 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[Disappearing Panel using JQuery]]></category>

		<guid isPermaLink="false">http://www.three2tango.com/?p=1791</guid>
		<description><![CDATA[We continue our JQuery tutorial by making a div disappear using JQuery.The basic html and CSS is similar to the one we used in the Simple Slide Panel.Anyway i am  repeating the steps.View Demo also.
Fist we create the basic HTML for this.For the purpose of styling the button,i have replaced it with another div.We will however make the div look like a button using CSS.What we will be doing is animating the opacity of the div with id="pane" to "hide" when the div with is clicked.]]></description>
			<content:encoded><![CDATA[<p>We continue our JQuery tutorial by making a div disappear using JQuery.The basic html and CSS is similar to the one we used in the Simple Slide Panel.Anyway i am  repeating the steps.<a href="http://www.three2tango.com/Jquery/dissappear.html" target="_blank">View Demo</a></p>
<p>Fist we create the basic HTML for this.For the purpose of styling the button,i have replaced it with another div.We will however make the div look like a button using CSS.Here is the basic HTML we will be using</p>
<p><code>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Simple Slide Panel Using jQuery&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form id="myform"&gt;<br />
&lt;div id="pane"&gt;<br />
This is an example of Sliding Panels using JQuery.<br />
You are viewing this at three2tango.com.<br />
JQuery is a JavaScript library that emphasizes interaction<br />
between JavaScript and HTML.JQuery simplifies the use of JavaScript<br />
and also can enhance your web application by adding a lot of professionalism<br />
and usability.It is a great tool for webmasters as JQuery is SEO friendly<br />
too,which makes it a better option than Flash.JQuery exists as a single<br />
JavaScript files which contains the DOM,Events,effects and Ajax functions<br />
&lt;/div&gt;<br />
&lt;div id="mybutton"&gt;<br />
Click Here!!<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6525089797582043";
/* 468x15, created 7/8/09 */
google_ad_slot = "8684679217";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Now we will add some CSS styling to the above created elements to make it look better.Here is the CSS code i have applied.Again i am assuming that you are comfortable using CSS.You might be able to do much better as i am not really a good designer myself.Anyways,here is my code.</p>
<p><code>&lt;style type="text/css"&gt;<br />
#pane{<br />
height:120px;<br />
width:700px;<br />
color:#FFFFFF;<br />
background-color:#000000;<br />
margin-left:auto;<br />
margin-right:auto;<br />
text-align:center;<br />
}<br />
.btn_disappear{<br />
border-style:inset;<br />
border-color:#FFFFFF;<br />
background-color:#000000;<br />
color:#FFFFFF;<br />
height:25px;<br />
width:100px;<br />
margin-left:auto;<br />
margin-right:auto;<br />
text-align:center;<br />
}<br />
&lt;/style&gt;<br />
</code></p>
<p>Ok,now we can apply the JQuery script to our page.What we will be doing is animating the opacity of the div with id=&#8221;pane&#8221; to &#8220;hide&#8221; when the div with is clicked.Again we are using the minified version of the JQuery script here.Here is the JQuery script.</p>
<p><code>&lt;script src="jquery-1.3.2.min.js" type="text/javascript" /&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript"&gt;<br />
$(document).ready(function()<br />
{<br />
$(".btn_disappear").click(function()<br />
{<br />
$("#pane").animate({opacity:"hide"},"slow");<br />
});<br />
});<br />
&lt;/script&gt;</code></p>
<p>In addition if you want to show the disappeared panel,you can use the following code.All it does is making the opacity=&#8221;show&#8221;</p>
<p><code>$("#pane").animate({opacity:"show"},"slow");</code></p>
<p><a href="http://www.three2tango.com/Jquery/PanelDisappear.zip">Download Simple Disappearing Panel Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.three2tango.com/techcorner/disappearing-panel-using-jquery.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Slide Panel Using JQuery</title>
		<link>http://www.three2tango.com/techcorner/simple-slide-panel-using-jquery.html/</link>
		<comments>http://www.three2tango.com/techcorner/simple-slide-panel-using-jquery.html/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 06:06:00 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[Simple Slide Panel using JQuery]]></category>

		<guid isPermaLink="false">http://www.three2tango.com/?p=1777</guid>
		<description><![CDATA[We will create a simple Sliding Panel using JQuery in this tutorial..What we are trying to do is to toggle a div up/down on button click.Fist we create the basic HTML for this.For the purpose of styling the button,i have replaced it with another div.We will however make the div look like a button using CSS.Download the Source also]]></description>
			<content:encoded><![CDATA[<p>We continue our JQuery tutorial by creating a simple slide panel using JQuery.What we are trying to do is to toggle a div up/down on button click.<a class="aligncenter" href="http://www.three2tango.com/Jquery/slidepanel.html" target="_blank">View Demo</a></p>
<p>Fist we create the basic HTML for this.For the purpose of styling the button,i have replaced it with another div.We will however make the div look like a button using CSS.Here is the basic HTML we will be using</p>
<p><code>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Simple Slide Panel Using jQuery&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form id="myform"&gt;<br />
&lt;div id="pane"&gt;<br />
This is an example of Sliding Panels using JQuery.<br />
You are viewing this at three2tango.com.<br />
JQuery is a JavaScript library that emphasizes interaction<br />
between JavaScript and HTML.JQuery simplifies the use of JavaScript<br />
and also can enhance your web application by adding a lot of professionalism and usability.It is a great tool for webmasters as JQuery is SEO friendly too,which makes it a better option than Flash.JQuery exists as a single JavaScript files which contains the DOM,Events,effects and Ajax functions<br />
&lt;/div&gt;<br />
&lt;div id="mybutton"&gt;<br />
Click Here!!<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
</code></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6525089797582043";
/* 468x15, created 7/8/09 */
google_ad_slot = "8684679217";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Now we will add some CSS styling to the above created elements to make it look better.Here is the CSS code i have applied.Again i am assuming that you are comfortable using CSS.You might be able to do much better as i am not really a good designer myself.Anyways,here is my code.</p>
<p><code>&lt;style type="text/css"&gt;<br />
#pane{<br />
height:120px;<br />
width:700px;<br />
color:#FFFFFF;<br />
background-color:#000000;<br />
margin-left:auto;<br />
margin-right:auto;<br />
text-align:center;<br />
}<br />
.btn_slide{<br />
border-style:inset;<br />
border-color:#FFFFFF;<br />
background-color:#000000;<br />
color:#FFFFFF;<br />
height:25px;<br />
width:100px;<br />
margin-left:auto;<br />
margin-right:auto;<br />
text-align:center;<br />
}<br />
&lt;/style&gt;</code></p>
<p>Now you will get something like this</p>
<p><a href="http://www.three2tango.com/wp-content/uploads/2009/07/screenshot.JPG"><img class="aligncenter size-medium wp-image-1821" title="screenshot" src="http://www.three2tango.com/wp-content/uploads/2009/07/screenshot-300x62.jpg" alt="screenshot" width="300" height="62" /></a></p>
<p>Ok,now we can apply the JQuery script to our page.What we will be doing is that we toggle the div with id=&#8221;pane&#8221; up/down when the div with class &#8220;btn_slide&#8221; get clicked.Here is the JQuery code to do<br />
this.Again we are using the minified version of the JQuery script here.</p>
<p><code>&lt;script src="jquery-1.3.2.min.js" type="text/javascript" /&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript"&gt;<br />
$(document).ready(function()<br />
{<br />
$(".btn_slide").click(function()<br />
{<br />
$("#pane").slideToggle("slow");<br />
});<br />
});<br />
&lt;/script&gt;</code><br />
<a href="http://three2tango.com/Jquery/Slidepanel.zip"><br />
Download Simple Sliding Panel Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.three2tango.com/techcorner/simple-slide-panel-using-jquery.html/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simple JQuery Tabs</title>
		<link>http://www.three2tango.com/techcorner/simple-jquery-tabs.html/</link>
		<comments>http://www.three2tango.com/techcorner/simple-jquery-tabs.html/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 10:09:53 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[Tabs using JQuery]]></category>
		<category><![CDATA[using JQuery]]></category>

		<guid isPermaLink="false">http://www.three2tango.com/?p=1664</guid>
		<description><![CDATA[We will now create a simple tabbed interface using JQuery and html/CSS.I hope everyone knows what a tabbed interface is.So i guess nothing much needed to be told about it else See the Demo

We will start with the basic Html structure used.We are going to create 2 tabs.The tabs list is shown by using an unordered list.We are making the list inlne so that it may be displayed inline.Aslo we add two DIVs,one for each tab link.Here is the basic HTML  structure and CSS of the tabbed interface]]></description>
			<content:encoded><![CDATA[<p>We will now create a simple tabbed interface using JQuery and html/CSS.I hope everyone knows what a tabbed interface is.So i guess nothing much needed to be told about it else <a href="http://www.three2tango.com/Jquery/tabsexample.html" target="_blank">See the Demo</a></p>
<p>We will start with the basic Html structure used.We are going to create 2 tabs.The tabs list is shown by using an unordered list.We are making the list inlne so that it may be displayed inline.Aslo we add two DIVs,one for each tab link.Here is the basic HTML  structure and CSS of the tabbed interface</p>
<p><code>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;style type="text/css"&gt;<br />
#tabs{<br />
margin:20 px 0;<br />
}<br />
#tabs ul {<br />
float: center;<br />
background: #003333;<br />
height:25px;<br />
width: 150px;<br />
padding-top: 4px;<br />
}<br />
#tabs ul li {<br />
float: left;<br />
margin-left: 2em;<br />
}<br />
#tabs ul li a{<br />
text-decoration:none;<br />
color:#FFFFFF;<br />
font-weight:bold;<br />
}<br />
#tabs ul li.active{<br />
background-color:#669999;<br />
}<br />
#tabs div{<br />
min-height:200px;<br />
padding:20px;<br />
width:150 px;<br />
margin-top:2px;<br />
background-color:#339966;<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id="tabs"&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href='#Tab1'&gt;Tab 1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="#Tab2"&gt;Tab 2&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;div id="Tab1"&gt;<br />
&lt;p&gt;Contents in Tab1 &lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;div id="Tab2"&gt;<br />
&lt;p&gt;Contents in Tab2&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6525089797582043";
/* 468x15, created 7/8/09 */
google_ad_slot = "8684679217";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Now we need to add the JQuery code to make the tabbed interface work so that only the tab whose link has been clicked is shown visible.First we need to show the first tab as active when the page is loaded for the first time.For this we add the following JQuery code</p>
<p><code>$(document).ready(function(){<br />
$('#tabs div').hide();<br />
$('#tabs div:first').show();<br />
$('#tabs ul li:first').addClass('active');</code></p>
<p>Now having made the first tab visible,we will change the active tab depending on which link has been clicked.In the click() function of the link,we first remove the active class from all links.Then we add the active class to the link that has been clicked.Now we assign to a variable,the value of the href attribute of the active link.Finaaly,we show the active tab using the variable to which the active tab was assigned.That&#8217;s all.Here is the click() function</p>
<p><code>$('#tabs ul li a').click(function(){<br />
$('#tabs ul li').removeClass('active');<br />
$(this).parent().addClass('active');<br />
var selectedTab=$(this).attr('href');<br />
$('#tabs div').hide();<br />
$(selectedTab).show();<br />
return false;<br />
});<br />
</code></p>
<p><strong>The complete JQuery code<br />
</strong><br />
<code>&lt;script src="jquery-1.3.2.min.js" type="text/javascript" /&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript"&gt;<br />
$(document).ready(function(){<br />
$('#tabs div').hide();<br />
$('#tabs div:first').show();<br />
$('#tabs ul li:first').addClass('active');<br />
$('#tabs ul li a').click(function(){<br />
$('#tabs ul li').removeClass('active');<br />
$(this).parent().addClass('active');<br />
var selectedTab=$(this).attr('href');<br />
$('#tabs div').hide();<br />
$(selectedTab).show();<br />
return false;<br />
});<br />
});<br />
&lt;/script&gt;</code></p>
<p>I am really not good at designing.So the tabbed structure you find here will be very ugly looking.You can add better CSS structures to enhance the structure.<br />
<a href="http://www.three2tango.com/Jquery/JQueryTabs.zip">Download the Tab Files</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.three2tango.com/techcorner/simple-jquery-tabs.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accordion Menu using JQuery</title>
		<link>http://www.three2tango.com/techcorner/accordion-menu-using-jquery.html/</link>
		<comments>http://www.three2tango.com/techcorner/accordion-menu-using-jquery.html/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 07:15:05 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[Accordion]]></category>
		<category><![CDATA[Accordion using JQuery]]></category>
		<category><![CDATA[Accordion using JQuery example]]></category>

		<guid isPermaLink="false">http://www.three2tango.com/?p=1634</guid>
		<description><![CDATA[Earlier i had introduced about JQuery and about how to build a Cascading Menu using JQuery.Here we will create an Accordion menu using JQuery.An accordion provides you with multiple panes,but displaying only one at once. The Menu's visibility is toggled when the mouse is moved over it.]]></description>
			<content:encoded><![CDATA[<p>Earlier i had introduced about JQuery and about how to build a Cascading Menu using JQuery.Here we will create an Accordion menu using JQuery.An accordion provides you with multiple panes,but displaying only one at once. The Menu&#8217;s visibility is toggled when the mouse is moved over it.<br />
<a href="http://www.three2tango.com/Jquery/accordion.html" target="_blank">See Demo</a><br />
Again we are using the minified version of the JQuery Script file in this example.</p>
<p>Here is the source code for the accordion menu</p>
<blockquote><p><span style="color: #800000;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Accordion Menu Using jQuery&lt;/title&gt;<br />
&lt;script src=&#8221;jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221; /&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function()<br />
{<br />
$(&#8220;#accordionpane p.menu_head&#8221;).mouseover(function()<br />
{<br />
$(this).css({backgroundImage:&#8221;url(UpArrow.jpg)&#8221;}).next(&#8220;div.menu_body&#8221;).slideDown(500)</span></p>
<p><span style="color: #800000;">siblings(&#8220;div.menu_body&#8221;).slideUp(&#8220;slow&#8221;);<br />
$(this).siblings().css({backgroundImage:&#8221;url(DownArrow.jpg)&#8221;});<br />
});<br />
});<br />
&lt;/script&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
body {<br />
margin: 10px auto;<br />
font: 75%/120% Verdana,Arial, Helvetica, sans-serif;<br />
}<br />
.menu_list {<br />
width: 150px;<br />
}<br />
.menu_head {<br />
padding: 5px 10px;<br />
cursor: pointer;<br />
position: relative;<br />
margin:1px;<br />
color:#FFFFFF;<br />
font-weight:bold;<br />
background: #000000 url(DownArrow.jpg) center right no-repeat;<br />
}<br />
.menu_body {<br />
display:none;<br />
}<br />
.menu_body a{<br />
display:block;<br />
color:#000000;<br />
background-color:#CCCCCC;<br />
padding-left:10px;<br />
font-weight:bold;<br />
text-decoration:none;<br />
}<br />
.menu_body a:hover{<br />
color: #333333;<br />
text-decoration:underline;<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div style=&#8221;float:left; margin-left:20px;&#8221;&gt;<br />
&lt;div id=&#8221;accordionpane&#8221;&gt;<br />
&lt;p&gt;Car and Bike Corner&lt;/p&gt;<br />
&lt;div&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Cars&lt;/a&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Bikes&lt;/a&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Gearless&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;p&gt;Tech Corner&lt;/p&gt;<br />
&lt;div&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;ASP.NET&lt;/a&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;PHP&lt;/a&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;JavaScript&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;p&gt;The Game&lt;/p&gt;<br />
&lt;div&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Cricket&lt;/a&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Formula1&lt;/a&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;MotoGp&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></p></blockquote>
<p><a href="http://www.three2tango.com/Jquery/accordion.zip" target="_self">Download Source</a></p>
<p>All we do here is toggle the images,that is, the downarrow and uparrow images.When the menu_head is clicked,the image is changed and also the sibling items in the menu list are shown in a sliding manner.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.three2tango.com/techcorner/accordion-menu-using-jquery.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple Cascading Menu using JQuery</title>
		<link>http://www.three2tango.com/techcorner/simple-cascading-menu-using-jquery.html/</link>
		<comments>http://www.three2tango.com/techcorner/simple-cascading-menu-using-jquery.html/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 12:38:29 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[Cascading Menu using Jquery]]></category>
		<category><![CDATA[java scripts]]></category>

		<guid isPermaLink="false">http://www.three2tango.com/?p=1616</guid>
		<description><![CDATA[JQuery is a JavaScript library that emphasizes interaction between JavaScript and HTML.JQuery simplifies the use of JavaScript and also can enhance your web application by adding a lot of professionalism and usability.It is a great tool for webmasters as JQuery is SEO friendly too,which makes it a better option than Flash.JQuery exists as a single JavaScript files which contains the DOM,Events,effects and Ajax functions.Here we will create a Cascading Menu using JQuery.]]></description>
			<content:encoded><![CDATA[<p>Before we go on to learn how to build a cascading menu using JQuery, let me just introduce what JQuery is.<br />
JQuery is a JavaScript library that emphasizes interaction between JavaScript and HTML.JQuery mainly contains the following features</p>
<ul>
<li>DOM element selections,traversals and modifications</li>
<li>Events</li>
<li>AJAX</li>
<li>CSS Manipulations</li>
<li>Effects and animations</li>
</ul>
<p>JQuery simplifies the use of JavaScript and also can enhance your web application by adding a lot of professionalism and usability.It is a great tool for webmasters as JQuery is SEO friendly too,which makes it a better option than Flash</p>
<p>JQuery exists as a single JavaScript files which contains the DOM,Events,effects and Ajax functions.It can be included using the following code<br />
<strong>&lt;script src=&#8221;jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221; /&gt;&lt;/script&gt;</strong></p>
<p>Hence the first thing you must do is to download this JavaScript file.Visit <a href="http://docs.jquery.com/Downloading_jQuery" target="_blank">JQuery.com</a> to download the file.There are three versions of Jquery available-the Minified,Packaged and the Uncompressed version.We will be using the minified version in our snippets.</p>
<p>I guess it would be better to show an example to actually get a better understanding of JQuery.So we can move to our first JQuery script. We will create a cascading menu. .The source code is given below. See the <a href="http://www.three2tango.com/Jquery/1.html" target="_blank">demo</a></p>
<pre name="code" language="html">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Cascading Menu Using Jquery&lt;/title&gt;
&lt;style type="text/css"&gt;
ul
{
list-style:square inside url("arrow.gif");
}

&lt;/style&gt;
&lt;script src="jquery-1.3.2.min.js" type="text/javascript" /&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

$(document).ready(function(){
$('#carandbike').click(function(){
$('#carandbikecategory').toggle();&lt;!--the toggle() method is used to show the element when clicked and if it is hidden and to hide if is already visible --&gt;
});

$('#techcorner').click(function(){
$('#techcornercategory').toggle();
});

$('#thegame').click(function(){
$('#thegamecategory').toggle();
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table border="1"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a href="#" id="carandbike"&gt;Car and Bike Corner&lt;/a&gt;&lt;!--'#' is used so that you will remain in the same page--&gt;
&lt;ul id="carandbikecategory"&gt;
&lt;li&gt;Bike&lt;/li&gt;
&lt;li&gt;Car&lt;/li&gt;
&lt;li&gt;Gearless&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a href="#" id="techcorner"&gt;Tech Corner&lt;/a&gt;
&lt;ul id="techcornercategory"&gt;
&lt;li&gt;ASP.NET&lt;/li&gt;
&lt;li&gt;PHP&lt;/li&gt;
&lt;li&gt;JavaScript&lt;/li&gt;
&lt;li&gt;Tech Talk&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a href="#" id="thegame"&gt;The Game&lt;/a&gt;
&lt;ul id="thegamecategory"&gt;
&lt;li&gt;Cricket&lt;/li&gt;
&lt;li&gt;Formula 1&lt;/li&gt;
&lt;li&gt;MotoGp&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p> </p>
<p>To give it a better look,you can apply more CSS.Also we can add parameters to the methods to make it look even better.I am adding the parameter &#8216;slow&#8217; to the toggle() method.See What happens now-<a href="http://www.three2tango.com/Jquery/11.html" target="_blank">Demo</a></p>
<p>Just take the source of the page to get the complete code.Happy JQuering folks!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.three2tango.com/techcorner/simple-cascading-menu-using-jquery.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

