<?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>SEOAdsenseThemes.com &#187; jQuery</title>
	<atom:link href="http://www.seoadsensethemes.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seoadsensethemes.com</link>
	<description>Search Engine Optimized (SEO), Adsense-Ready Free WordPress Themes</description>
	<lastBuildDate>Wed, 25 Aug 2010 06:11:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress Multi-Level Drop Down menu using jQuery</title>
		<link>http://www.seoadsensethemes.com/wordpress-multi-level-drop-down-menu-using-jquery/</link>
		<comments>http://www.seoadsensethemes.com/wordpress-multi-level-drop-down-menu-using-jquery/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 14:53:28 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Dropdown Menu]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.seoadsensethemes.com/?p=23</guid>
		<description><![CDATA[
Click here to view demo
As WordPress theme designers, we&#8217;re often faced between the choice of going for purely CSS drop-down menu or javascript drop-down menus in our struggle with cross-browser compatibility.
The aim of this short tutorial is help you build a simple multi-level drop-down menu in your WordPress theme using jQuery&#8217;s JavaScript library to ensure [...]]]></description>
			<content:encoded><![CDATA[<p style="float: right; margin: 0 0 1em 2em; padding: 18px 28px; border: 3px double #ddd; background: #f8f8f8;"><img class="size-full wp-image-27" title="WordPress jQuery Multi-Level Drop-Down Menu" src="http://www.seoadsensethemes.com/wp-content/uploads/2008/08/wordpress-jquery-multi-level-drop-down-menu.png" alt="WordPress jQuery Multi-Level Drop-Down Menu" width="252" height="117" /><a href="http://www.seoadsensethemes.com/wordpress-jquery-multi-level-drop-down-menus/"><br />
Click here to view demo</a></p>
<p>As WordPress theme designers, we&#8217;re often faced between the choice of going for purely CSS drop-down menu or javascript drop-down menus in our struggle with cross-browser compatibility.</p>
<p>The aim of this short tutorial is help you build a simple multi-level drop-down menu in your WordPress theme using jQuery&#8217;s JavaScript library to ensure cross-browser compatibility.</p>
<p><span id="more-23"></span>When I first started to design WordPress themes, I went the pure-CSS way. I found a variety of cross-browser CSS-only drop-down menus at Stu Nicholls CSS Play and implemented his solutions into my themes. Some people do not like the way Stu hacked CSS to ensure cross-browser compatibility. It may be ugly but it works. And you can&#8217;t really use WordPress wp_list_pages() tag with Stu Nicholl&#8217;s CSS because the tag&#8217;s parameters could not reproduce the CSS hacks needed to make it work.</p>
<p>Later on, as I started to embrace more JavaScript in my WordPress themes, I decided to built my drop-down menu with a bit of jQuery Javascript help. It saved a lot of effort. No more unnecessary CSS hacks. Plays nice with WordPress <code>wp_list_pages()</code> tag. And WordPress installation already comes with jQuery library included. This is one of the main reasons why I chose jQuery among other Javascript libraries.</p>
<p>Anyway, I&#8217;m not here to convince you to use JavaScript for your WordPress drop-down menus. To those of you who are would like to use jQuery for your multi-level WordPress drop-down menu, I hope you&#8217;ll find the short tutorial below helpful.</p>
<p>Add this bit of JavaScript between the <code>&lt;head&gt;&lt;/head&gt;</code> HTML tags in your WordPress theme&#8217;s  <code>header.php</code> (<em>thanks to <a href="http://www.kriesi.at/archives/create-a-multilevel-dropdown-menu-with-css-and-improve-it-via-jquery">kriesi.at</a></em>):</p>
<pre class="syntax-highlight:javascript">
&lt;?php wp_enqueue_script(&#039;jquery&#039;); ?&gt;

&lt;script type=&#039;text/javascript&#039;&gt;
jQuery(document).ready(function() {
jQuery(&quot;#dropmenu ul&quot;).css({display: &quot;none&quot;}); // Opera Fix
jQuery(&quot;#dropmenu li&quot;).hover(function(){
jQuery(this).find(&#039;ul:first&#039;).css({visibility: &quot;visible&quot;,display: &quot;none&quot;}).show(268);
},function(){
jQuery(this).find(&#039;ul:first&#039;).css({visibility: &quot;hidden&quot;});
});
});
&lt;/script&gt;
</pre>
<p>The HTML. We will list the pages using WordPress default <code>wp_list_pages()</code> tag. I used it in <code>header.php</code> of my WordPress theme:</p>
<pre class="syntax-highlight:html">
&lt;ul id=&quot;dropmenu&quot;&gt;
&lt;?php wp_list_pages(&#039;sort_column=menu_order&amp;amp;amp;amp;title_li=&#039;); ?&gt;
&lt;/ul&gt;
</pre>
<p>Now here&#8217;s the CSS:</p>
<pre class="syntax-highlight:css">
&lt;style type=&quot;text/css&quot;&gt;
#dropmenu, #dropmenu ul {margin:0; padding:0; list-style-type:none; list-style-position:outside; position:relative; line-height:1.5em; z-index:300; width:100%; background:#fff; font-weight:bold;}
#dropmenu a {display:block; padding:0.25em 1em; color:#686868; border-right:1px solid #c8c8c8; text-decoration:none; background:#fff;}
#dropmenu a:hover {background:#888; color:#fff;}
#dropmenu li {float:left; position:relative;}
#dropmenu ul {position:absolute; display:none; width:12em; top:1.9em; left:-1px;}
#dropmenu ul a {border-left:1px solid #c8c8c8;}
#dropmenu li ul {border-top:1px solid #c8c8c8; width:14.1em;}
#dropmenu li ul a {width:12em; height:auto; float:left;  border-bottom:1px solid #c8c8c8;}
#dropmenu ul ul {top:auto;}
#dropmenu li ul ul {left:12em; margin:0px 0 0 10px;}
#dropmenu li:hover ul ul, #dropmenu li:hover ul ul ul, #dropmenu li:hover ul ul ul ul {display:none;}
#dropmenu li:hover ul, #dropmenu li li:hover ul, #dropmenu li li li:hover ul, #dropmenu li li li li:hover ul {display:block;}
&lt;/style&gt;
</pre>
<p>The CSS styling provided is pretty much barebones. You can view another <a title="WordPress jQuery Multi-Level Drop-Down Menu Demo" href="http://www.hotelsandtravel.org" target="_blank">demo of WordPress jQuery Multi-Level Drop-Down Menu</a> in action here.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 731px; width: 1px; height: 1px; overflow: hidden;">Need quick results? Then go through our latest &lt;a href=&#8221;http://www.testking.com/117-101.htm&#8221;&gt;testking 117-101&lt;/a&gt; preparation material which includes &lt;a href=&#8221;http://www.testking.com/156-215.htm&#8221;&gt;testking 156-215&lt;/a&gt; dumps and &lt;a href=&#8221;http://www.testking.com/1Y0-259.htm&#8221;&gt;testking 1Y0-259&lt;/a&gt; practice exam so you will pass exam on first try.</div>
<hr />
<p style="text-align:center; padding:2em 0; font-size:0.9em; font-style:italic; border-top:1px solid #dfdfdf; margin:2em 0 0 0; ">Need quick results? Then go through our latest <a href="http://www.testking.com/117-101.htm">testking 117-101</a> preparation material which includes <a href="http://www.testking.com/156-215.htm">testking 156-215</a> dumps and <a href="http://www.testking.com/1Y0-259.htm">testking 1Y0-259</a> practice exam so you will pass exam on first try.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoadsensethemes.com/wordpress-multi-level-drop-down-menu-using-jquery/feed/</wfw:commentRss>
		<slash:comments>95</slash:comments>
		</item>
	</channel>
</rss>
