<?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>Morrow Studios - personal site of Chris Morrow, Interactive Developer &#187; CSS</title>
	<atom:link href="http://www.morrowstudios.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.morrowstudios.com</link>
	<description>a place for me to &#60;span class="strike"&#62;show off&#60;/span&#62; &#60;span class="afterStrike"&#62;share my work&#60;/span&#62;&#60;span class="indent"&#62;- Chris Morrow&#60;/span&#62;</description>
	<lastBuildDate>Thu, 14 Jul 2011 21:42:37 +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>Dynamic Document Icons using jQuery</title>
		<link>http://www.morrowstudios.com/2011/07/14/dynamic-document-icons-using-jquery/</link>
		<comments>http://www.morrowstudios.com/2011/07/14/dynamic-document-icons-using-jquery/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 20:39:26 +0000</pubDate>
		<dc:creator>cmorrow</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.morrowstudios.com/?p=50</guid>
		<description><![CDATA[I recently worked on a wiki at work and wanted to create document icons for links to files without manually adding classes to every link. Enter jQuery&#8230; and voila! Word Document Excel Document PowerPoint Document PDF Document Zip File Link The html looks like this: &#60;ul id=&#34;docsList&#34;&#62; &#160;&#160;&#60;li&#62;&#60;a href=&#34;#document.doc&#34;&#62;Word Document&#60;/a&#62;&#60;/li&#62; &#160;&#160;&#60;li&#62;&#60;a href=&#34;#Excel-file.xls&#34;&#62;Excel Document&#60;/a&#62;&#60;/li&#62; &#160;&#160;&#60;li&#62;&#60;a href=&#34;#Powerpoint-pres.ppt&#34;&#62;PowerPoint [...]]]></description>
			<content:encoded><![CDATA[<p>I recently worked on a wiki at work and wanted to create document icons for links to files without manually adding classes to every link.</p>
<p>Enter jQuery&#8230; and voila!</p>
<ul id="docsList">
<li><a class="doc" href="#document.doc">Word Document</a></li>
<li><a href="#Excel-file.xls">Excel Document</a></li>
<li><a href="#Powerpoint-pres.ppt">PowerPoint Document</a></li>
<li><a href="#somefile.pdf">PDF Document</a></li>
<li><a href="#Archive.zip">Zip File Link</a></li>
</ul>
<h3>The html looks like this:</h3>
<p><pre><code>
&lt;ul id=&quot;docsList&quot;&gt;
&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#document.doc&quot;&gt;Word Document&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#Excel-file.xls&quot;&gt;Excel Document&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#Powerpoint-pres.ppt&quot;&gt;PowerPoint Document&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#somefile.pdf&quot;&gt;PDF Document&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#Archive.zip&quot;&gt;Zip File Link&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre></p>
<h3>The Javascript looks like this:</h3>
<p><pre><code>
jQuery(document).ready(function() {
$(&#039;.docs a&#039;).attr(&#039;href&#039;);
// Word doc
$(&#039;a[href$=&quot;.doc&quot;]&#039;).addClass(&#039;doc&#039;);
$(&#039;a[href$=&quot;.docx&quot;]&#039;).addClass(&#039;doc&#039;);
$(&#039;a[href$=&quot;.docm&quot;]&#039;).addClass(&#039;doc&#039;);
// Excel
$(&#039;a[href$=&quot;.xls&quot;]&#039;).addClass(&#039;excel&#039;);
$(&#039;a[href$=&quot;.xlsx&quot;]&#039;).addClass(&#039;excel&#039;);
$(&#039;a[href$=&quot;.xlsm&quot;]&#039;).addClass(&#039;excel&#039;);
$(&#039;a[href$=&quot;.xltx&quot;]&#039;).addClass(&#039;excel&#039;);
// PowerPoint
$(&#039;a[href$=&quot;.ppt&quot;]&#039;).addClass(&#039;ppt&#039;);
$(&#039;a[href$=&quot;.pptx&quot;]&#039;).addClass(&#039;ppt&#039;);
$(&#039;a[href$=&quot;.potx&quot;]&#039;).addClass(&#039;ppt&#039;);
$(&#039;a[href$=&quot;.potm&quot;]&#039;).addClass(&#039;ppt&#039;);
// PDF
$(&#039;a[href$=&quot;.pdf&quot;]&#039;).addClass(&#039;pdf&#039;);
// ZIP
$(&#039;a[href$=&quot;.zip&quot;]&#039;).addClass(&#039;zip&#039;);
});</code></pre></p>
<h2>Source code :</h2>
<p><a href="/downloads/docIcons-jquery.zip">Dynamic Document Icons (source code)</a></p>
<p><script src="/scripts/doc-icons.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.morrowstudios.com/2011/07/14/dynamic-document-icons-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Plugin: jQuery-YouTubePlaylist</title>
		<link>http://www.morrowstudios.com/2010/02/18/jquery-plugin-jquery-youtubeplaylist/</link>
		<comments>http://www.morrowstudios.com/2010/02/18/jquery-plugin-jquery-youtubeplaylist/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 06:44:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.morrowstudios.com/?p=8</guid>
		<description><![CDATA[While working on my current contract I ran across a great jQuery plugin for adding a YouTube playlist to your site, while maintaining SEO and compliant code using a simple unordered list. You can get the plugin from GeckoNewMedia. YouTube-Playlist Funny Crashes Prank Wars Apple &#8220;i&#8221; HTML Code is below &#60;div class=&#34;yt_holder&#34;&#62; &#60;h3&#62;YouTube-Playlist&#60;/h3&#62; &#60;div&#160;&#160;id=&#34;ytvideo&#34;&#62;&#60;/div&#62; &#60;ul [...]]]></description>
			<content:encoded><![CDATA[<p>While working on my current contract I ran across a great jQuery plugin for adding a YouTube playlist to your site, while maintaining SEO and compliant code using a simple unordered list. You can get the plugin from <a rel="external" href="http://www.geckonewmedia.com/blog/2009/8/14/jquery-youtube-playlist-plugin---youtubeplaylist">GeckoNewMedia</a>.</p>
<div class="yt_holder clearfix">
<h3>YouTube-Playlist</h3>
<div  id="ytvideo"></div>
<ul class="videos">
<li class="first"><a title="This is a video long description..." href="http://www.youtube.com/watch?v=OtF1JFNfCug">Funny Crashes</a></li>
<li><a href="http://www.youtube.com/watch?v=bI7AUgp5fPI">Prank Wars</a></li>
<li><a href="http://www.youtube.com/watch?v=Xgls9IwWUyU">Apple &#8220;i&#8221;</a></li>
</ul>
</div>
<p><!-- end yt_holder --></p>
<p><span id="more-8"></span></p>
<h4>HTML Code is below</h4>
<p><pre><code>
&lt;div class=&quot;yt_holder&quot;&gt;
&lt;h3&gt;YouTube-Playlist&lt;/h3&gt;
&lt;div&nbsp;&nbsp;id=&quot;ytvideo&quot;&gt;&lt;/div&gt;
&lt;ul class=&quot;videos&quot;&gt;
&nbsp;&nbsp;&lt;li class=&quot;first&quot;&gt;&lt;a title=&quot;This is a video long description...&quot; 
href=&quot;http://www.youtube.com/watch?v=OtF1JFNfCug&quot;&gt;Funny Crashes&lt;/a&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;http://www.youtube.com/watch?v=bI7AUgp5fPI&quot;&gt;Prank Wars&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;http://www.youtube.com/watch?v=Xgls9IwWUyU&quot;&gt;Apple &quot;i&quot;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;!-- end yt_holder --&gt;
</code></pre></p>
<h4>CSS Code is below</h4>
<p><pre><code>

.clearfix { zoom:1; }
.clearfix:after {
&nbsp;&nbsp;&nbsp;&nbsp;content: &quot;.&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;display: block;
&nbsp;&nbsp;&nbsp;&nbsp;height: 0;
&nbsp;&nbsp;&nbsp;&nbsp;clear: both;
&nbsp;&nbsp;&nbsp;&nbsp;visibility: hidden;
}
#ytvideo {
&nbsp;&nbsp;&nbsp;&nbsp;float: left;
&nbsp;&nbsp;&nbsp;&nbsp;margin-right:10px;
&nbsp;&nbsp;&nbsp;&nbsp;padding-right: 10px;
&nbsp;&nbsp;&nbsp;&nbsp;border-right: solid 1px #999;
}

.yt_holder {
&nbsp;&nbsp;&nbsp;&nbsp;background: #ccc;
&nbsp;&nbsp;&nbsp;&nbsp;padding: 0 10px 10px;
&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid #e3e3e3;
&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom:15px;
}

.yt_holder h3 {
&nbsp;&nbsp;margin:0; padding:5px 0; background: #ccc; font-weight:bold;
}

.yt_holder ul {
&nbsp;&nbsp;&nbsp;&nbsp;float: left;
&nbsp;&nbsp;&nbsp;&nbsp;margin: 0;
&nbsp;&nbsp;&nbsp;&nbsp;padding: 0;
&nbsp;&nbsp;&nbsp;&nbsp;width: 75px;
}

.yt_holder ul li {
&nbsp;&nbsp;&nbsp;&nbsp;list-style-type: none;
&nbsp;&nbsp;&nbsp;&nbsp;display:block;
&nbsp;&nbsp;&nbsp;&nbsp;float: left;
&nbsp;&nbsp;&nbsp;&nbsp;width: 130px;
&nbsp;&nbsp;&nbsp;&nbsp;overflow:hidden;
}

.yt_holder ul li img {
&nbsp;&nbsp;&nbsp;&nbsp;display:block;
&nbsp;&nbsp;&nbsp;&nbsp;width: 97px;
&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid #999;
}
.yt_holder ul li a {
&nbsp;&nbsp;&nbsp;&nbsp;padding: 5px 2px 5px 5px;
&nbsp;&nbsp;&nbsp;&nbsp;text-decoration: none;
&nbsp;&nbsp;&nbsp;&nbsp;display: block;
&nbsp;&nbsp;&nbsp;&nbsp;color: #000;
&nbsp;&nbsp;&nbsp;&nbsp;font-family:Arial;
&nbsp;&nbsp;&nbsp;&nbsp;font-size:11px;
&nbsp;&nbsp;&nbsp;&nbsp;border-top: solid 1px #999;
&nbsp;&nbsp;&nbsp;&nbsp;background:#e0e0e0;
}
.yt_holder ul li a:hover { background:#fff; color:#e4721c; }

.yt_holder ul li.first a {border: none; }

body .yt_holder ul li.currentvideo a {
&nbsp;&nbsp;background:#fff; font-weight:bold; color:#e4721c;
}
</code></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.morrowstudios.com/2010/02/18/jquery-plugin-jquery-youtubeplaylist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

