<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Fuzzy Outline</title>
      <link>http://www.fuzzyoutline.com/</link>
      <description></description>
      <language>en</language>
      <copyright>Copyright 2009</copyright>
      <lastBuildDate>Wed, 16 Dec 2009 16:24:52 +0000</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=3.2</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>Carousel</title>
         <description><![CDATA[<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	myCarousel = function() {
	
	 	var scrollContent = $("div.inner-cont ul");
 		var pixelShift = 0;
 		var liCount = $("div.inner-cont ul li").size();
 		var marginVal = 158;
 		var rightLink = $("div.rot-cont a.right");
 		var leftLink = $("div.rot-cont a.left");

 		rightLink.click(function() {
 			var liTotalCount = 0 - liCount * marginVal;
 			var stopCount = liTotalCount + marginVal;
 			if (pixelShift != stopCount) {
 				pixelShift = pixelShift - marginVal;
 				scrollContent.animate({'left': pixelShift + 'px'}, 'slow');
 				return false;
 			}
 			else {
 				return false;
 			}
 		});

 		leftLink.click(function(event) {
 			if (pixelShift != 0) {
 				pixelShift = pixelShift + marginVal;
 				scrollContent.animate({'left': pixelShift + 'px'}, 'slow');
 				return false;
 			}
 			else {
 				return false;
 			}
 		});
	}
	
	myCarousel();	

 });
</script>

<style type="text/css">
div.rot-cont {
	-moz-border-radius-bottomleft:8px;
	-moz-border-radius-bottomright:8px;
	-moz-border-radius-topleft:8px;
	-moz-border-radius-topright:8px;
	background: #ddd;
	border: 1px solid #aaa;
	height: 150px;
	margin-bottom: 30px;
	width: 180px;
}

div.rot-cont div.inner-cont {
	background: #fff;
	border: 1px solid #bbb;
	height: 100px;
	margin: 10px;
	overflow: hidden;
	position: relative;
	width: 158px;
}

div.rot-cont a.left {
	float: left;
	margin-left: 10px;
}

div.rot-cont a.right {
	float: right;
	margin-right: 10px;
}

div.rot-cont div.inner-cont ul {
	list-style: none;
	position: absolute;
	padding: 0px;
	margin: 0px;
	width: 10000px;
}

div.rot-cont div.inner-cont ul li {
	background: #980311;
	color: #fff;
	float: left;
	font-size:3em;
	height: 70px;
	margin: 10px;
	padding-top: 10px;
	text-align: center;
	width: 138px;
}

pre {
	background: #ddd;
	color: #000;
	font-size: 1.1em;
	overflow: scroll;
}

</style>

<p>Here is a little javascript/jQuery carousel I knocked up this morning. <a href="http://www.webstandardsdesign.co.uk/Jquery/">It's an extension of something I put together for a recent project, seen here in dev form</a>. Today I put the functionality in to stop the click function at the beginning and the of the list of carousel items. I thought I'd note it down here.</p>

<div class="rot-cont">
	<div class="inner-cont">
		<ul>
			<li>One</li>
			<li>Two</li>
			<li>Three</li>
			<li>Four</li>
			<li>Five</li>
			<li>Six</li>
			<li>Seven</li>
			<li>Eight</li>
			<!-- <li>Nine</li>
			<li>Ten</li> -->
		</ul>
	</div>
	<a href="#" class="left">Count down</a><a href="#" class="right">Count up</a>
</div>
Source of the javascript:
<pre>
1  $(function() {
2	
3  myCarousel = function() {
4		
5 	var scrollContent = $("div.inner-cont ul"); <span style="background: #555; color: yellow">//the content to be scrolled</span>
6	var pixelShift = 0;
7	var liCount = $("div.inner-cont ul li").size();<span style="background: #555; color: yellow"> //count the number of list items</span>
8	var marginVal = 158;
9	var rightLink = $("div.rot-cont a.right");
10	var leftLink = $("div.rot-cont a.left");
11
12	rightLink.click(function() {
13		var liTotalCount = 0 - liCount * marginVal; <span style="background: #555; color: yellow">//total length in pixels, in this case 158 x the number of list items, subtracted from zero, this is to store the variable as a number not a string</span>
14		var stopCount = liTotalCount + marginVal; <span style="background: #555; color: yellow">//add one width to the total, so that we stop on the last list item</span>
15		if (pixelShift != stopCount) {
16			pixelShift = pixelShift - marginVal; <span style="background: #555; color: yellow">//shift by 158px on every click</span>
17			scrollContent.animate({'left': pixelShift + 'px'}, 'slow'); <span style="background: #555; color: yellow">//animate the shift</span>
18			return false; <span style="background: #555; color: yellow">//disable the anchor</span>
19		}
20		else {
21			return false; <span style="background: #555; color: yellow">//else (we're at the end), disable the anchor and do nothing</span>
22		}
23	});
24
25	leftLink.click(function(event) { <span style="background: #555; color: yellow">//same again, but for the count down link</span>
26		if (pixelShift != 0) {
27			pixelShift = pixelShift + marginVal;
28			scrollContent.animate({'left': pixelShift + 'px'}, 'slow');
29			return false;
30		}
31		else {
32			return false;
33		}
34	});
35 }
36	
37 myCarousel();
38
39 });
</pre>

<p>It uses a variable (marginVal) for the list item width in pixels (this should match the width in the CSS), so ultimately it can have as many or as few list items to scroll through as you like.</p>

<p>I can't be bothered to pick it apart any further, the comments should explain enough, and <a href="http://www.fuzzyoutline.com/2009/12/carousel_1.html">view the source of the post to see the HTML/CSS</a> but feel free to <a href="http://www.fuzzyoutline.com/contact.php">drop me a line if you have any questions or comments</a>.</p>

]]></description>
         <link>http://www.fuzzyoutline.com/2009/12/carousel_1.html</link>
         <guid>http://www.fuzzyoutline.com/2009/12/carousel_1.html</guid>
         <category>Code</category>
         <pubDate>Wed, 16 Dec 2009 16:24:52 +0000</pubDate>
      </item>
            <item>
         <title>Colour</title>
         <description><![CDATA[<p>So, I've had a tweak of the design...</p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/12/colour.html</link>
         <guid>http://www.fuzzyoutline.com/2009/12/colour.html</guid>
         <category>Design</category>
         <pubDate>Fri, 11 Dec 2009 09:06:18 +0000</pubDate>
      </item>
            <item>
         <title>Game</title>
         <description><![CDATA[<p>The new <a href="http://www.game.co.uk">Game</a> and <a href="http://www.gamestation.co.uk">Gamestation</a> websites went live last week. Another successful project completed.</p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/10/game.html</link>
         <guid>http://www.fuzzyoutline.com/2009/10/game.html</guid>
         <category>Design</category>
         <pubDate>Mon, 26 Oct 2009 14:13:13 +0000</pubDate>
      </item>
            <item>
         <title>Food</title>
         <description><![CDATA[<p>The <a href="http://uktv.co.uk/food">UKTV Food website</a> launched on monday, it was my last project while working with them at their offices on Great Portland Street. I miss working there, it's a great company that is bucking the trend in today's market and really going for it with some amazing and creative projects.</p>

<p>There are some lovely recipes on there too!</p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/06/food.html</link>
         <guid>http://www.fuzzyoutline.com/2009/06/food.html</guid>
         <category>Design</category>
         <pubDate>Wed, 24 Jun 2009 14:05:59 +0000</pubDate>
      </item>
            <item>
         <title>#westhamwednesday</title>
         <description><![CDATA[<p><a href="http://www.webstandardsdesign.co.uk/westhamwednesday"><img src="/images/whw.png" width="480" height="80" /></a></p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/06/westhamwednesday.html</link>
         <guid>http://www.fuzzyoutline.com/2009/06/westhamwednesday.html</guid>
         <category>Design</category>
         <pubDate>Wed, 03 Jun 2009 21:59:59 +0000</pubDate>
      </item>
            <item>
         <title>Wallpaper</title>
         <description><![CDATA[<p>iPhone wallpaper:</p>

<p><img src="/images/west-ham.jpg" width="320" height="480" alt="West Ham iphone wallpaper" style="margin: 0 0 0 80px" /></p>

<p>To save the image, Windows users - right click > Save as, and Mac users - right click > Save image as...</p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/05/wallpaper.html</link>
         <guid>http://www.fuzzyoutline.com/2009/05/wallpaper.html</guid>
         <category></category>
         <pubDate>Mon, 11 May 2009 09:40:36 +0000</pubDate>
      </item>
            <item>
         <title>#cv140</title>
         <description><![CDATA[<p>Last night on Twitter Andy, (<a href="http://www.twitter.com/Andyqsmith">@Andyqsmith</a>) wondered if it was possible to condense your resume down to 140 characters. </p>

<p>Here is my attempt: </p>

<p><kbd>Ed: BA Hons Design/12yrs exp web dev. Prev: Dell/Tesco/Arcadia/UKTV. Skills: XHTML/CSS/UI. Folio: http://www.fuzzyoutline.com/folio.html</kbd></p>

<p>I'm not sure it's <em>that</em> good to be honest, there were certainly better examples last night but I intend to work on it some more. And the general consensus last night was that it was cheating to have my URL in the Tweet, but I think that because my job is wholly internet based I can get away with it. I've also left 3 spaces at the end of my #cv140, it's only 137 characters long, so it can be re-tweeted with just <strong>RT:</strong></p>

<p>Get over to Twitter Search and enter the hashtag <a href="http://search.twitter.com/search?q=%23cv140">#cv140</a> and have a go.</p>

<p>Update: here are a couple of the other #cv140's:</p>

<p>@Andyqsmith: <br />
<kbd>#cv140 PeopleManager/Motivator,RunProjects,Unusual/Innovative fixes for Tech/NonTech challenges,Big picture thinker,Any industry,I'mgdbuyme</kbd></p>

<p>@emmey<br />
<kbd>#cv140 System coordinator, degree educated, pc & communications skills seeking to excel in software application management. Refs on request.</kbd></p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/04/cv140.html</link>
         <guid>http://www.fuzzyoutline.com/2009/04/cv140.html</guid>
         <category></category>
         <pubDate>Wed, 22 Apr 2009 19:29:35 +0000</pubDate>
      </item>
            <item>
         <title>Drupal</title>
         <description><![CDATA[<p>I've downloaded <a href="http://drupal.org/drupal-6.10">Drupal 6.10</a> for investigative purposes and have been impressed by the ease of installation.</p>

<p>After unpacking and configuring <a href="http://www.mamp.info/">MAMP</a>, I simply ran the install.php file and I was up and running in minutes, very straightforward. So far I've been digging around in the markup mostly, but have also taken a quick look at the user rights and privileges and also at a few of the themes to see how they're put together. </p>

<p>I also like the abstract way that the modules seem to be used and re-used around the site. I've only scratched the surface here, but am looking forward to looking into it further.</p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/04/drupal.html</link>
         <guid>http://www.fuzzyoutline.com/2009/04/drupal.html</guid>
         <category></category>
         <pubDate>Wed, 22 Apr 2009 09:15:43 +0000</pubDate>
      </item>
            <item>
         <title>Creative</title>
         <description><![CDATA[<p><img src="/webstandardsdesign-design.jpg" width="482" height="251" alt="Web Standards Design idea" /></p>

<p>I was feeling a little creative, so I put this together from a <a href="http://webdesignledger.com/tutorials/14-most-impressive-photoshop-typography-effects">tutorial on a design site</a>.</p>

<p>I might build on the idea and put a new design together for my <a href="http://www.webstandardsdesign.co.uk">Web Standards Design</a> site, but I also might not. </p>

<p>As you were.</p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/04/creative.html</link>
         <guid>http://www.fuzzyoutline.com/2009/04/creative.html</guid>
         <category>Design</category>
         <pubDate>Thu, 02 Apr 2009 21:16:04 +0000</pubDate>
      </item>
            <item>
         <title>Vegas</title>
         <description><![CDATA[<p>And here is the street view of the Las Vegas wedding chapel that we got married in, nearly 5 years ago now!</p>

<p><iframe width="425" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps/sv?cbp=12,80.51030639002066,,0,-7.955854126679464&amp;cbll=36.15637,-115.14901&amp;panoid=&amp;v=1&amp;hl=en&amp;gl=uk"></iframe><br /><small><a href="http://maps.google.co.uk/maps?f=q&amp;source=embed&amp;hl=en&amp;q=1205+Las+Vegas+Blvd+S,+Las+Vegas,+Clark,+Nevada+89104,+United+States&amp;sll=36.176094,-115.136236&amp;sspn=0.006331,0.011179&amp;ie=UTF8&amp;cd=1&amp;geocode=FYS0JwIdw_ci-Q&amp;split=0&amp;ll=36.166775,-115.144615&amp;spn=0.000818,0.001397&amp;t=h&amp;z=14&amp;iwloc=addr&amp;layer=c&amp;cbll=36.15637,-115.14901&amp;panoid=KgUCpiWSlvVuvEOjsYbzgw&amp;cbp=12,80.51030639002066,,0,-7.955854126679464" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/03/vegas.html</link>
         <guid>http://www.fuzzyoutline.com/2009/03/vegas.html</guid>
         <category></category>
         <pubDate>Fri, 20 Mar 2009 09:44:23 +0000</pubDate>
      </item>
            <item>
         <title>Clearwater Beach</title>
         <description><![CDATA[<p>Another hostel from the Florida leg of our travels, down in Clearwater Beach, Florida.</p>

<p><iframe width="425" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps/sv?cbp=12,257.9821800376754,,0,-0.5278310940499048&amp;cbll=27.98604,-82.824218&amp;panoid=&amp;v=1&amp;hl=en&amp;gl=uk"></iframe><br /><small><a href="http://maps.google.co.uk/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=606+Bay+Esplanade,+Clearwater,+FL+33767,+USA&amp;sll=28.545744,-81.369862&amp;sspn=0.000861,0.001397&amp;ie=UTF8&amp;ll=27.997206,-82.820005&amp;spn=0.001788,0.002795&amp;t=h&amp;z=14&amp;iwloc=addr&amp;layer=c&amp;cbll=27.98604,-82.824218&amp;panoid=yDgcZTXtapgaJ89cXNeYxw&amp;cbp=12,257.9821800376754,,0,-0.5278310940499048" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/03/clearwater_beach.html</link>
         <guid>http://www.fuzzyoutline.com/2009/03/clearwater_beach.html</guid>
         <category></category>
         <pubDate>Fri, 20 Mar 2009 09:27:14 +0000</pubDate>
      </item>
            <item>
         <title>Orlando</title>
         <description><![CDATA[<p>I've been looking at this a while, but it's about time I logged it all somewhere...</p>

<p>This is (or was) a hostel back in '94, and Paula and I stayed there with our Aussie travel mates during the Florida leg of our travels.</p>

<p><iframe width="425" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps/sv?cbp=12,133.1531436874732,,0,-3.8099808061420353&amp;cbll=28.545744,-81.369933&amp;panoid=&amp;v=1&amp;hl=en&amp;gl=uk"></iframe><br /><small><a href="http://maps.google.co.uk/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=orlando&amp;sll=27.985955,-82.824206&amp;sspn=0.001788,0.002795&amp;ie=UTF8&amp;ll=28.562813,-81.360197&amp;spn=0.000861,0.001397&amp;t=h&amp;z=14&amp;iwloc=addr&amp;layer=c&amp;cbll=28.545744,-81.369933&amp;panoid=RzRglZKyWGDNEfe4eaQctg&amp;cbp=12,133.1531436874732,,0,-3.8099808061420353" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/03/orlando.html</link>
         <guid>http://www.fuzzyoutline.com/2009/03/orlando.html</guid>
         <category></category>
         <pubDate>Fri, 20 Mar 2009 09:24:15 +0000</pubDate>
      </item>
            <item>
         <title>Widget</title>
         <description><![CDATA[<p>I've been having some trouble getting a Mac Dashboard widget I've been working on to install.</p>

<p>It turns out that you need to have an image of the entire Widget saved as Default.png in the package. This image is shown if your widget is taking time to load. In the <a href="http://developer.apple.com/macosx/Dashboard.html">Widget Development Documentation</a> it seems to fail to tell you this one small point and I <a href="http://www.neuroticgeeks.com/archives/51">had to find it elsewhere</a>.</p>

<p>Anyway, I've got the basic prototype working, and I would upload it here for all to look at, but it seems as though Movable Type disagrees with the .wdgt file extension...</p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/03/widget.html</link>
         <guid>http://www.fuzzyoutline.com/2009/03/widget.html</guid>
         <category>Mac</category>
         <pubDate>Fri, 13 Mar 2009 10:14:03 +0000</pubDate>
      </item>
            <item>
         <title>Frameworks</title>
         <description><![CDATA[<p>There are a whole host of CSS frameworks available these days, I thought I'd list some of the more popular ones:</p>

<ul>
	<li><a href="http://960.gs/">The 960 Grid System</a></li>
	<li><a href="http://www.blueprintcss.org/">Blueprint CSS</a></li>
	<li><a href="http://developer.yahoo.com/yui/grids/">YUI Grids</a></li>
	<li><a href="http://csswizardry.com/typogridphy/">Typogridphy</a></li>
</ul>]]></description>
         <link>http://www.fuzzyoutline.com/2009/03/frameworks.html</link>
         <guid>http://www.fuzzyoutline.com/2009/03/frameworks.html</guid>
         <category></category>
         <pubDate>Tue, 03 Mar 2009 14:40:15 +0000</pubDate>
      </item>
            <item>
         <title>SVN</title>
         <description><![CDATA[<p>I'm using <a href="http://code.google.com">Google Code</a> for an online <a href="http://subversion.tigris.org/">SVN</a> repository. It's pretty flexible, and although there are plenty of free repositories out there I thought that Google's simplicity was a winner.</p>

<p>It's great to have peace of mind that code updates are stored remotely, so clients code is backed up safely. It's also very useful for projects with more than one developer working on the same code at the same time using Subversions usual tools.<br />
</p>]]></description>
         <link>http://www.fuzzyoutline.com/2009/01/svn.html</link>
         <guid>http://www.fuzzyoutline.com/2009/01/svn.html</guid>
         <category></category>
         <pubDate>Sat, 31 Jan 2009 15:59:17 +0000</pubDate>
      </item>
      
   </channel>
</rss>
