<?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>blog - coda.coza &#187; drop down</title>
	<atom:link href="/blog/tag/drop-down/feed" rel="self" type="application/rss+xml" />
	<link>http://coda.co.za/blog</link>
	<description>dress up. leave a false name. be legendary.</description>
	<lastBuildDate>Thu, 23 Jun 2011 05:01:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>query.dropSlideMenu.js</title>
		<link>http://coda.co.za/blog/2009/07/24/dropslidemenu</link>
		<comments>http://coda.co.za/blog/2009/07/24/dropslidemenu#comments</comments>
		<pubDate>Fri, 24 Jul 2009 21:08:53 +0000</pubDate>
		<dc:creator>coda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blind]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[drop down]]></category>
		<category><![CDATA[dropslidemenu]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://coda.co.za/blog/?p=1014</guid>
		<description><![CDATA[dropSlideMenu is my attempt at building a simple (single-level support only), yet easily and highly-customisable drop-down menu with an attractive sliding effect.
query.dropSlideMenu.js v1.0 - View Demo or Download

There are plenty of jQuery drop-down menu scripts already available, but I often find that they're either too basic, or too complicated and bulky, or don't support a [...]]]></description>
			<content:encoded><![CDATA[<p>dropSlideMenu is my attempt at building a simple (single-level support only), yet easily and highly-customisable drop-down menu with an attractive sliding effect.</p>
<p><strong>query.dropSlideMenu.js</strong> v1.0 - <a href="/content/projects/jquery.dropSlideMenu/">View Demo</a> or <a href="/content/projects/jquery.dropSlideMenu/jquery.dropSlideMenu.zip">Download</a></p>
<p><a href="/content/projects/jquery.dropSlideMenu/"><img src="/blog/wp-content/uploads/2009/07/dropslidemenu.png" alt="query.dropSlideMenu.js" width="474" height="191" /></a></p>
<p>There are <em>plenty</em> of jQuery drop-down menu scripts already available, but I often find that they're either too basic, or too complicated and bulky, or don't support a proper sliding effect (instead the menus simply change height as they're revealed).</p>
<p>I'm publishing this script with the hope that others might find it useful. Hopefully as it gains popularity, so will the potential for it to improve. Also, I've developed this plugin partly as a jQuery learning exercise. So if you do find yourself downloading and using it, and you're proficient with JavaScript, I would really appreciate if you could spend a minute or two reviewing my code and providing suggestions for improvement.</p>
<h3>Features include:</h3>
<ul>
<li>Requires the mouse cursor to decelerate over the menu before activating, to prevent unintentional opening (big thanks to <a href="http://blog.threedubmedia.com">threedubmedia</a> for their <a href="http://blog.threedubmedia.com/2008/08/eventspecialhover.html">jquery.event.hover</a> plugin)</li>
<li>Dynamic styling of clickstream (path of links are compared with path of the current URL) - optional</li>
<li>Possible to set widths on each list item and its drop down</li>
<li>Possible to individually style each list item and its drop down</li>
<li>List items with no link behaviour (where href is "#") are disabled</li>
<li>Settings to control the duration (speed of drop down animation), and delay (before the drop down closes)</li>
<li>Select elements are hidden (IE6) - optional</li>
<li>Customisable <a href="http://docs.jquery.com/UI/Effects/AdvancedEasing">Easing Effects</a></li>
<li>W3C-valid HTML and CSS</li>
</ul>
<p>To begin, <a href="/content/projects/jquery.dropSlideMenu/jquery.dropSlideMenu.zip">download the source files</a> (.zip) and browse the <a href="view-source:http://coda.co.za/content/projects/jquery.dropSlideMenu/">demo source code</a> to familiarise yourself with the necessary files required, and the way in which they fit together. Assuming you already have the most recent version of jQuery, the JavaScript and CSS files that need to be included in your page are:</p>
<pre>&lt;link rel="stylesheet" href="jquery.dropSlideMenu.css" type="text/css" /&gt;

&lt;script src="jquery-ui-1.7.2.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="jquery.event.hover.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="jquery.dropSlideMenu.js" type="text/javascript"&gt;&lt;/script&gt;</pre>
<p>To attach the plugin to a menu, include the following jQuery script in your page (in this example, #navigation is the menu wrapper):</p>
<pre>$(document).ready(function() {
	$("#navigation").dropSlideMenu({
		indicators: true,
		clickstream: true,
		openEasing: "easeOutQuad",
		closeEasing: "easeInQuad",
		duration: 600,
		delay: 800,
		hideSelects: true
	});
});</pre>
<p>The settings are fairly self-explanatory. I'm not going to go into more detail as I assume you know what you're doing with jQuery and CSS. If you do require further assistance, please leave a comment below - I can't guarantee that I'll be able to help, but I do make an attempt to reply to all comments.</p>
<p>The most recent version of this plugin will always be the one available for download on this post.</p>
<p>Please let me know if you decide to use it, or have any feedback. Thanks!</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/"><img src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" alt="Creative Commons License" /></a></p>
<img src="/blog/?ak_action=api_record_view&id=1014&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://coda.co.za/blog/2009/07/24/dropslidemenu/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

