<?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>A Love For Design » Web Design &#38; Graphic Design Tutorials</title>
	<atom:link href="http://www.alovefordesign.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alovefordesign.com</link>
	<description>Web Blog dedicated to web designers and graphic designers to share new ideas about web design.</description>
	<lastBuildDate>Fri, 18 May 2012 00:07:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create An Advanced Chinese Lantern Icon In Photoshop &amp; Illustrator</title>
		<link>http://www.alovefordesign.com/graphic-design/chinese-lantern-icon/</link>
		<comments>http://www.alovefordesign.com/graphic-design/chinese-lantern-icon/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 09:24:53 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.alovefordesign.com/?p=419</guid>
		<description><![CDATA[Learn how to create a realistic, unique looking Chinese style paper lantern with Adobe Photoshop and Illustrator.]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will be using Adobe Illustrator and Adobe Photoshop for our icon design. This tutorial is rated advanced for those who are beginners in these programs I would recommend checking out some of our easier tutorials to start out with. Our basic shapes will start out with illustrator then we can export them over to photoshop to polish, add texture and finalize our icon.<span id="more-419"></span></p>
<h3>This is what our final icon will look like.</h3>
<p><a href="/demos/chinese-lantern/lantern.jpg"><img src="/demos/chinese-lantern/lantern.jpg" alt="Final Icon Design" title="Chinese Lantern" /></a></p>
<p>So we&#8217;ll just dive right into it, fire up illustrator and create a new web document 800&#215;800 or whatever size you feel comfortable working with (These shapes can be resized later).</p>
<h3>Initial Sketch</h3>
<p>I initially started with a sketch idea with paper and pencil then scanned it and imported it into illustrator to get a basic outline of our icon. By doing this, it saves time from having to draw something from scratch on Illustrator. If you sketch something you don&#8217;t like just trash it and start over. The main rule is to never take over 10 minutes per sketch, their suppose to be quick drawings, just to get an idea of what I want.<br />
<img src="/demos/chinese-lantern/sketch.jpg" title="Initial Sketch" /></p>
<p>Now I know what kind of shape I want my lantern to take I can start using our shape tools to create the base of our lantern. I start with an ellipse tool <img class="ps-tool" src="/imgs/ps-tools/ellipse.jpg" align="absbottom"> to make the actual lantern shape, click and drag an oval shape and fill it with black for the time being.<br />
<img src="/demos/chinese-lantern/ss2.jpg" title="Ellipse Tool Used" width="300"  /> </p>
<p>After you&#8217;ve filled in your shape grab your pen tool <img src="/imgs/ps-tools/pentool.jpg" title="Pen Tool" align="absbottom" />, draw out the top metal handle of our lantern, fill it with black as well.<br />
<img src="/demos/chinese-lantern/ss3.jpg" title="Pen Tool Used" width="300" /></p>
<p>After you&#8217;ve created the top handle go ahead and duplicate the layer and then flip it upside down <em>Object > Transform</em><br />
<img src="/demos/chinese-lantern/ss4.jpg" title="Flip Horizontally" width="300" /><br />
<img src="/demos/chinese-lantern/ss5.jpg" title="Bottom Metal Piece" width="300" /></p>
<p>Now grab your rectangle tool <img src="/imgs/ps-tools/rectangletool.jpg" title="Rectangle Tool" align="absbottom" /> and draw a small vertical rectangle for our tassle. After, grab your ellipse tool <img class="ps-tool" src="/imgs/ps-tools/ellipse.jpg" align="absbottom"> again and draw a small circle for the ball on our tassle.<br />
<img src="/demos/chinese-lantern/ss6.jpg" title="Rectangle Tassle" width="300" /><img src="/demos/chinese-lantern/ss7.jpg" title="Ball Tassle" width="300" /></p>
<p>Moving on, grab your rounded corner tool <img src="/imgs/ps-tools/roundrectangletool.jpg" title="Rounded Rectangle Tool" align="absbottom" /> and change your rounded corner radius to <em>12px</em> and draw a small rectangle and select the bottom half with your direct selection tool <img src="/imgs/ps-tools/directselect.jpg" title="Direct Selection" align="absbottom" /> and delete them. After you&#8217;ve created the shape get your rectangle tool <img src="/imgs/ps-tools/rectangletool.jpg" title="Rectangle Tool" align="absbottom" /> again and create another vertical rectangle for the tassle strings.<br />
<img src="/demos/chinese-lantern/ss8.jpg" title="Top Tassle" width="300" /><br />
<img src="/demos/chinese-lantern/ss9.jpg" title="Tassle Strings" width="300" /></p>
<p>Now create the same shape you did for the top metal tassle (Just duplicate the same shape and make it a bit bigger). Duplicate the same layer and position it directly over the same shape but this time color it white, then horizontally resize it a bit smaller.<br />
<img src="/demos/chinese-lantern/ss10.jpg" title="Lantern Handle" width="300" /><br />
<img src="/demos/chinese-lantern/ss11.jpg" title="Lantern Handle" width="300" /></p>
<p>Now we&#8217;re going to remove the front so we get a nice unique shape for our handle. Open up your path finder box and hit the remove front button.<br />
<center><img src="/demos/chinese-lantern/ss12.jpg" title="Lantern Handle" width="400" align="center" /></center></p>
<p>Time to save your work (Although you should&#8217;ve already saved if your a good designer!). Now we&#8217;re going to export our work into photoshop to continue onto coloring and polishing it.</p>
<h3>Exporting Into Photoshop</h3>
<p>Doing this is super easy. Make sure you have Photoshop opened and create a new document. Select each item from Illustrator (one by one) and drag it over to your new palette in Photoshop. Now that we have all our pieces on Photoshop (you might have to put them back together) we can start coloring our lantern.</p>
<p>Select the top metal piece of of our lantern and apply a gradient effect &#8211; Here are the following colors chosen <font color="#cd733f">#cd733f</font>, <font color="#e4b848">#e4b848</font> and white. I repeated the colors in a way to make the metal look shiny and reflective. </p>
<p><center><a href="/demos/chinese-lantern/ss14.jpg" target="_blank"><img src="/demos/chinese-lantern/ss14-sm.jpg" title="Gradient Effect" width="400"  /></a><br />
<a href="/demos/chinese-lantern/ss14.5.jpg" target="_blank"><img src="/demos/chinese-lantern/ss14.5-sm.jpg" title="Gradient Effect" width="400" align="center" /></a></center></p>
<p>Here&#8217;s what you should get&#8230;<br />
<img src="/demos/chinese-lantern/ss13.jpg" title="Gradient Effect" width="300" /></p>
<p>Now we&#8217;re going to add texture to our metal piece to give it a more realistic look so go back into Illustrator and drag the same piece into Photoshop once again. Now goto <em>Filter > Noise > Add Noise</em> and use the settings below.</p>
<p><img src="/demos/chinese-lantern/ss16.jpg" title="Noise Effect" width="270" /><br />
<img src="/demos/chinese-lantern/ss15.jpg" title="Noise Effect" width="270" /></p>
<p>Select the layer to <em>Overlay</em> and set the <em>Opacity</em> to 10% and now you have a realistic looking gold metal! Now what you can do is duplicate these layers and flip them vertically and size them down for the bottom metal part.</p>
<p><img src="/demos/chinese-lantern/ss17.jpg" title="Noise Effect" width="270" /></p>
<p>Time to color the top handle part of our lantern. Use the same colors as used in the metal we just created.</p>
<p><center><a href="/demos/chinese-lantern/ss19.jpg" target="_blank"><img src="/demos/chinese-lantern/ss19-sm.jpg" title="Top Handle" width="400" /></a></center><br />
<img src="/demos/chinese-lantern/ss18.jpg" title="Top Handle" width="300" /></p>
<p>Now that we have the metal parts finished, we can move onto coloring the oval base where the main focus will be. Here are the colors used for the gradient: <font color="#f98526">#f98526</font> and <font color="#bf191d">#bf191d</font>. Now just add a <em>radial gradient</em> with the settings and colors below.</p>
<p><center><br />
<a href="/demos/chinese-lantern/ss21.jpg" target="_blank"><img src="/demos/chinese-lantern/ss21-sm.jpg" title="Lantern Gradient" width="400" /></a><br />
</center></p>
<p>Here&#8217;s what it should look like&#8230;<br />
<img src="/demos/chinese-lantern/ss20.jpg" title="Lantern Gradient" width="300" /></p>
<p>Now we&#8217;re going to color the tassel metal pieces. Just use two different grays, Ill let you pick which ones you want to do. The higher the contract between the grays the more shiney it can seem but don&#8217;t go too far or it&#8217;ll look unrealistic. We&#8217;re also going to color the tassel&#8217;s ball with a yellow gradient.</p>
<p><center><br />
<a href="/demos/chinese-lantern/ss23.jpg" target="_blank"><img src="/demos/chinese-lantern/ss23-sm.jpg" title="Gray Metal Gradient" width="400" /></a><br />
<a href="/demos/chinese-lantern/ss25.jpg" target="_blank"><img src="/demos/chinese-lantern/ss25-sm.jpg" title="Yellow Tassel" width="400" /></a><br />
</center></p>
<p><img src="/demos/chinese-lantern/ss24.jpg" title="Example" width="300" /></p>
<p>Add yellow to our tassel.<br />
<img src="/demos/chinese-lantern/ss26.jpg" title="Add Yellow To Tassel" width="300" /></p>
<p>Now, we&#8217;re going to add little creases to our lantern because that&#8217;s how the paper ones are made. What I did was start off with a black shape of the base lantern and resized it a little bit, hallowed out the center and, duplicated and resized over and over. When your finished redo the same process but with white and set their <em>Opacity</em> low. Change your black layer to <em>Color Dodge</em> so you get a blended effect.</p>
<p><img src="/demos/chinese-lantern/ss27.jpg" title="Creases" width="300" /></p>
<p>Time to texture our lantern with an actual picture of a paper lantern. With a simple google image search for <em>Chinese Paper Lantern</em>  we can find many choices, I randomly picked one that I thought would go well with our icon &#8211; <a href="http://i.ehow.com/images/a02/68/36/make-paper-lantern-800X800.jpg" target="_blank"><img src="/demos/chinese-lantern/ss28.jpg" title="Creases" width="300" /></a></p>
<p>I cut the lantern out of the black and squished it vertically just a little bit to fit the contour of our lantern &#8211; Credit goes to <a href="http://www.jorenclark.com" target="_blank">Joern Clark</a> for the photo. </p>
<p><img src="/demos/chinese-lantern/ss29.jpg" title="Photo Of Paper Lantern" width="300" /></p>
<p>Now set your photo layer to <em>Overlay</em> and <em>Opacity</em> to 60%.</p>
<p><img src="/demos/chinese-lantern/ss30.jpg" title="Overlay Paper Texture" width="300" /></p>
<p>Create a new layer and select your brush tool <img src="/imgs/ps-tool/brushtool.jpg" title="Brush Tool" align="absbottom"  /> and hit your hotkey &#8220;D&#8221; to reset your colors so the foreground is black. Now draw across your top metal piece like my picture below, be sure not to draw to low &#8211; We&#8217;re trying to create a subtle shadow underneath the metal piece.</p>
<p><img src="/demos/chinese-lantern/ss31.jpg" title="Draw Across Top Metal" width="300"  /> </p>
<p>Now just put that layer underneath your top metal piece layer and now we got a nice shadow underneath our lantern.</p>
<p><img src="/demos/chinese-lantern/ss32.jpg" title="Ellipse Tool Used" width="300"  /> </p>
<p>Now we have a good looking Chinese paper lantern!</p>
<h3>Our Final Polished Product</h3>
<p>Make sure to group all these layers, duplicate and flatten (to make sure we have a workable backup) and save. After some color dodging, color burning, erasing parts of the tassel and a fancy background with a drop shadow on the lantern layer. Our final product is finished!</p>
<p><img src="/demos/chinese-lantern/lantern.jpg" title="Final Product"  /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/graphic-design/chinese-lantern-icon/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>100+ Free High Quality Web Designer Icons</title>
		<link>http://www.alovefordesign.com/graphic-design/100-free-high-quality-web-designer-icons/</link>
		<comments>http://www.alovefordesign.com/graphic-design/100-free-high-quality-web-designer-icons/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 00:42:04 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Icons]]></category>

		<guid isPermaLink="false">http://www.alovefordesign.com/?p=406</guid>
		<description><![CDATA[Every web designer loves fresh icon sets for their new design, and every design blog loves doing round-ups for free icons. So we said, why not? In this post we added some of our favorite high quality web designer icon sets for you to use on your next design. Please make sure to read the [...]]]></description>
			<content:encoded><![CDATA[<p>Every web designer loves fresh icon sets for their new design, and every design blog loves doing round-ups for free icons. So we said, why not? In this post we added some of our favorite high quality web designer icon sets for you to use on your next design. Please make sure to read the T.O.S. for these icons and their perspective owners, some may only be for personal use, also give credit where due. <span id="more-406"></span></p>
<p>Icons can be a bit tricky when coming to web design, you don&#8217;t want to spend too much time designing icons on a web site because there are so many other aspects of a site that need attention. That&#8217;s where free icons come in, many graphic designers offer free icons around the web a simple google search can come up with hundreds of thousands of results for icon sets. You also want your site to have originality and not see the same icons on another web site, that&#8217;s why using photoshop to mix and match icons is a great way to keep a uniqueness to your site but also save a lot of time and resources. </p>
<h3>Money Back Guarantee Icon Set</h3>
<p><a href="http://www.dapino-colada.nl/money-back-guarantee-icon-set" target="_blank"><img src="http://www.alovefordesign.com/imgs/money_back-_guarantee1.png" alt="Money Back Guarantee Icon Set" /></a></p>
<h3>Top 3 Icon Pack</h3>
<p><a href="http://taytel.deviantart.com/art/Top-3-icons-pack-134311895" target="_blank"><img src="http://www.alovefordesign.com/imgs/top_3_icons_pack.jpg" alt="Top 3 Icon Pack" /></a></p>
<h3>ISO Icon Pack</h3>
<p><a href="http://artdesigner.lv/archives/638" target="_blank"><img src="http://www.alovefordesign.com/imgs/iso_icon_pack.jpg" alt="ISO Icon Pack" /></a></p>
<h3>Nixus Icon Set</h3>
<p><a href="http://www.tutorial9.net/resources/nixus-icon-pack-60-beautiful-premium-icons-free/" target="_blank"><img src="http://www.alovefordesign.com/imgs/nixus.jpg" alt="Nixus Icon Set" /></a></p>
<h3>Web Injection Icon Set</h3>
<p><a href="http://www.tutorial9.net/resources/free-icon-pack-web-injection/" target="_blank"><img src="http://www.alovefordesign.com/imgs/web_injection.jpg" alt="Web Injection Icon Set" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/graphic-design/100-free-high-quality-web-designer-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create An Apple Style Menu Purely In CSS3 &#8211; No Images Required</title>
		<link>http://www.alovefordesign.com/css/create-an-apple-style-menu-purely-in-css3-no-images-required/</link>
		<comments>http://www.alovefordesign.com/css/create-an-apple-style-menu-purely-in-css3-no-images-required/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 08:45:02 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.alovefordesign.com/?p=366</guid>
		<description><![CDATA[This just goes to show you how much of a difference CSS2 and CSS3 are and how much more CSS3 can do for us to cut our design work literally in half. In this tutorial I will show you how to create a non-image, apple style menu all out of CSS3! The only problem with [...]]]></description>
			<content:encoded><![CDATA[<p>This just goes to show you how much of a difference CSS2 and CSS3 are and how much more CSS3 can do for us to cut our design work literally in half. In this tutorial I will show you how to create a non-image, apple style menu all out of CSS3! The only problem with this is doing so you are limiting the amount of browsers that will be able to correctly display your work (Firefox and Safari only). So you would want to make sure to have alternatives for other browsers (meaning you WILL have to use images and alternate code).<span id="more-366"></span></p>
<p><a class="ss" href="/demos/apple-menu/index.html" target="_blank"><img src="/demos/apple-menu/ss.jpg" alt="Apple Style Menu Screenshot"></a></p>
<div class="viewdemo">
<a href="/demos/apple-menu/index.html" target="_blank">view demo<br /><span>Apple Menu</span></a>
</div>
<div class="download">
<a href="/demos/apple-menu/apple-menu.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<p>The advantage of doing all this is CSS3 is that it significantly reduces the load amount for the page, the lower the better. It not only helps the load time but reduces the cost of bandwidth used. And of course cause it&#8217;s really cool!</p>
<h3>Step 1</h3>
<p>First, we&#8217;re just going to start off by creating a simple horizontal list with links that have padding and text effects. Also make sure to add the class <em>active</em> to our index link.</p>
<h4>HTML</h4>
<pre class="brush: xml; title: ; notranslate">
	&lt;div id=&quot;menu&quot;&gt;
		&lt;ul&gt;
			&lt;li&gt;&lt;a class=&quot;active&quot; href=&quot;index.html&quot;&gt;home&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=&quot;menu.html&quot;&gt;menu&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=&quot;project.html&quot;&gt;projects&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=&quot;affiliates.html&quot;&gt;affiliates&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=&quot;contact.html&quot;&gt;contact&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;
</pre>
<h4>CSS</h4>
<pre class="brush: css; title: ; notranslate">
body	{
	background: #ddd;
	margin: 30px;
}
#menu	{
	float: left;
	padding: 0;
	margin: 0;
}
#menu ul	{
	padding: 0;
	margin: 0;
	float: left;
}
#menu li	{
	float: left;
	list-style: none;
	background: none;
}
#menu a { outline: none; }
#menu li a:link, #menu li a:visited {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	display: block;
	color: #262626;
	text-decoration: none;
	text-transform: capitalize;
	padding: 12px 28px;
}
</pre>
<p><em>This is what it should look like so far..</em><br />
<a class="ss" href="/demos/apple-menu/ss1.jpg" target="_blank"><img src="/demos/apple-menu/ss1.jpg" alt="Apple Style Menu Screenshot"></a></p>
<h3>Step 2</h3>
<p>In the next step, we&#8217;re going to add our gradient effect to our links and also add a text shadow for an <em>embedded</em> look.</p>
<p>To do this, we use the following code to encompass Firefox, Safari and what ever other browser that supports css3.</p>
<pre class="brush: css; title: ; notranslate">
#menu li a:link, #menu li a:visited {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	display: block;
	color: #262626;
	padding: 12px 28px;
	text-decoration: none;
	text-transform: capitalize;

	/* CSS3 Text Shadow */
	text-shadow: 0px 1px 1px #fff;

	/* CSS3 Background Gradient */
    background-image: -moz-linear-gradient(top, #cacaca, #848484);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cacaca), to(#848484));
}
</pre>
<p><em>Again, here&#8217;s what we got so far..</em><br />
<a class="ss" href="/demos/apple-menu/ss2.jpg" target="_blank"><img src="/demos/apple-menu/ss2.jpg" alt="Apple Style Menu Screenshot"></a></p>
<h4>Step 3</h4>
<p>Now we&#8217;re going to add another new CSS3 attribute called border radius which rounds out the corners of our links on each end of the side. We do this by also using the <em>first-child</em> and <em>last-child</em>.</p>
<pre class="brush: css; title: ; notranslate">
#menu li:first-child a {
	/* Rounded Corners */
	-moz-border-radius-topleft: 10px;
    -moz-border-radius-bottomleft: 10px;
	-webkit-border-top-left-radius: 10px;
	-webkit-border-bottom-left-radius: 10px;
}
#menu li:last-child a {
	/* Rounded Corners */
    -moz-border-radius-topright: 10px;
    -moz-border-radius-bottomright: 10px;
	-webkit-border-top-right-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
}
</pre>
<h3>Step 4</h3>
<p>We&#8217;ll now add some final touches to our first part of the menu, some more shadowing and horizontal border gradients.</p>
<p>On the menu div, we&#8217;re going to add a box shadow and round out the corners so it matches our links.</p>
<pre class="brush: css; title: ; notranslate">
#menu	{
	float: left;
	padding: 0;
	margin: 0;

	/* Box Shadow */
	box-shadow: 0 1px 0 #000;
	-moz-box-shadow: 0 1px 0 #000;
	-webkit-box-shadow: 0 1px 0 #000;

	/* Rounded Corners */
	-moz-border-radius-topleft: 10px;
     -moz-border-radius-bottomleft: 10px;
	-webkit-border-top-left-radius: 10px;
	-webkit-border-bottom-left-radius: 10px;

	/* Rounded Corners */
     -moz-border-radius-topright: 10px;
     -moz-border-radius-bottomright: 10px;
	-webkit-border-top-right-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
}
</pre>
<p>Now we&#8217;re going to add a 1px margin to the right of our <em>li</em> to create a space so the background of our ul will show through.</p>
<pre class="brush: css; title: ; notranslate">
#menu li	{
	float: left;
	list-style: none;
	background: none;
	margin-right: 1px;
}
</pre>
<p>Now add the gradient to the <em>ul</em> background.</p>
<pre class="brush: css; title: ; notranslate">
#menu ul	{
	border-top: #f3f3f3 1px solid;
	padding: 0;
	margin: 0;
	float: left;

	/* Background Gradient */
    background-image: -moz-linear-gradient(top, #b4b4b4, #707070);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#b4b4b4), to(#707070));
}
</pre>
<p><em>So far so good..</em><br />
<a class="ss" href="/demos/apple-menu/ss4.jpg" target="_blank"><img src="/demos/apple-menu/ss4.jpg" alt="Apple Style Menu Screenshot"></a></p>
<h3>Step 4</h3>
<p>Now we&#8217;ve got to add our <em>hover event</em> and our <em>active state</em>. Pretty simple, same code just different selector.</p>
<pre class="brush: css; title: ; notranslate">
#menu li a:hover	{
	cursor: pointer;
	color: #fff;
	text-shadow: 0px -1px 1px #000;

	/* Background Gradient */
    background-image: -moz-linear-gradient(top, #929292, #545454);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#929292), to(#545454));
}
</pre>
<p>And for the active state..</p>
<pre class="brush: css; title: ; notranslate">
a.active:link, a.active:active, a.active:visited	{
	color: #fff !important;
	text-shadow: 0px -1px 1px #000!important;
    background-image: -moz-linear-gradient(top, #444, #666)!important;
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#444), to(#666))!important;

	/* Box Shadow */
	box-shadow: inset 0 0 10px #000;
	-moz-box-shadow: inset 0 0 10px #000;
	-webkit-box-shadow: inset 0 0 10px #000;
}
</pre>
<p>*Note for the active state to work, for each page you have the menu you on say <em>contact.html</em> you need to attach the class <em>active</em> to the proper link in the menu bar.</p>
<h3>Final Result</h3>
<p><a class="ss" href="/demos/apple-menu/ss.jpg" target="_blank"><img src="/demos/apple-menu/ss.jpg" alt="Apple Style Menu Screenshot"></a></p>
<div class="viewdemo">
<a href="/demos/apple-menu/index.html" target="_blank">view demo<br /><span>Apple Menu</span></a>
</div>
<div class="download">
<a href="/demos/apple-menu/apple-menu.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<h4>Final Code</h4>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Apple Menu In CSS3 Only&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body	{
	background: #ddd;
	margin: 30px;
}
#menu	{
	float: left;
	padding: 0;
	margin: 0;

	/* Box Shadow */
	box-shadow: 0 1px 0 #000;
	-moz-box-shadow: 0 1px 0 #000;
	-webkit-box-shadow: 0 1px 0 #000;

	/* Rounded Corners */
	-moz-border-radius-topleft: 10px;
    -moz-border-radius-bottomleft: 10px;
	-webkit-border-top-left-radius: 10px;
	-webkit-border-bottom-left-radius: 10px;

	/* Rounded Corners */
    -moz-border-radius-topright: 10px;
    -moz-border-radius-bottomright: 10px;
	-webkit-border-top-right-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
}
#menu ul	{
	border-top: #f3f3f3 1px solid;
	padding: 0;
	margin: 0;
	float: left;

	/* Background Gradient */
    background-image: -moz-linear-gradient(top, #b4b4b4, #707070);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#b4b4b4), to(#707070));
}
#menu li	{
	float: left;
	list-style: none;
	background: none;
	margin-right: 1px;
}
#menu a { outline: none; }
#menu li a:link, #menu li a:visited {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	display: block;
	color: #262626;
	padding: 12px 28px;
	text-decoration: none;
	text-transform: capitalize;

	/* CSS3 Text Shadow */
	text-shadow: 0px 1px 1px #fff;

	/* CSS3 Background Gradient */
    background-image: -moz-linear-gradient(top, #cacaca, #848484);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cacaca), to(#848484));
}
#menu li a:hover	{
	cursor: pointer;
	color: #fff;
	text-shadow: 0px -1px 1px #000;

	/* Background Gradient */
    background-image: -moz-linear-gradient(top, #929292, #545454);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#929292), to(#545454));
}
#menu li:first-child a, #menu ul {
	/* Rounded Corners */
	-moz-border-radius-topleft: 10px;
    -moz-border-radius-bottomleft: 10px;
	-webkit-border-top-left-radius: 10px;
	-webkit-border-bottom-left-radius: 10px;
}
#menu li:last-child a, #menu ul {
	/* Rounded Corners */
    -moz-border-radius-topright: 10px;
    -moz-border-radius-bottomright: 10px;
	-webkit-border-top-right-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
}
a.active:link, a.active:active, a.active:visited	{
	color: #fff !important;
	text-shadow: 0px -1px 1px #000!important;
    background-image: -moz-linear-gradient(top, #444, #666)!important;
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#444), to(#666))!important;

	/* Box Shadow */
	box-shadow: inset 0 0 10px #000;
	-moz-box-shadow: inset 0 0 10px #000;
	-webkit-box-shadow: inset 0 0 10px #000;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div id=&quot;menu&quot;&gt;
		&lt;ul&gt;
			&lt;li&gt;&lt;a class=&quot;active&quot; href=&quot;index.html&quot;&gt;home&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=&quot;menu.html&quot;&gt;menu&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=&quot;project.html&quot;&gt;projects&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=&quot;affiliates.html&quot;&gt;affiliates&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=&quot;contact.html&quot;&gt;contact&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/css/create-an-apple-style-menu-purely-in-css3-no-images-required/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>How To Draw A Glossy 2.0 Loading Bar Vector In Illustrator</title>
		<link>http://www.alovefordesign.com/graphic-design/how-to-draw-a-glossy-loading-bar-vector-in-illustrator/</link>
		<comments>http://www.alovefordesign.com/graphic-design/how-to-draw-a-glossy-loading-bar-vector-in-illustrator/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 00:39:54 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Vectors]]></category>

		<guid isPermaLink="false">http://www.alovefordesign.com/?p=330</guid>
		<description><![CDATA[In this tutorial we&#8217;re going to show you how to draw a glossy slick looking loading bar in illustrator. The benefits of doing a project like this in illustrator is that it uses vectorization. By vectorizing this drawing we can resize it to what ever width and height we want without losing the quality of [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we&#8217;re going to show you how to draw a glossy slick looking loading bar in illustrator. The benefits of doing a project like this in illustrator is that it uses vectorization. By vectorizing this drawing we can resize it to what ever width and height we want without losing the quality of the image (pixelated). You can also transfer our vector from illustrator over to photoshop for easy editing.<span id="more-330"></span></p>
<div class="viewdemo">
<a href="/demos/loading-vector/ss.jpg" target="_blank">view demo<br /><span>Loading Bar</span></a>
</div>
<div class="download">
<a href="/demos/loading-vector/loading-vector.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<p><a class="ss" href="/demos/loading-vector/ss.jpg" target="_blank"><img src="/demos/loading-vector/ss.jpg" alt="Loading Bar Screenshot"></a><br />
<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" target="_blank" class="cc" alt="Some Rights Reserved">Creative Commons &#8211; Some Rights Reserved</a></p>
<h3>Step 1</h3>
<p>First we&#8217;ll start with a clean document with the size of <em>800 x 600</em>. Then we&#8217;re going to create a atmospheric background that gives depth with shadowing. So grab your <em>Rectangle Tool</em> and draw a rectangle <em>800 x 380</em> and align it to the middle-top of your document, then grab the gradient tool and click the square. After you clicked the square it should add a black and white gradient, replace the a dark gray and scoot the gradient to the middle-top of the square and stretch it out like in the picture. Make sure you select radial gradient on your gradient tab as well.</p>
<p><a class="ss" href="/wp-content/themes/custom/images/tutorials/loadingbar/background_1-lg.jpg" target="_blank"><img src="/wp-content/themes/custom/images/tutorials/loadingbar/background_1-sm.jpg"></a></p>
<p>Now make another square this time <em>800 x 220</em> and align it to the bottom middle of your document and add another gradient to it, same color but this time make the gradient <em>linear</em> with the dark gray at the bottom.</p>
<p><a class="ss" href="/wp-content/themes/custom/images/tutorials/loadingbar/background_2-lg.jpg" target="_blank"><img src="/wp-content/themes/custom/images/tutorials/loadingbar/background_2-sm.jpg"></a></p>
<p>Now we got a nice looking black background ready for us to start our loading bar.</p>
<h3>Step 2</h3>
<p>Go ahead and grab the <em>Rounded Corner Tool</em>, click <em>Preferences</em> at the top and set rounded corners to 4px. Create a decent size rectangle to your liking, then color it light gray, I used #999999. Duplicate that layer and move the new rectangle down 1px with your down arrow (when selected). Grab your gradient tool once again and select the new rectangle and use the radial gradient and fill with with black and dark gray once again (like the picture below). </p>
<p><a class="ss" href="/wp-content/themes/custom/images/tutorials/loadingbar/bar_1-sm.jpg" target="_blank"><img src="/wp-content/themes/custom/images/tutorials/loadingbar/bar_1-sm.jpg"></a></p>
<p>Copy and paste the first light gray rectangle and paste it in front, overlaying the first rectangle. Grab your gradient tool and add a linear gradient to the square with the top being white and the bottom being white at 40% opacity. Now what you need to do is lock and hide all the other layers besides the front path. Grab your square tool and draw a rectangle overlaying half (horizontally) the rectangle and go to <em>Windows > Pathfinder </em> and select both rectangles and select <em>Minus Front</em>. This will remove the rectangle and leave our background rectangle with half its height but keeps our top rounded corners, select the finished product and go to your transparency tab and reduce it to 40%. </p>
<p>*Group these layers together and make sure to lock them (Your backgrounds should be in a separate group and locked as well if you haven&#8217;t already done so).</p>
<p><a class="ss" href="/wp-content/themes/custom/images/tutorials/loadingbar/bar_2-sm.jpg" target="_blank"><img src="/wp-content/themes/custom/images/tutorials/loadingbar/bar_2-sm.jpg"></a></p>
<h4>This is what you should have so far..</h4>
<p>Looking pretty good so far, we now have our background set up with our empty glossy loading bar. Now we&#8217;re going to fill this bar so we have something that actually shows us our loading!</p>
<p><a class="ss" href="/wp-content/themes/custom/images/tutorials/loadingbar/bar_3-lg.jpg" target="_blank"><img src="/wp-content/themes/custom/images/tutorials/loadingbar/bar_3-sm.jpg"></a></p>
<h3>Step 3.</h3>
<p>So essentially we just got through with all of our core basics needed for this project, from here on out it&#8217;s pretty much a copy, paste and edit process of what we already have. So in saying that copy the whole empty bar group and paste it into a new group. First go to our new path with the gray rectangle and fill it with the color <em>#E9FCFF</em>. Now go and select our new path with our black and dark gray gradient rectangle and we&#8217;re going to change the gradient to linear and set the gradient as the picture shows below. The colors I used were <em>#07F2FB</em> for the middle gradient and <em>#006AC0</em> for the two outside gradients. So now we have a filled colored bar that looks great and ready to add our final touches of the project. </p>
<p><a class="ss" href="/wp-content/themes/custom/images/tutorials/loadingbar/bar_4-lg.jpg" target="_blank"><img src="/wp-content/themes/custom/images/tutorials/loadingbar/bar_4-sm.jpg"></a></p>
<h4>Now on to our final touches</h4>
<p>Next we&#8217;ll add a nice reflect of our filled bar to give off a three dimension to match with our background as if the loading bar is floating in mid air with soft metals around it. Go in our filled bar group and copy/paste the filled path that we previously created and place it at the bottom of the document where our second background gradient is located. Go to <em>Effect > Blur > Gaussian Blue</em> and set it to 14, then go to the transparency tab and reduce down to 40%, then scale it down so it matches the size of the original filled bar.</p>
<h3>Final Product</h3>
<p>If you kept up with everything then you will have successfully drawn a vectorized loading bar in illustrator! Congratulations, now you can move onto our part 2 of this tutorial we&#8217;re we&#8217;ll be implementing these vectors into flash to be used as a preloading mechanism.  </p>
<div class="viewdemo">
<a href="/demos/loading-vector/ss.jpg" target="_blank">view demo<br /><span>Loading Bar</span></a>
</div>
<div class="download">
<a href="/demos/loading-vector/loading-vector.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<p><a class="ss" href="/wp-content/themes/custom/images/tutorials/loadingbar/bar_5-lg.jpg" target="_blank"><img src="/wp-content/themes/custom/images/tutorials/loadingbar/bar_5-sm.jpg"></a></p>
<p><a class="ss" href="/wp-content/themes/custom/images/tutorials/loadingbar/bar_6-lg.jpg" target="_blank"><img src="/wp-content/themes/custom/images/tutorials/loadingbar/bar_6-sm.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/graphic-design/how-to-draw-a-glossy-loading-bar-vector-in-illustrator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Add A Custom Ajax Twitter Feed To Your Web Site</title>
		<link>http://www.alovefordesign.com/javascript/add-a-custom-ajax-twitter-feed-to-your-web-site/</link>
		<comments>http://www.alovefordesign.com/javascript/add-a-custom-ajax-twitter-feed-to-your-web-site/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 08:21:46 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.alovefordesign.com/?p=296</guid>
		<description><![CDATA[A lot of people like to add a twitter feed to their website for convenience, but many of them are template files that they download and copy/paste onto their website and looks out of place. Twitter has provided an API service to their registered users to use jSON to pull information and display it whichever [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of people like to add a twitter feed to their website for convenience, but many of them are template files that they download and copy/paste onto their website and looks out of place. Twitter has provided an API service to their registered users to use jSON to pull information and display it whichever way the creator likes. In this tutorial I&#8217;ll show you how to add a completely custom twitter feed controlling how many tweets, how the date is displayed, and if their linked or not.<span id="more-296"></span></p>
<h3>Twitter</h3>
<p>&quot;Twitter is a real-time information network powered by people all around the world that lets you share and discover what’s happening now.&quot; &#8211; <em>Twitter.com/about</em></p>
<p>The following uses Twitters API to pull the correct information wanted and displays as told by JavaScript. While the list is being populated we added a loading ajax image to show that the tweets are being loaded and don&#8217;t clog the site from loading everything else. Then is listed in a specific <em>ul</em> classed and dynamically added by the jSON, after all is added we can start adding css to style it how ever we want!</p>
<p><a class="ss" href="/demos/custom-twitter/index.html"><img src="/demos/custom-twitter/ss.jpg" alt="Custom Ajax Twitter Screenshot"></a></p>
<h4>Adding the JavaScript</h4>
<p>So what this does is it calls the URL below to your twitter account, pulls the information into a <em>.json</em> and then uses the jQuery push command to add HTML to our defined #id. You may edit the HTML that&#8217;s being pushed if you know what your doing, otherwise I would keep as is because you could end up breaking the script.</p>
<p>The javascript will find our id (which is called <em>#twitter_update_list</em>) and insert the HTML into the <em>ul</em>, which has the date and the tweet in separate <em>li&#8217;s</em>. Right now only the twitter date is wrapped in a link to follow to the actual tweet but we can customize this to how every we want meaning, we can make the whole thing link or remove the link entirely. It&#8217;s all <em>up to you&#8230;</em></p>
<pre class="brush: jscript; title: ; notranslate">
//Twitter
window.onload = function() {
	var ajax_load = &quot;&lt;img class='loader' src='images/loader.gif' alt='Loading...' /&gt;&quot;;
	var url = 'http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&amp;amp;count=4';
	var script = document.createElement('script');
	$(&quot;#twitter_feed&quot;).html(ajax_load);
	script.setAttribute('src', url);
	document.body.appendChild(script);
}

function twitterCallback2(twitters) {
  var statusHTML = [];
  for (var i=0; i&lt;twitters.length; i++){
    var username = twitters[i].user.screen_name;
    var status = twitters[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^&quot;\s\&lt;\&gt;]*[^.,;'&quot;&gt;\:\s\&lt;\&gt;\)\]\!])/g,
	function(url) { return '&lt;a href=&quot;'+url+'&quot;&gt;'+url+'&lt;/a&gt;';
    }).replace(/\B@([_a-z0-9]+)/ig, function(reply) {
      return  reply.charAt(0)+'&lt;a href=&quot;http://twitter.com/'+reply.substring(1)+'&quot;&gt;'+reply.substring(1)+'&lt;/a&gt;';
    });
    statusHTML.push('&lt;li class=&quot;twitter_date&quot;&gt;&lt;a href=&quot;http://twitter.com/'+username+'/statuses/'+twitters[i].id+'&quot;&gt;'+relative_time(twitters[i].created_at)+'&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;p&gt;'+status+'&lt;/p&gt;&lt;/li&gt;');
  }
  document.getElementById('twitter_update_list').innerHTML = statusHTML.join('');
}

function relative_time(time_value) {
  var values = time_value.split(&quot; &quot;);
  time_value = values[1] + &quot; &quot; + values[2] + &quot; &quot; + values[5] + &quot; &quot; + values[3];
  var parsed_date = new Date();
  parsed_date.setTime(Date.parse(time_value));
  var months = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
	'Sep', 'Oct', 'Nov', 'Dec');
  var m = parsed_date.getMonth();
  var postedAt = '';
  postedAt = months[m];
  postedAt += &quot; &quot;+ parsed_date.getDate();
  postedAt += &quot;,&quot;
  postedAt += &quot; &quot;+ parsed_date.getFullYear();
  return postedAt;
}
</pre>
<p>Change the <em>&quot;username&quot;</em> to your twitter account to pull your tweets.</p>
<pre class="brush: jscript; title: ; notranslate">
var url = 'http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&amp;count=4';
</pre>
<h4>Adding the HTML</h4>
<p>Below we created an unordered list with the id #twitter_update_list which javascript looks for to add the html</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;twitter&quot;&gt;
      &lt;ul&gt;
           &lt;li id=&quot;twitter_feed&quot;&gt;&lt;/li&gt;
      &lt;/ul&gt;
&lt;/div&gt;
</pre>
<h4>Adding the CSS</h4>
<p> The point of this part is just to show you how dynamic you can get with the styling just because the twitter feed classes all their selectors so it makes for great css editing. This is my quick example of what you can do with this flexable API and jSON, be creative. Go WILD!</p>
<pre class="brush: css; title: ; notranslate">
body	{
	background: #111111;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	color: #ccc;
}
h1 { padding: 20px 0 0 15px; margin: 0; letter-spacing: -3px; }
h2 { padding: 0 0 0 15px; margin: 0; color: #777; letter-spacing: -2px; }
.loader		{ position: absolute; top: 250px; left: 105px; }
#twitter	{ position: relative; width: 280px; background: #222; height: 820px;  }
#twitter li p	{ padding: 0 0 15px; }
#twitter p a:link, #twitter p a:active, #twitter p a:visited	{ color: #6fb2cd; text-decoration: none; }
#twitter p a:hover	{ text-decoration: underline; }
#twitter ul	{
	width: 260px;
	height: auto;
	padding: 15px 0 0 15px;
	margin: 0;
}
#twitter li	{
	float: left;
	margin: 3px 0;
	list-style-type: none;
}
li.twitter_date	{
	background: url(../images/date_bg.jpg) no-repeat left top;
	width: 95px;
	height: 23px;
	text-align: center;
	line-height: 21px;
}
.twitter_date a:active, .twitter_date a:link, .twitter_date a:visited	{
	color: #666;
	background: #333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	text-decoration: none;
	text-transform: uppercase;
	padding: 7px;
}
.twitter_date a:hover	{
	color: #666;
}
</pre>
<h4>Final Code</h4>
<p>For all the lazies, who don&#8217;t want to go through the tutorial and actually read and find out how it works, here&#8217;s the final code of my version of a custom twitter feed.</p>
<div class="viewdemo">
<a href="/demos/custom-twitter/index.html">view demo<br /><span>Custom Twitter</span></a>
</div>
<div class="download">
<a href="/demos/custom-twitter/custom-twitter.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Custom Twitter Feed&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body	{
	background: #111111;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	color: #ccc;
}
h1 { padding: 20px 0 0 15px; margin: 0; letter-spacing: -3px; }
h2 { padding: 0 0 0 15px; margin: 0; color: #777; letter-spacing: -2px; }
.loader		{ position: absolute; top: 250px; left: 105px; }
#twitter	{ position: relative; width: 280px; background: #222; height: 820px;  }
#twitter li p	{ padding: 0 0 15px; }
#twitter p a:link, #twitter p a:active, #twitter p a:visited	{ color: #6fb2cd; text-decoration: none; }
#twitter p a:hover	{ text-decoration: underline; }
#twitter ul	{
	width: 260px;
	height: auto;
	padding: 15px 0 0 15px;
	margin: 0;
}
#twitter li	{
	float: left;
	margin: 3px 0;
	list-style-type: none;
}
li.twitter_date	{
	background: url(../images/date_bg.jpg) no-repeat left top;
	width: 95px;
	height: 23px;
	text-align: center;
	line-height: 21px;
}
.twitter_date a:active, .twitter_date a:link, .twitter_date a:visited	{
	color: #666;
	background: #333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	text-decoration: none;
	text-transform: uppercase;
	padding: 7px;
}
.twitter_date a:hover	{
	color: #666;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//Twitter
window.onload = function() {
	var ajax_load = &quot;&lt;img class='loader' src=' loader.gif' alt='Loading...' /&gt;&quot;;
	var url = 'http://twitter.com/statuses/user_timeline/alovefordesign.json?callback=twitterCallback2&amp;count=6';
	var script = document.createElement('script');
	$(&quot;#twitter_feed&quot;).html(ajax_load);
	script.setAttribute('src', url);
	document.body.appendChild(script);
}

function twitterCallback2(twitters) {
  var statusHTML = [];
  for (var i=0; i&lt;twitters.length; i++){
    var username = twitters[i].user.screen_name;
    var status = twitters[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^&quot;\s\&lt;\&gt;]*[^.,;'&quot;&gt;\:\s\&lt;\&gt;\)\]\!])/g,
	function(url) { return '&lt;a href=&quot;'+url+'&quot;&gt;'+url+'&lt;/a&gt;';
    }).replace(/\B@([_a-z0-9]+)/ig, function(reply) {
      return  reply.charAt(0)+'&lt;a href=&quot;http://twitter.com/'+reply.substring(1)+'&quot;&gt;'+reply.substring(1)+'&lt;/a&gt;';
    });
    statusHTML.push('&lt;li class=&quot;twitter_date&quot;&gt;&lt;a href=&quot;http://twitter.com/'+username+'/statuses/'+twitters[i].id+'&quot;&gt;'+relative_time(twitters[i].created_at)+'&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;p&gt;'+status+'&lt;/p&gt;&lt;/li&gt;');
  }
  document.getElementById('twitter_update_list').innerHTML = statusHTML.join('');
}

function relative_time(time_value) {
  var values = time_value.split(&quot; &quot;);
  time_value = values[1] + &quot; &quot; + values[2] + &quot; &quot; + values[5] + &quot; &quot; + values[3];
  var parsed_date = new Date();
  parsed_date.setTime(Date.parse(time_value));
  var months = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
	'Sep', 'Oct', 'Nov', 'Dec');
  var m = parsed_date.getMonth();
  var postedAt = '';
  postedAt = months[m];
  postedAt += &quot; &quot;+ parsed_date.getDate();
  postedAt += &quot;,&quot;
  postedAt += &quot; &quot;+ parsed_date.getFullYear();
  return postedAt;
}										 

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div id=&quot;twitter&quot;&gt;
		&lt;h1&gt;A Love For Design&lt;/h1&gt;
		&lt;h2&gt;Twitter Feed&lt;/h2&gt;
		&lt;ul id=&quot;twitter_update_list&quot;&gt;
        	&lt;li id=&quot;twitter_feed&quot;&gt;&lt;/li&gt;
        &lt;/ul&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/javascript/add-a-custom-ajax-twitter-feed-to-your-web-site/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>30 Free High Quality Web Designer Fonts</title>
		<link>http://www.alovefordesign.com/freebies/30-free-high-quality-web-designer-fonts/</link>
		<comments>http://www.alovefordesign.com/freebies/30-free-high-quality-web-designer-fonts/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 07:05:38 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.alovefordesign.com/?p=270</guid>
		<description><![CDATA[Over the years of web designing, I&#8217;ve collected quite a few fonts during my projects. Below, I&#8217;ll post free fonts that I most commonly see and use on designs, one thing a lot of these fonts have in common is the unique personality they have to them. Each one can give off a certain style [...]]]></description>
			<content:encoded><![CDATA[<p>Over the years of web designing, I&#8217;ve collected quite a few fonts during my projects. Below, I&#8217;ll post free fonts that I most commonly see and use on designs, one thing a lot of these fonts have in common is the unique personality they have to them. Each one can give off a certain style and feeling, which is exactly what we want in our designs (to evoke some sort of feeling). <span id="more-270"></span> </p>
<h3>Web Typography</h3>
<p>The popular trend right now is to steer away from pristine clean and untouched design (which is timeless in itself but web design has to evolve sometime) meaning the designs have dirt, grunge, cuts, brush strokes &#8211; attributes that associate with human mistakes to give off a very humanistic style. Below you can click each image to follow it to the original download page or you can download the whole package below, <em>enjoy!</em></p>
<div class="download">
<a href="/downloads/fonts/30-DesignerFonts.zip">download<br /><span>Font Package</span></a>
</div>
<div class="clear"></div>
<p>&nbsp;</p>
<h5>Androgyne</h5>
<p><a href="http://www.dafont.com/androgyne-tb.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/androgyne.jpg" alt="Download Androgyne Font for Free" /></a></p>
<h5>Aria Penci Roman</h5>
<p><a href="http://www.dafont.com/ariapenciroman.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/ariapenciroman.jpg" alt="Download Aria Penci Roman Font for Free" /></a></p>
<h5>Bebas</h5>
<p><a href="http://www.dafont.com/bebas.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/bebas.jpg" alt="Download Bebas Font for Free" /></a></p>
<h5>Boris Black Bloxx</h5>
<p><a href="http://www.dafont.com/boris-black-bloxx.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/borisblackbloxx.jpg" alt="Download Boris Black Bloxx Font for Free" /></a></p>
<h5>Club</h5>
<p><a href="http://www.dafont.com/club.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/club.jpg" alt="Download Club Font for Free" /></a></p>
<h5>Complete In Him</h5>
<p><a href="http://www.dafont.com/complete-in-him.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/completeinhim.jpg" alt="Download Complete In Him Font for Free" /></a></p>
<h5>Criticized</h5>
<p><a href="http://www.dafont.com/criticized.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/criticized.jpg" alt="Download Criticized Font for Free" /></a></p>
<h5>Crossword Belle</h5>
<p><a href="http://www.dafont.com/crosswordbelle.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/crosswordbelle.jpg" alt="Download Crossword Belle Font for Free" /></a></p>
<h5>Danube</h5>
<p><a href="http://www.dafont.com/danube.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/danube.jpg" alt="Download Danube Font for Free" /></a></p>
<h5>Designer Notes</h5>
<p><a href="http://www.dafont.com/designer-notes.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/designernotes.jpg" alt="Download Designer Notes Font for Free" /></a></p>
<h5>Green Piloww</h5>
<p><a href="http://www.dafont.com/green-piloww.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/greenpiloww.jpg" alt="Download Green Piloww Font for Free" /></a></p>
<h5>Hand of Sean</h5>
<p><a href="http://www.dafont.com/hand-of-sean.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/handofsean.jpg" alt="Download Hand of Sean Font for Free" /></a></p>
<h5>Just Me Again Down Here</h5>
<p><a href="http://www.dafont.com/just-me-again-down-here.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/justmeagaindownhere.jpg" alt="Download Just Me Again Down Here Font for Free" /></a></p>
<h5>Karabine</h5>
<p><a href="http://www.dafont.com/karabine.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/karabine.jpg" alt="Download Karabine Font for Free" /></a></p>
<h5>Love Ya Like A Sister</h5>
<p><a href="http://www.dafont.com/love-ya-like-a-sister.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/loveyalikeasister.jpg" alt="Download Love Ya Like A Sister Font for Free" /></a></p>
<h5>MOD</h5>
<p><a href="http://fontfabric.com/mod-font/" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/mod.jpg" alt="Download MOD Font for Free" /></a></p>
<h5>Never Let Go</h5>
<p><a href="http://www.dafont.com/never-let-go.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/neverletgo.jpg" alt="Download Never Let Go Font for Free" /></a></p>
<h5>Pastel Crayon</h5>
<p><a href="http://www.dafont.com/pastel-crayon.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/pastelcrayon.jpg" alt="Download Pastel Crayon Font for Free" /></a></p>
<h5>Pointy</h5>
<p><a href="http://www.dafont.com/pointy.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/pointy.jpg" alt="Download Pointy Font for Free" /></a></p>
<h5>Prototype</h5>
<p><a href="http://www.dafont.com/prototype.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/prototype.jpg" alt="Download Prototype Font for Free" /></a></p>
<h5>Reklame Script</h5>
<p><a href="http://www.dafont.com/reklame-script-demo.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/reklamescript.jpg" alt="Download Reklame Script Font for Free" /></a></p>
<h5>Rezland</h5>
<p><a href="http://www.dafont.com/rezland.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/rezland.jpg" alt="Download Rezland Font for Free" /></a></p>
<h5>Rock Da Fonky Bit</h5>
<p><a href="http://www.dafont.com/rockdafonkybit.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/rockdafonkybit.jpg" alt="Download Rock Da Fonky Bit Font for Free" /></a></p>
<h5>Scratch</h5>
<p><a href="http://www.dafont.com/scratch.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/scratch.jpg" alt="Download Scratch Font for Free" /></a></p>
<h5>Sketch Block</h5>
<p><a href="http://www.dafont.com/sketch-block.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/sketchblock.jpg" alt="Download Sketch Block Font for Free" /></a></p>
<h5>Slant</h5>
<p><a href="http://www.dafont.com/slant.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/slant.jpg" alt="Download Slant Font for Free" /></a></p>
<h5>Times New Yorker</h5>
<p><a href="http://www.dafont.com/times-new-yorker.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/timesnewyorker.jpg" alt="Download Times New Yorker Font for Free" /></a></p>
<h5>Urban Sketch</h5>
<p><a href="http://www.dafont.com/urban-sketch.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/urbansketch.jpg" alt="Download Urban Sketch Font for Free" /></a></p>
<h5>Walk Around The Block</h5>
<p><a href="http://www.dafont.com/walk-around-the-block.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/walkaroundtheblock.jpg" alt="Download Walk Around The Block Font for Free" /></a></p>
<h5>Zitti</h5>
<p><a href="http://www.dafont.com/zitti.font" class="fontss" target="_blank"><img src="/wp-content/themes/custom/images/fonts/zitti.jpg" alt="Download Zitti Font for Free" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/freebies/30-free-high-quality-web-designer-fonts/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>18 Custom Web Safe Fonts From Google</title>
		<link>http://www.alovefordesign.com/css/18-custom-web-safe-fonts-from-google/</link>
		<comments>http://www.alovefordesign.com/css/18-custom-web-safe-fonts-from-google/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 13:02:57 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.alovefordesign.com/?p=260</guid>
		<description><![CDATA[Are you sick of using the same old fonts for your websites? Well as technology of the web advances we are now able to add other custom fonts to our web library now. Google offers a free service of offering an additional 18 web safe fonts that can be embedded into your site within two [...]]]></description>
			<content:encoded><![CDATA[<p>Are you sick of using the same old fonts for your websites? Well as technology of the web advances we are now able to add other custom fonts to our web library now. Google offers a free service of offering an additional 18 web safe fonts that can be embedded into your site within two lines of code, nifty huh? Adding a custom font is easy: just add a special stylesheet link to your web page, then use the font in a CSS style. All fonts are open source high quality type faces that are cross browser accessible.<span id="more-260"></span></p>
<p>I love how easy Google has made it to implement these additional fonts, i&#8217;ll explain below.</p>
<h4>Link Stylesheet</h4>
<p>Here you have to link the stylesheet which links to Google&#8217;s fonts on your <em>HTML document</em>.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://fonts.googleapis.com/css?family=Font+Name&quot;&gt;
</pre>
<h4>Adding a Style</h4>
<p>You need to define a selector with the font to activate it.</p>
<pre class="brush: css; title: ; notranslate">
body    {
      font-family: 'Font Name', serif;
}
</pre>
<h4>Here&#8217;s Their Example</h4>
<p>Below is how they linked the stylesheet, defined the font in body, and wrote something inside the body using an <em>h1</em> style.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
  &lt;head&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://fonts.googleapis.com/css?family=Tangerine&quot;&gt;
    &lt;style&gt;
      body {
        font-family: 'Tangerine', serif;
        font-size: 48px;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;Making the Web Beautiful!&lt;/h1&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
<h4>And Thats It!</h4>
<p>How easy was that? Now you have an additional 18 fonts you can use on your web site, Thank you Google.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/css/18-custom-web-safe-fonts-from-google/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>5 jQuery Must Have Code Snippets</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/</link>
		<comments>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 11:15:48 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://alovefordesign.com/?p=197</guid>
		<description><![CDATA[If you haven&#8217;t heard of jQuery yet, than you are definitely missing out on one of the most dynamic and stable JavaScript Libraries. With thousands of plug-ins and added widgets it makes jQuery one of the leaders in javascript frameworks. jQuery is designed to cut all hand-code in half if not more simplifying HTML document [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t heard of jQuery yet, than you are definitely missing out on one of the most dynamic and stable JavaScript Libraries. With thousands of plug-ins and added widgets it makes jQuery one of the leaders in javascript frameworks. jQuery is designed to cut all hand-code in half if not more simplifying HTML document traversing, event handling, animating, and Ajax interactions for more streamlined web development.<span id="more-197"></span></p>
<p>If you don&#8217;t already have a copy of javascript, one way that is growing fast is hot linking through Google &#8211; Which the idea is that it might already be cached in the users browser so there would be no downloading thus making a page load quicker.</p>
<h4>Downloading jQuery</h4>
<p>To do this, link google&#8217;s jQuery link (Note: T his one might be out dated so make sure you get the most up to date one). Insert this into the <em>head</em> tag of your page.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>If you would like to manual download you can vist the link <a href="http://docs.jquery.com/Downloading_jQuery" target="_blank">here to download</a>. With that downloaded you&#8217;ll have to load it into your page by inserting this code. (Note: Depending on your file structure, you&#8217;ll have to change the path)</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;path/to/file/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Now that you have jQuery installed correctly and working we can start adding functions for our website.</p>
<h1><span>1.)</span>Linkable Div&#8217;s</h1>
<h2>Make a whole div clickable to the user</h2>
<p>Lets start off by creating a new javascript file called &#8216;functions.js&#8217;. Inside function.js we&#8217;re going to add our jQuery code. So you&#8217;ll also have to link this javascript to our web site document as we did to jquery.js</p>
<p><a class="ss" href="/demos/clickable-box/index.html"><img src="/demos/clickable-box/ss.jpg" alt="Clickable Box Screenshot"></a></p>
<h4>Adding the JavaScript</h4>
<p>Now after that&#8217;s done, we&#8217;re first going to add a piece of code that tells the browsers to load this code when the page is finished (We need to actually do something with the function we create, so this calls the function into action.) So, insert the following code into the functions.js:</p>
<pre class="brush: jscript; title: ; notranslate">
//Clickable Boxes
$(document).ready(function(){

	$(&quot;#clickablebox&quot;).click(function(){
    	window.location=$(this).find(&quot;a&quot;).attr(&quot;href&quot;);return false;
	});

});
</pre>
<h4>Adding the HTML</h4>
<p>Now lets on to the HTML part of the project, add the following to your HTML document. This will create a div with a link and paragraph inside, the link is essential mainly because in order for the whole box to be clickable somewhere it needs to grab a URL inside of itself.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;#clickablebox&quot;&gt;
     &lt;h1&gt;&lt;a href=&quot;#&quot;&gt;Click Me&lt;/a&gt;&lt;h1&gt;
     &lt;p&gt;This whole div will be clickable to the click you define in the above or anywhere inside the div&lt;/p&gt;
&lt;/div&gt;
</pre>
<h4>Adding the CSS</h4>
<p>This portion is just for aesthetics only, just to show how you and customize it how ever you want.</p>
<pre class="brush: css; title: ; notranslate">
#clickablebox	{
	width: 250px;
	height: 250px;
	margin: 150px auto;
	background: #E6E6E6;
	padding: 15px;
	cursor: pointer;
}
</pre>
<h4>Final Code</h4>
<p>Here&#8217;s the final produced code, enjoy!</p>
<div class="viewdemo">
<a href="/demos/clickable-box/index.html">view demo<br /><span>Clickable Box</span></a>
</div>
<div class="download">
<a href="/demos/clickable-box/clickable-box.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Clickable Boxes&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
#clickablebox	{
	width: 250px;
	height: 250px;
	margin: 150px auto;
	background: #E6E6E6;
	padding: 15px;
	cursor: pointer;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//Clickable Boxes
$(document).ready(function(){

	$(&quot;#clickablebox&quot;).click(function(){
    	window.location=$(this).find(&quot;a&quot;).attr(&quot;href&quot;);return false;
	});

});
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
	&lt;div id=&quot;clickablebox&quot;&gt;
		&lt;h1&gt;&lt;a href=&quot;#&quot;&gt;Click Me&lt;/a&gt;&lt;/h1&gt;
		&lt;p&gt;This whole div will be clickable to the click you define in the above or anywhere inside the div&lt;/p&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h1><span>2.)</span>Table Stripes (Zebra)</h1>
<h2>Stripe the tr&#8217;s of your table for an easier read.</h2>
<p>So this ones an easy but effective tool for stripping a table to make it look more professional and easier to read.</p>
<p><a class="ss" href="/demos/table-stripe/index.html"><img src="/demos/table-stripe/ss.jpg" alt="Table Stripe Screenshot"></a></p>
<h4>Adding the JavaScript</h4>
<p>In the previous snippet there was a &#8216;functions.js&#8217; we created, we&#8217;ll use the same file or type of file for this one aswell. Inside the javascript file add the following code:</p>
<pre class="brush: jscript; title: ; notranslate">
//Table Stripes
$(document).ready(function(){
	$(&quot;table tr:even&quot;).addClass('stripe');
});
</pre>
<h4>Adding the HTML</h4>
<p>The following is just a plain table with the added class of <em>stripe</em> &#8211; The class calls the jQuery to add the stripe class to every even tr.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;stipe&quot;&gt;
		&lt;tr&gt;
			&lt;th&gt;Ipsum&lt;/th&gt;
			&lt;th&gt;Ipsum&lt;/th&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
		&lt;/tr&gt;
&lt;/table&gt;
</pre>
<h4>Adding the CSS</h4>
<p>Again, aesthetically speaking I&#8217;m providing this to show a customized example :</p>
<pre class="brush: css; title: ; notranslate">
body	{
	background: #111111;
}
table	{
	width: 585px;
	background: #333;
	color: #999;
	font-family: Georgia, &quot;Times New Roman&quot;, serif;
	letter-spacing: -1px;
	font-style: italic;
	margin: 150px auto;
}
table tr	{
	height: 45px;
	text-indent: 20px;
}
.stripe	{
	background: #444;
}
table th	{
	background: #004d99;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-style: normal;
	text-align: left;
}
</pre>
<h4>Final Code</h4>
<p>Here&#8217;s the finished product.</p>
<div class="viewdemo">
<a href="/demos/table-stripe/index.html" target="_blank">view demo<br /><span>Clickable Box</span></a>
</div>
<div class="download">
<a href="/demos/table-stripe/table-stripe.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Table Stripes&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body	{
	background: #111111;
}
table	{
	width: 585px;
	background: #333;
	color: #999;
	font-family: Georgia, &quot;Times New Roman&quot;, serif;
	letter-spacing: -1px;
	font-style: italic;
	margin: 150px auto;
}
table tr	{
	height: 45px;
	text-indent: 20px;
}
.stripe	{
	background: #444;
}
table th	{
	background: #004d99;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-style: normal;
	text-align: left;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//Table Stripes
$(document).ready(function(){
	$(&quot;table tr:even&quot;).addClass('stripe');
});
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;stipe&quot;&gt;
		&lt;tr&gt;
			&lt;th&gt;Ipsum&lt;/th&gt;
			&lt;th&gt;Ipsum&lt;/th&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
				&lt;td&gt;Ipsum&lt;/td&gt;
		&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h1><span>3.)</span>Swap Input Fields</h1>
<p>In this snippet there is a default text placed in the specified input field (eg. Search, Textfield) and when the user goes to click the form, the text clears ready for the user to input their information.</p>
<p><a class="ss" href="/demos/swap-values/index.html"><img src="/demos/swap-values/ss.jpg" alt="Swap Values Screenshot"></a></p>
<h4>Adding the JavaScript</h4>
<p>The following just indicates as the user clicks the input box the default text will clear and if there is nothing when the user clicks away then replace with original text.</p>
<pre class="brush: jscript; title: ; notranslate">
// Form Swap Values
$(function() {
	swapValues = [];
		$(&quot;input.searchfield&quot;).each(function(i){
			swapValues[i] = $(this).val();
			$(this).focus(function(){
				if ($(this).val() == swapValues[i]) {
					$(this).val(&quot;&quot;);
				}
			}).blur(function(){
				if ($.trim($(this).val()) == &quot;&quot;) {
					$(this).val(swapValues[i]);
			}
		});
	});
});
</pre>
<h4>Adding the HTML</h4>
<p>And now you add a simple input with the proper class:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;input type=&quot;text&quot; value=&quot;Search...&quot; maxlength=&quot;25&quot; id=&quot;search-text&quot; name=&quot;s&quot; class=&quot;searchfield&quot;&gt;
</pre>
<h4>Final Code</h4>
<p>Simple as that.</p>
<div class="viewdemo">
<a href="/demos/swap-values/index.html" target="_blank">view demo<br /><span>Clickable Box</span></a>
</div>
<div class="download">
<a href="/demos/swap-values/swap-values.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Swap Values&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body	{
	background: #111111;
}
div	{
	width: 250px;
	height: 40px;
	margin: 150px auto;
	background: #222;
	padding: 15px;
	cursor: pointer;
	text-transform: capitalize;
	border: 20px solid #1b1b1b;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #666;
}
div a	{
	font-family: Arial, Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
	letter-spacing: -3px;
}
input	{
	padding: 7px;
	color: #CCC;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: -2px;
	width: 200px;
	margin: 50px 0 0 15px;
	display: block;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
// Form Swap Values
$(function() {
	swapValues = [];
		$(&quot;input.searchfield&quot;).each(function(i){
			swapValues[i] = $(this).val();
			$(this).focus(function(){
				if ($(this).val() == swapValues[i]) {
					$(this).val(&quot;&quot;);
				}
			}).blur(function(){
				if ($.trim($(this).val()) == &quot;&quot;) {
					$(this).val(swapValues[i]);
			}
		});
	});
});

&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
	&lt;div&gt;
		&lt;input style=&quot;margin: 0 auto;&quot; type=&quot;text&quot; value=&quot;Search...&quot; maxlength=&quot;45&quot; id=&quot;search-text&quot; name=&quot;s&quot; class=&quot;searchfield&quot;&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h1><span>4.)</span> Back To Top Link</h1>
<p>These &#8216;back to top&#8217; links can be essential for pages that have a long vertical stretch, allowing the user to easily glide back to the top of the page to navigate smoothly. You will need an extra plugin script for this to take action, download the small javascript file and link it to your page as you did with the jQuery script. You can grab a copy of <a href="http://plugins.jquery.com/project/ScrollTo"><em>scrollTo</em> here</a>.</p>
<p><a class="ss" href="/demos/back-top/index.html"><img src="/demos/back-top/ss.jpg" alt="Back To Top Screenshot"></a></p>
<h4>Adding the JavaScript</h4>
<p>This uses the class .top to define where what link is going to send the user to the top.</p>
<pre class="brush: jscript; title: ; notranslate">
// Back To Top
$(document).ready(function(){
  $('.top').click(function() {
	$(document).scrollTo(0,500);
  });
});
</pre>
<h4>Adding the HTML</h4>
<p>All you need to do is make sure you have a link defined with the class .top</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;#&quot; class=&quot;top&quot;&gt;Back To Top&lt;/a&gt;
</pre>
<h4>Final Code</h4>
<p>Simplicity.</p>
<div class="viewdemo">
<a href="/demos/back-top/index.html">view demo<br /><span>Back To Top</span></a>
</div>
<div class="download">
<a href="/demos/back-top/back-top.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Swap Values&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body	{
	background: #111111;
}
div	{
	width: 250px;
	height: 840px;
	margin: 150px auto;
	background: #222;
	padding: 15px;
	text-transform: capitalize;
	border: 20px solid #1b1b1b;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #666;
	position: relative;
}
div a	{
	font-family: Arial, Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
	letter-spacing: -2px;
	font-size: 16px;
	bottom: 0px;
	display: block;
	position: absolute;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.scrollTo.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
// Back To Top
$(document).ready(function(){
  $('.top').click(function() {
	$(document).scrollTo(0,500);
  });
});
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
	&lt;div&gt;
		&lt;a href=&quot;#&quot; class=&quot;top&quot;&gt;Back To Top&lt;/a&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h1><span>5.)</span>On Hover Add/Remove Class</h4>
<p>This one is almost essential for dumb fixes for IE6, as it doesn&#8217;t support most of the common hovers now in standard browsers &#8211; So YAY for jQuery as it comes to rescue!</p>
<p><a class="ss" href="/demos/on-hover/index.html"><img src="/demos/on-hover/ss.jpg" alt="On Hover Screenshot"></a></p>
<h4>Adding the JavaScript</h4>
<pre class="brush: jscript; title: ; notranslate">
//On Hover
$('.onhover').hover(
   function(){ $(this).addClass('hover_style_class') },
   function(){ $(this).removeClass('hover_style_class') }
)
</pre>
<h4>Adding the HTML</h4>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;onhover&quot;&gt;
Now I Hover!
&lt;/div&gt;
</pre>
<h4>Final Code</h4>
<p>So, with some added css you can create a link with our first tutorial on clickable divs.</p>
<div class="viewdemo">
<a href="/demos/on-hover/index.html" target="_blank">view demo<br /><span>Clickable Box</span></a>
</div>
<div class="download">
<a href="/demos/on-hover/on-hover.zip">download<br /><span>Zip Package</span></a>
</div>
<div class="clear"></div>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;On Hover&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body	{
	background: #111111;
}
div	{
	width: 250px;
	height: 125px;
	margin: 150px auto;
	background: #222;
	padding: 15px;
	cursor: pointer;
	text-transform: capitalize;
	border: 20px solid #1b1b1b;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #666;
}
div h1	{
	font-family: Arial, Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
	letter-spacing: -3px;
}
.hover_style_class	{
	background: #282828;
	border-color: #1d1d1d;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//Clickable Boxes
$(document).ready(function(){

	//On Hover
	$('.onhover').hover(
	   function(){ $(this).addClass('hover_style_class') },
	   function(){ $(this).removeClass('hover_style_class') }
	)

});
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
	&lt;div class=&quot;onhover&quot;&gt;
		&lt;h1&gt;Hover My Div&lt;/h1&gt;
		&lt;p&gt;This div demonstrates how javascript can be used to hover specific selectors.&lt;/p&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Welcome To ALoveForDesign.com</title>
		<link>http://www.alovefordesign.com/general/welcome-to-alovefordesign-com/</link>
		<comments>http://www.alovefordesign.com/general/welcome-to-alovefordesign-com/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 00:43:21 +0000</pubDate>
		<dc:creator>Justin Mathew</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://alovefordesign.com/?p=189</guid>
		<description><![CDATA[Greetings and welcome to the first official welcoming of our web design blog. We aim to give back information to the online world of web design because we strongly believe in free information exchange and helping the new age of technology on the web. Over the generations web design has exploded into main stream media [...]]]></description>
			<content:encoded><![CDATA[<p>Greetings and welcome to the first official welcoming of our web design blog. We aim to give back information to the online world of web design because we strongly believe in free information exchange and helping the new age of technology on the web. Over the generations web design has exploded into main stream media over running most of the world&#8217;s global broadcasting: tv, radio, newspaper, magazine &#8211; These all have been put available online and having a web site is almost a must now-a-days. <span id="more-189"></span></p>
<h4>That&#8217;s Where We Come In</h4>
<p>We know half the people in this world are getting advanced technology thrown at them and are expected to understand and follow the I.T. trends. We aim to aid the process of getting to know and understand what having a web site is all about, and if you put enough time and energy into learning the how to&#8217;s of web site design then the payback can definitely be worth it.</p>
<h4>Free Stuff</h4>
<p>Who doesn&#8217;t like free stuff? Here at ALoveForDesign.com we do not only offer free downloads of tutorials and projects but we&#8217;ll be holding contests in the next couple of months for people to win some real prizes.</p>
<h4>Professional Services</h4>
<p>We also provide web design services if you would like to check out more information on that you can go over to our About Page, which explains in more detail.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alovefordesign.com/general/welcome-to-alovefordesign-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

