<?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>Theo Stråhlén &#187; plugin</title>
	<atom:link href="http://theodesign.se/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://theodesign.se</link>
	<description>The blog and portfolio of Theo Stråhlén. Currently a student at Hyper Island.</description>
	<lastBuildDate>Thu, 27 Jan 2011 21:05:24 +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>jQuery OSX Looking Dock</title>
		<link>http://theodesign.se/jquery-osx-looking-dock/</link>
		<comments>http://theodesign.se/jquery-osx-looking-dock/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 10:55:18 +0000</pubDate>
		<dc:creator>theo</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[jqdock]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[thexv]]></category>

		<guid isPermaLink="false">http://theodesign.se/?p=129</guid>
		<description><![CDATA[I am very interested of what jQuery can do and the plugins there is keeps impressing me. I saw the world cup site Twitter did and at the top they were using some kind of dock with the flags of &#8230; <a href="http://theodesign.se/jquery-osx-looking-dock/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://theodesign.se/jquery-osx-looking-dock"><img class="alignnone size-full wp-image-130" title="dock_pic" src="http://theodesign.se/wp-content/uploads/2010/06/dock_pic.jpg" alt="" width="660" height="234" /></a></p>
<p>I am very interested of what jQuery can do and the plugins there is keeps impressing me. I saw the <a href="http://twitter.com/worldcup" target="_blank">world cup site Twitter </a>did and at the top they were using some kind of dock with the flags of the teams. When I and Henrik Porseland were coding whatisxv.com we wanted a dock with students but the time ran out and we forgot about it.</p>
<p>But now I found <a href="http://www.wizzud.com/jqDock/" target="_blank">jqDock</a>! It&#8217;s very easy to use and i will show a very simple example here. You can do both horizontal and vertical dock menus and custom the looks of it very very easy. As I said before I wanted a dock menu with all the students in my class.<span id="more-129"></span></p>
<p><a href="http://whatisxv.com/html/dock.php" target="_blank">Take a look a the Demo I did</a></p>
<p>This is how I did it:<br />
First of all to use this wonderful plugin you need jQuery v1.2.3 or later. And then you can download the plugin <a href="http://www.wizzud.com/component/option,com_remository/Itemid,27/func,fileinfo/filecatid,64/parent,category/" target="_blank">here</a>.</p>
<p>Start with link the files in your &lt;head&gt; tag. Link in the jqDock source (full or compressed) after jQuery itself as in the example below:</p>
<pre>&lt;script type='text/javascript' src='jquery-1.2.3.min.js'&gt;&lt;/script&gt;
&lt;script type='text/javascript' src='jquery.jqDock.js'&gt;&lt;/script&gt;</pre>
<p>Create a div and put an ID or Class on it. Then fill it with images that you want in your dock menu. In my example:</p>
<pre>&lt;div id="dockmenu"&gt;
...
&lt;a href="#"&gt;&lt;img src="img/student.jpg" title="Student Name" alt="Student Name" /&gt;&lt;/a&gt;
&lt;a href="#"&gt;&lt;img src="img/student.jpg" title="Student Name" alt="Student Name" /&gt;&lt;/a&gt;
&lt;a href="#"&gt;&lt;img src="img/student.jpg" title="Student Name" alt="Student Name" /&gt;&lt;/a&gt;
...
&lt;/div&gt;</pre>
<p>To convert your HTML into a Dock, simply call the jqDock function.</p>
<pre>&lt;script type="text/javascript"&gt;
$(document).ready(function($)  {
	$('#dockmenu').jqDock({align:'bottom', size:65, labels:true});
});
&lt;/script&gt;</pre>
<p>This code will make the menu expand from the bottom and up and every picture will have a label on it. You can see it in my <a href="http://whatisxv.com/html/dock.php" target="_blank">example</a>.</p>
<p>It&#8217;s very easy to style your dock menu as well. Here is the CSS for my menu:</p>
<pre>div.jqDockWrap{margin:0 auto;}

div.jqDockLabel {color:#fff;background:#000; font-family:Myriad Pro; padding:4px;
font-size:11px;font-weight:normal;margin-top:-25px!important;white-space:nowrap;}

div.jqDockLabel a, a:hover, a:visited{color:#FFF; text-decoration:none;}

#dockmenu{clear:both;display:block;width:100%;position:absolute;text-align:center;
left:0; bottom:0px;}

#dockmenu img{padding:1px;float:left;display:block;}</pre>
<p>Good Luck creating your own dock menu with <a href="http://www.wizzud.com/jqDock/" target="_blank">jqDock</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://theodesign.se/jquery-osx-looking-dock/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

