<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Tutorial Dog</title>
	
	<link>http://tutorialdog.com</link>
	<description>Man's best friend for learning</description>
	<pubDate>Sat, 05 Jul 2008 15:00:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/TutorialDog" type="application/rss+xml" /><feedburner:emailServiceId>1246877</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>Presidential Pattern in Photoshop - McCain vs Obama</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/323993062/</link>
		<comments>http://tutorialdog.com/presidential-pattern-in-photoshop-mccain-vs-obama/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 12:00:18 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[Photoshop Tutorial]]></category>

		<category><![CDATA[Barack Obama]]></category>

		<category><![CDATA[illustrator]]></category>

		<category><![CDATA[John McCain]]></category>

		<category><![CDATA[paper]]></category>

		<category><![CDATA[pattern]]></category>

		<category><![CDATA[pattern making]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[vector]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=277</guid>
		<description><![CDATA[In this Photoshop tutorial, we'll dive into a pattern inspired by the artwork in the <a href="http://www.makemeamerica.com/"> stephen Colbert book</a> "<em>I Am America (And So Can You)</em>" (the book has some very good illustrations). The tutorial will cover creating vector artwork from a photograph, taking the vector artwork and making a repeatable pattern and then creating a groovy wallpaper that utilizes the pattern. For the pattern, we'll pit Barack Obama versus John McCain. As one reader pointed out in the <a href="http://tutorialdog.com/barack-obamas-coldplay-ipod-itunes-commercial-in-photoshop/">last tutorial</a> which featured only Barack Obama, we'll feature both canidates in the upcoming Presidential election.]]></description>
			<content:encoded><![CDATA[<div class="floatl"><script type="text/javascript"><!--
google_ad_client = "pub-0629829662183690";
/* 180x150, Chalk */
google_ad_slot = "4805402790";
google_ad_width = 180;
google_ad_height = 150;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>In this Photoshop tutorial, we&#8217;ll dive into a pattern inspired by the artwork in the <a href="http://www.makemeamerica.com/"> Stephen Colbert book</a> &#8220;<em>I Am America (And So Can You)</em>&#8221; (the book has some very good illustrations). The tutorial will cover creating vector artwork from a photograph, taking the vector artwork and making a repeatable pattern and then creating a groovy wallpaper that utilizes the pattern. For the pattern, we&#8217;ll pit Barack Obama versus John McCain. As one reader pointed out in the <a href="http://tutorialdog.com/barack-obamas-coldplay-ipod-itunes-commercial-in-photoshop/">last tutorial</a> which featured only Barack Obama, we&#8217;ll feature both canidates in the upcoming Presidential election.<br />
<a class="files2" href="http://tutorialdog.com/wp-content/uploads/2008/06/pattern_tutorial.zip"><strong>Download PSD Files</strong></a></p>
<h3>Step 1: Gather resources</h3>
<p>First we need to acquire two profile photos of <a href="http://flickr.com/photos/chico_almendra/2272301841/sizes/l/">Barack Obama</a> and <a href="http://flickr.com/photos/carianoff/2188722036/">John McCain</a>.  These two photos will help create vector illustrations of the candidates. For creating a wallpaper texture, we need a <a href="http://www.sxc.hu/photo/1020905">good paper texture</a>.</p>
<h3>Step 2: Setting up the photos to vectorize</h3>
<p>We need to create simple two tone vectors for Obama and McCain and to help us in creating the vector we&#8217;ll use the Stamp filter (<em>Filters &gt;&gt; Sketch &gt;&gt; Stamp</em>). I removed the background quickly using the magic wand tool, and then applied the stamp filter. The purpose of using the stamp tool is to provide a rough estimate of where the paths need to follow along.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/stampfilter.gif"><img class="alignnone size-medium wp-image-278" title="stampfilter" src="http://tutorialdog.com/wp-content/uploads/2008/06/stampfilter-550x332.gif" alt="Stamp Filter" width="550" height="332" /></a></div>
<h3>Step 3: Create vector paths</h3>
<div class="floatr"><a href="http://www.colourlovers.com/palette/105188/Democratic_Debates" target="_blank"><img style="width: 240px; height: 120px; border: 0 none;" src="http://www.colourlovers.com/images/badges/p/105/105188_Democratic_Debates.png" alt="Democratic Debates" /></a></div>
<p>To actually create the paths, I used Adobe Illustrator instead of Photoshop. (I find Illustrator better for hardcore use of the pen tool, but if you are more comfortable with Photoshop, it&#8217;ll do the job too.) I took both photos as well as both photos with the stamp filter applied, brought it over to Illustrator, and created pen paths using the photos as a guide. I provided some detail for the jacket and tie, but for the most part, you want make the area below the neck a long rectangle. Since the Obama&#8217;s photo had him wearing a suit and tie and I want some conformity, I copied the vector and added McCain&#8217;s head to the suit and tie. I used the dark colors from the palette below I found on Colour Lovers and made the Obama vectore blue: #2140A2 &amp; McCain red: #BB1A1A.</p>
<p><strong>Using Illustrator:</strong> If you are going to use Illustrator for creating the vectors, copy and paste the four images (photos and stamped photos) from Photoshop into an Illustrator document. I made sure that each photo was on it&#8217;s own layer, and locked each of these layers. I created the Obama and McCain vector paths on their own separate layers as well. It&#8217;s a good idea to place the photos on their own locked layers because you won&#8217;t be able to edit the images in Illustrator, and you will be able to quickly turn off a photo layer at will. I created the silhouettes of the characters using a 2 pt stroke path, then create shapes filled with the correct color to show details for the candidates hair, eyes, mouth and chin.</p>
<p> </p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/vector1.gif"><img class="alignnone size-medium wp-image-279" title="vector1" src="http://tutorialdog.com/wp-content/uploads/2008/06/vector1-550x518.gif" alt="Vector Obama McCain" width="550" height="518" /></a><br />
<a href="http://tutorialdog.com/wp-content/uploads/2008/06/vector2.gif"><img class="alignnone size-medium wp-image-280" title="vector2" src="http://tutorialdog.com/wp-content/uploads/2008/06/vector2-550x509.gif" alt="Vector McCain Obama" width="550" height="509" /></a></div>
<h3>Step 4: Creating the Pattern</h3>
<p>Now we want to bring the vector paths back into Photoshop to create the pattern. I created a large document (3500 square pixel to be exact) so that there was space to create the pattern and also have high resolution vectors. Copy and paste Obama and McCain to their own separate layers as &#8220;pixels&#8221; (making sure they were of equal size proportions). I applied an outside stroke using Layer Styles to each candidate so that the pattern could smoothly transition from one vector to the other. Started to create the pattern by duplicating the layers and placing each vector layer above the next. Once you have a few repeats in the column pattern, duplicate the column, and make another row so that they are next to each other, but offset the pattern so that Obama and McCain are directly looking at each other.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/pattern1.gif"><img class="alignnone size-medium wp-image-281" title="pattern1" src="http://tutorialdog.com/wp-content/uploads/2008/06/pattern1-550x399.gif" alt="Stroke Layer Style" width="550" height="399" /></a></div>
<p>If you&#8217;ve ever made a complicated and precise pattern, you&#8217;ll know that to make the pattern repeat correctly, you&#8217;ll need to pick a spot in the pattern, and then find that exact same spot in the pattern again. What helped me was to use the guides to dissect Obama &amp; McCain at their noses. (To make a guide by clicking on the document ruler and drag out onto the document) To start the pattern on the left, I aligned a guide snug against the beginning of McCain&#8217;s nose. I could easily place the right end guide by finding the beginning of McCain&#8217;s nose horizontally to where it touched the other guide. For the top and bottom guides, I again used their noses to find the area of repeat.</p>
<p>Using the guides helped properly align the pattern as well. When I created the pattern initially, some of the face offs (when the two where looking directly at each other) where slightly off because I began manually repeating the pattern. Using the guides help reveal and solve the problem. Once you properly align the pattern and created guides, take the rectangular marquee selection tool, and create a selection along the guides. To make the pattern, go to <em>Edit &gt;&gt; Define Pattern&#8230;</em></p>
<p>To apply the pattern to a layer, take the paint bucket tool, and set the fill to &#8216;Pattern&#8217; and pick the pattern just made.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/pattern2.jpg"><img class="alignnone size-medium wp-image-283" title="pattern2" src="http://tutorialdog.com/wp-content/uploads/2008/06/pattern2-506x600.jpg" alt="Define Pattern" width="506" height="600" /></a><a href="http://tutorialdog.com/wp-content/uploads/2008/06/pattern3.jpg"><img class="alignnone size-medium wp-image-284" title="pattern3" src="http://tutorialdog.com/wp-content/uploads/2008/06/pattern3.jpg" alt="Paint Bucket Pattern" width="439" height="260" /></a></div>
<h3>Step Five: Creating the Wallpaper</h3>
<p>I created a new document at 2560 px by 1600 px dimensions. Since I wanted to tilt and reduce the pattern size, I created another 12000 x 12000 px document (yes those dimensions are correct) and filled the document with the pattern. Once Photoshop filled the document with the pattern (it took a while on my machine) I brought the layer over to the wallpaper sized document and rotated and reduce the layer.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/wallpaper1.gif"><img class="alignnone size-medium wp-image-285" title="wallpaper1" src="http://tutorialdog.com/wp-content/uploads/2008/06/wallpaper1-550x343.gif" alt="Wallpaper 1" width="550" height="343" /></a></div>
<p>I took a <a href="http://www.sxc.hu/photo/1020906">photo of aged paper</a> and put it on top of the pattern layer. I duplicated the paper layer and set one layer to Blending mode Lighten at 9% opacity and Multiply at 46% opacity.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/wallpaper2.jpg"><img class="alignnone size-medium wp-image-286" title="wallpaper2" src="http://tutorialdog.com/wp-content/uploads/2008/06/wallpaper2-550x343.jpg" alt="Wallpaper with texture" width="550" height="343" /></a></div>
<p>I then created a white layer above the pattern set to Soft Light blending mode at 28% opacity. What this does is make the colors in the pattern look more faded and worn. Then I created a new layer to darken the outer edges of the wallpaper. To give the effect of light shining in the middle, I added a radial gradient set to Overlay at 10%.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/wallpaper3.jpg"><img class="alignnone size-medium wp-image-287" title="wallpaper3" src="http://tutorialdog.com/wp-content/uploads/2008/06/wallpaper3-550x369.jpg" alt="Wallpaper and Layers" width="550" height="369" /></a>
</div>
<h3>Final Result</h3>
<div class="imagef">
<a href="http://tutorialdog.com/wp-content/uploads/2008/06/wallpaper.jpg"><img class="alignnone size-medium wp-image-288" title="wallpaper" src="http://tutorialdog.com/wp-content/uploads/2008/06/wallpaper-550x343.jpg" alt="Wallpaper Final" width="550" height="343" /></a></div>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=93Droe"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=93Droe" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=hnzcsJ"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=hnzcsJ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=wRvYWj"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=wRvYWj" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=Gu5g3j"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=Gu5g3j" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=8JLWFj"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=8JLWFj" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=AB8SOj"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=AB8SOj" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=oBEodJ"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=oBEodJ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/323993062" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/presidential-pattern-in-photoshop-mccain-vs-obama/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Fpresidential-pattern-in-photoshop-mccain-vs-obama%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/presidential-pattern-in-photoshop-mccain-vs-obama/</feedburner:origLink></item>
		<item>
		<title>Barack Obama’s Coldplay iPod + iTunes Commercial in Photoshop</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/311250564/</link>
		<comments>http://tutorialdog.com/barack-obamas-coldplay-ipod-itunes-commercial-in-photoshop/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 12:00:33 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[Photoshop Tutorial]]></category>

		<category><![CDATA[apple]]></category>

		<category><![CDATA[Barack Obama]]></category>

		<category><![CDATA[coldplay]]></category>

		<category><![CDATA[color]]></category>

		<category><![CDATA[effect]]></category>

		<category><![CDATA[iPod]]></category>

		<category><![CDATA[iTunes]]></category>

		<category><![CDATA[lighting]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[silhouet]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=249</guid>
		<description><![CDATA[<img align="right" src="http://tutorialdog.com/wp-content/uploads/2008/06/obamapreview.png" alt="Obama Preview" title="obamapreview" width="84" height="84" class="alignright" /> This Photoshop tutorial will guide you through creating an effect in the vein of the most recent <a href="http://www.apple.com/itunes/ads/sonic/">Coldplay iTunes commercial</a>. The Coldplay commercial uses colorful backdrops, with various textures, smoke and lighting effects. For this tutorial, we’ll take a photo of Barack Obama, mask it, create a silhouet and create the colorful background. This tutorial includes a download to the PSD file so you can see how the layers are set up.]]></description>
			<content:encoded><![CDATA[<p><img align="right" src="http://tutorialdog.com/wp-content/uploads/2008/06/obamapreview.png" alt="Obama Preview" title="obamapreview" width="84" height="84" class="alignright" /> This Photoshop tutorial will guide you through creating an effect in the vein of the most recent <a href="http://www.apple.com/itunes/ads/sonic/">Coldplay iTunes commercial</a>. The Coldplay commercial uses colorful backdrops, with various textures, smoke and lighting effects. For this tutorial, we’ll take a photo of Barack Obama, mask it, create a silhouet and create the colorful background. This tutorial includes a download to the PSD file so you can see how the layers are set up.<br />
<strong><a class="files2" href="http://tutorialdog.com/wp-content/uploads/2008/06/iPodobama.psd">Download the Final PSD</a></strong></p>
<div class="floatl"><script type="text/javascript"><!--
google_ad_client = "pub-0629829662183690";
/* 180x150, Chalk */
google_ad_slot = "4805402790";
google_ad_width = 180;
google_ad_height = 150;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<h3>Step 1: The Person</h3>
<p>I start out with a 1200 px x 800p x document with a black background. For the tutorial, I&#8217;ll use a <a title="Barack Obama Photo" href="http://flickr.com/photos/seiu/374553988/sizes/l/#cc_license">photo of Barack Obama</a> on Flickr. First, we&#8217;ll need to take the photo and strip Barack of the background. To do this, create a mask for the photo layer, and blacken out the mask layer with a hard brush around Obama. Once you&#8217;ve completely masked out Obama, bring the layer over the 1200 px  by 800px document. Desaturate the layer by going to Image &gt;&gt; Adjustments &gt;&gt; Desaturate. Next you need to take a large soft black brush with a low opacity and darken his appearence. It&#8217;s up to you to decide how dark you want certain areas, but I wanted to make his hands and shirt appear lighter, so I made sure not to darken these areas too much. You&#8217;ll want to keep one side of Obama&#8217;s face brighter than the rest so that it appears light is hitting that area.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/person.jpg"><img class="alignnone size-medium wp-image-261" title="person" src="http://tutorialdog.com/wp-content/uploads/2008/06/person-550x231.jpg" alt="Barack Obama" width="550" height="231" /></a></div>
<h3>Step 2: Color Background</h3>
<p>The next step involves creating the lighting behind the person. While you may be tempted to use radial gradients, I found using a soft low opacity brush did the best job. You want to keep the hardness of the brush to 0% and the opacity between 5% and 15%. Don&#8217;t be afraid either to keep all colors on one layer. The colors were the basic CMYK colors of Cyan (#019CFA) Magenta (#EB00C0) and Yellow (#F5DC08).</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/colors.jpg"><img class="alignnone size-medium wp-image-253" title="colors" src="http://tutorialdog.com/wp-content/uploads/2008/06/colors-550x366.jpg" alt="Colorful Background" width="550" height="366" /></a></div>
<p>Now that there is vibrant colors behind Obama, create a new layer above the colors layer. Take a white low opacity brush again, and lighten up the most vibrant part of the previous layer. This helps give a more realistic feel to the lights.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/colors21.jpg"><img class="alignnone size-medium wp-image-268" title="colors21" src="http://tutorialdog.com/wp-content/uploads/2008/06/colors21-550x366.jpg" alt="White Colors" width="550" height="366" /></a></div>
<p>Take a white brush again and on a new layer paint softly the area above Obama&#8217;s shoulders. Then set the <a href="/glossary/#blendingmode">blending mode</a> of this layer “Overlay” and duplicate the layer. What this does is create the appearance of a burst of light directly behind Obama. As a final measurement to liven up the background, create a new layer filled with white, and set the blending mode to Overlay. Set the opacity of layer to 45%.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/colors2.jpg"><img class="alignnone size-medium wp-image-254" title="colors2" src="http://tutorialdog.com/wp-content/uploads/2008/06/colors2-550x366.jpg" alt="Whiten Background" width="550" height="366" /></a><br />
<a href="http://tutorialdog.com/wp-content/uploads/2008/06/colors3.jpg"><img class="alignnone size-medium wp-image-255" title="colors3" src="http://tutorialdog.com/wp-content/uploads/2008/06/colors3-550x366.jpg" alt="Burst of Light" width="550" height="366" /></a></div>
<h3>Step 3: Background Texture</h3>
<p>For this next step, we&#8217;ll require the two free Watercolor Textures from <a href="http://www.gomedia.us/arsenal/affiliates/idevaffiliate.php?id=319">GoMedia&#8217;s Arsenal</a> website. You can find the watercolors under &#8220;Freebies&#8221;. Desaturate the red and yellow watercolor ( Image &gt;&gt; Adjustments &gt;&gt; Desaturate ) and invert ( Image &gt;&gt; Adjustment &gt;&gt; Invert ). Set the blending mode of this layer to &#8220;Screen&#8221; so only the light shows through. Reduce the size and place the texture at the bottom left of Obama. For the blue texture, desaturate the layer, and set the blending mode to &#8220;Multiply&#8221;. Rotate and place this layer at near the top portion of Obama.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/texture1.jpg"><img class="alignnone size-medium wp-image-256" title="texture1" src="http://tutorialdog.com/wp-content/uploads/2008/06/texture1-550x366.jpg" alt="Texture" width="550" height="366" /></a></div>
<h3>Step 4: Background Dots</h3>
<p>First create a new layer above everything but the photo of the person. This step will deal with using the brush tool and it&#8217;s settings. Set the brush to a diameter of 9 and a hardness of 100%. In the Brushes palette, set the Size, Scattering and Opacity Jitters up to 100%. Also set the spacing to 1000%. This will change the settings of the brush to create non-uniform circles randomly around the document. Once you&#8217;ve create a decent amount of circles around the lights, set the layer to <a href="/glossary/#blendingmode">blending mode</a> &#8220;Overlay&#8221; and duplicate the layer.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/dots1.gif"><img class="alignnone size-medium wp-image-257" title="dots1" src="http://tutorialdog.com/wp-content/uploads/2008/06/dots1.gif" alt="Brush Settings 1" width="352" height="452" /></a><a href="http://tutorialdog.com/wp-content/uploads/2008/06/dots2.gif"><img class="alignnone size-medium wp-image-258" title="dots2" src="http://tutorialdog.com/wp-content/uploads/2008/06/dots2.gif" alt="Brush Settings 2" width="352" height="452" /></a><a href="http://tutorialdog.com/wp-content/uploads/2008/06/dots3.gif"><img class="alignnone size-medium wp-image-259" title="dots3" src="http://tutorialdog.com/wp-content/uploads/2008/06/dots3.gif" alt="Brush Settings 3" width="352" height="452" /></a><a href="http://tutorialdog.com/wp-content/uploads/2008/06/dots.jpg"><img class="alignnone size-medium wp-image-260" title="dots" src="http://tutorialdog.com/wp-content/uploads/2008/06/dots-550x366.jpg" alt="Dots" width="550" height="366" /></a></div>
<h3>Step 5: Smoke</h3>
<p>On a new layer, take a small semi-soft white brush and make a scribbled line. Apply the Wave filter (Filters &gt;&gt; Distort &gt;&gt; Wave); the settings below worked for me. The take the Smudge Tool at 60% Strength and begin to smudge the line in an upwards direction. You can move around a whole section, but a key to creating a more flame look, only smudge the upper half of and particular section the scribble.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/smoke1.gif"><img class="alignnone size-medium wp-image-262" title="smoke1" src="http://tutorialdog.com/wp-content/uploads/2008/06/smoke1.gif" alt="Scribble" width="382" height="247" /></a><a href="http://tutorialdog.com/wp-content/uploads/2008/06/smoke2.gif"><img class="alignnone size-medium wp-image-263" title="smoke2" src="http://tutorialdog.com/wp-content/uploads/2008/06/smoke2.gif" alt="Motion Filter" width="497" height="403" /></a><a href="http://tutorialdog.com/wp-content/uploads/2008/06/smoke3.gif"><img class="alignnone size-medium wp-image-264" title="smoke3" src="http://tutorialdog.com/wp-content/uploads/2008/06/smoke3.gif" alt="Motion Filter Effect" width="397" height="243" /></a></div>
<p>I used the eraser tool to remove and darken some parts of the smoke. The next step is to give some color to the smoke via Hue / Saturation menu. Choose the colorize option, and move the saturation and Hue to the right, and the lightness to the left.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/06/smoke4.jpg"><img class="alignnone size-medium wp-image-265" title="smoke4" src="http://tutorialdog.com/wp-content/uploads/2008/06/smoke4.jpg" alt="Hue Saturation" width="461" height="285" /></a></div>
<p>Another Way to do this by using stock photography of smoke. I took a stock photograph of smoke against a black background, and like the texture behind the Obama, you can set the blending mode to screen to get rid of the black background.  I used a black brush to darken the smoke at the edges, and resized and changed the coloring.</p>
<div class="imagef">
<a href='http://tutorialdog.com/wp-content/uploads/2008/06/213819_9353.jpg'><img src="http://tutorialdog.com/wp-content/uploads/2008/06/213819_9353-550x429.jpg" alt="Original Smoke" title="213819_9353" width="550" height="429" class="alignnone size-medium wp-image-272" /></a><a href='http://tutorialdog.com/wp-content/uploads/2008/06/smoke5.jpg'><img src="http://tutorialdog.com/wp-content/uploads/2008/06/smoke5.jpg" alt="Smoke Photo 2" title="smoke5" width="550" height="430" class="alignnone size-medium wp-image-273" /></a>
</div>
<h3>Conclusion</h3>
<p>That&#8217;s all folks. If you give this tutorial try yourself, please feel free to leave a comment with a link to the image below. You can find the little <a href="http://www.barackobama.com/downloads/">Obama logo on his own download webpage</a>. I&#8217;m including the PSD for this tutorial as well.</p>
<div class="imagef"><a href='http://tutorialdog.com/wp-content/uploads/2008/06/final21.jpg'><img src="http://tutorialdog.com/wp-content/uploads/2008/06/final21-550x366.jpg" alt="Final Result" title="final21" width="550" height="366" class="alignnone size-medium wp-image-275" /></a></div>
<p><div class="bannerimagead">
	<img align="left" src="http://dr-photoshop.com/zfile/tutorials/tuticons/40x40.gif" alt="Image" />
	<script type="text/javascript"><!--
google_ad_client = "pub-0629829662183690";
/* 468x60, Chalk */
google_ad_slot = "8512407406";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=bcRIM6"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=bcRIM6" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=W1LcjI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=W1LcjI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=LEluni"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=LEluni" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=bQdk6i"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=bQdk6i" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=7sOkei"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=7sOkei" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=9lX6fi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=9lX6fi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=HIOgrI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=HIOgrI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/311250564" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/barack-obamas-coldplay-ipod-itunes-commercial-in-photoshop/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Fbarack-obamas-coldplay-ipod-itunes-commercial-in-photoshop%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/barack-obamas-coldplay-ipod-itunes-commercial-in-photoshop/</feedburner:origLink></item>
		<item>
		<title>Design Videos Roundup #1</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/307986492/</link>
		<comments>http://tutorialdog.com/design-videos-roundup-1/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 12:00:32 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[Video]]></category>

		<category><![CDATA[illustration]]></category>

		<category><![CDATA[mootools]]></category>

		<category><![CDATA[time lapse]]></category>

		<category><![CDATA[typography tutorial]]></category>

		<category><![CDATA[video tutorials]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=246</guid>
		<description><![CDATA[<img src="http://tutorialdog.com/wp-content/uploads/2008/05/video.png" alt="Video" title="video" width="170" height="73" class="alignright" align="right" /> You know, sometimes I just don't like to read. Sometimes I just like to sit and watch something rather than dig myself in text. This article hopes to fulfill that video thirst in you life in the matters of design. In our first installment, we'll take you from lectures on mootools to moving text to time lapse art creation. Hope you enjoy, and if you have a video you know is good, please leave a comment.]]></description>
			<content:encoded><![CDATA[<p><img src="http://tutorialdog.com/wp-content/uploads/2008/05/video.png" alt="Video" title="video" width="170" height="73" class="alignright" align="right" /> You know, sometimes I just don&#8217;t like to read. Sometimes I just like to sit and watch something rather than dig myself in text. This article hopes to fulfill that video thirst in you life in the matters of design. In our first installment, we&#8217;ll take you from lectures on mootools to moving text to time lapse art creation. Hope you enjoy, and if you have a video you know is good, please leave a comment.</p>
<h3>Science Machine</h3>
<p>This first video is a time lapse of the creation of an illustration called &#8220;Science Machine&#8221;. The work is amazing &amp; concept is equally amazing. The art mixes all types of science and life in all forms.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.vimeo.com/moogaloop.swf?clip_id=927062&amp;server=www.vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=01AAEA&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="550" height="344" src="http://www.vimeo.com/moogaloop.swf?clip_id=927062&amp;server=www.vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=01AAEA&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h3>Mootools Presentation</h3>
<p>Next up is a more technical video of someone explaining the Mootools framework and its competitors ect. Not as cool as the first video, but still worth the watch if you&#8217;ve got time.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="413" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.vimeo.com/moogaloop.swf?clip_id=418874&amp;server=www.vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=01AAEA&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="550" height="413" src="http://www.vimeo.com/moogaloop.swf?clip_id=418874&amp;server=www.vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=01AAEA&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h3>Who&#8217;s on First? Typography</h3>
<p>This next video is a video of a cool use of typography and video. It takes a famous skit, and makes the text come alive while the audio is playing.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/ejweI0EQpX8&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/ejweI0EQpX8&amp;hl=en" wmode="transparent"></embed></object></p>
<h3>Photoshop Banner</h3>
<p>I made this video well after I published the tutorial, but nevertheless it is still worth watching.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/mLJ-Dt1vz1Q&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/mLJ-Dt1vz1Q&amp;hl=en" wmode="transparent"></embed></object></p>
<h3>iPod Graffiti Tutorial</h3>
<p>This is a nice tutorial on creating your own iPod graffiti photo like the commercial with Eminem from back a way.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/xDk9rSK12cA&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/xDk9rSK12cA&amp;hl=en" wmode="transparent"></embed></object></p>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=gKxmbB"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=gKxmbB" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=AfayvI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=AfayvI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=JooDsi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=JooDsi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=BZbUVi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=BZbUVi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=PM9VXi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=PM9VXi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=jCfR8i"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=jCfR8i" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=tQjQzI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=tQjQzI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/307986492" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/design-videos-roundup-1/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Fdesign-videos-roundup-1%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/design-videos-roundup-1/</feedburner:origLink></item>
		<item>
		<title>Link &amp; Meta Tags in HTML</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/302930460/</link>
		<comments>http://tutorialdog.com/link-meta-tags-in-html/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 12:00:04 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[HTML Tutorial]]></category>

		<category><![CDATA[Data]]></category>

		<category><![CDATA[head]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[Link]]></category>

		<category><![CDATA[Meta]]></category>

		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=209</guid>
		<description><![CDATA[The most important tag in the head of a web page is the title tag, but the link an meta tags can tell a lot of information about your content. These tag can tell important information to search engines, and provide a handful of usefulness to a visitor. HTML is not simply intended to hold content, it contains data to describe itself and reference more content. Text on the web is not just linear, its hypertext. It wants to quickly branch off like a textbook with chapters, pages, indexes and glossaries. The web is intended to be consumed in different ways by different people. The link and meta tags tell how a web page fits in the hierarchy of a website.]]></description>
			<content:encoded><![CDATA[<p>The most important tag in the head of a web page is the title tag, but the <em>link</em> an <em>meta</em> tags can tell a lot of information about your content. These tag can tell important information to search engines, and provide a handful of usefulness to a visitor. HTML is not simply intended to hold content, it contains data to describe itself and reference more content. Text on the web is not just linear, its hypertext. It wants to quickly branch off like a textbook with chapters, pages, indexes and glossaries. The web is intended to be consumed in different ways by different people. The link and meta tags tell how a web page fits in the hierarchy of a website.</p>
<h3>Link Tag</h3>
<p>The link tag is used for directing to other documents. In the case of a link to a stylesheet, it might display with the current web page, but for the most part it links to other documents pertaining to a collection of information. &#8220;rel&#8221; is used to describe the type of link. I describe the types of rel  links below.  Like a link in the body of a web page, use href to show the path to the page.</p>
<p><strong>Style sheet</strong>: Link tags are most commonly used for link to style sheets. What you may not know is that there are various types of media you can specify with a link tag.</p>
<div class="code">&lt;link rel=&#8221;stylesheet&#8221;  media=&#8221;screen&#8221; type=&#8221;text/css&#8221; href=&#8221;style.css&#8221; /&gt;</div>
<ol>
<li><strong>Screen</strong> - This is what your web browser uses to display the content</li>
<li><strong>Print</strong> - The browser uses this style sheet whenever a web page is printed. Generally you want this page to be black text on a white background.</li>
<li><strong>Handheld</strong> - for mobile devices</li>
<li>More media types include: projection, braille, aural, tty  &amp; tv</li>
</ol>
<p><strong>Alternate</strong>: You can specify different forms of a document using the rel=&#8221;alternate&#8221;.</p>
<p> </p>
<ul>
<li><strong>Languages</strong>: You can specify the web page in a different languages. You can use this form:
<div class="code">&lt;link rel=&#8217;alternate&#8217; lang=&#8217;fr&#8217; title=&#8217;La documentation en Français&#8217; type=&#8217;text/html&#8217; hreflang=&#8217;fr&#8217; href=&#8217;frenchversion.html&#8217; &gt;</div>
</li>
<li><strong>RSS Feeds</strong>: Not only can you specify different languages, you can link to things like RSS feeds:
<div class="code">&lt;link rel=&#8221;alternate&#8221; type=&#8221;application/rss+xml&#8221; title=&#8221;Tutorial Dog RSS Feed&#8221; href=&#8221;http://feeds.feedburner.com/TutorialDog&#8221; &gt;</div>
</li>
</ul>
<p> </p>
<p><strong>Appendix</strong>: Links to an appendix document. What is an appendix? It&#8217;s supplemental material.</p>
<div class="code">&lt;link rel=&#8221;appendix&#8221; href=&#8221;appendix.html&#8221; /&gt;</div>
<p><strong>Start</strong>: Refers to the first document in a collection of documents. This link type tells search engines which document is considered by the author to be the starting point. For example, if you had a article which was broken up into many page, you would want page one to be the &#8220;start&#8221;.</p>
<div class="code">&lt;link rel=&#8221;start&#8221; href=&#8221;pageone.html&#8221; /&gt;</div>
<p> </p>
<p><strong>Next / Prev</strong>: Refers to the next or previous document in a linear sequence of documents. Sometimes browsers may pre-load the next document to reduce load time.</p>
<div class="code">&lt;link rel=&#8221;next&#8221; href=&#8221;pagefour.html&#8221; /&gt;<br />
&lt;link rel=&#8221;prev&#8221; href=&#8221;pagetwo.html&#8221; /&gt;       </p>
</div>
<p><strong>Contents</strong>: Refers to a table of contents page. &lt;link rel=&#8221;contents&#8221; href=&#8221;tableofcontents.html&#8221; /&gt;</p>
<p>Other link types include <strong>index</strong>, <strong>glossary</strong>, <strong>copyright</strong>, <strong>chapter</strong>, <strong>section</strong>, <strong>subsection</strong>, <strong>help</strong> and <strong>bookmark</strong>.</p>
<h3>Meta Tag</h3>
<p>The meta tag describes information about a document. Like a digtial photo holds meta data about the camera, date, exposure, so does a web page.<br />
<strong> Keywords &amp; Description</strong>: Meta tags are most commonly known for specifying description and keywords. They are know to help search engines identify and the content of the web page. Though no one knows how much these play in to search results, they can&#8217;t hurt to include.</p>
<div class="code">&lt;meta name=&#8221;keywords&#8221; content=&#8221;keyword, followed by a, comma&#8221; /&gt;<br />
&lt;meta name=&#8221;description&#8221; content=&#8221;Descriptive sentence here about webpage&#8221; /&gt;</div>
<p><strong> Refresh</strong>: You can have the webpage reload itself without any javascript. </p>
<div class="code">&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;10&#8243; /&gt; &lt;!&#8211; reload every 10 seconds &#8211;&gt;</div>
<p><strong>Content Type</strong>: Tells what type of document the web page is. The example is pretty standard. </p>
<div class="code">&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;</div>
<p><strong>Generator</strong>: What software made the web page or website. For example, wordpress includes the generator for stat purposes and to credit their software. </p>
<div class="code">&lt;meta name=&#8221;generator&#8221; content=&#8221;WordPress 2.5.1&#8243; &gt;</div>
<p><strong>For Wordpress Users</strong>: <a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All in One SEO Pack</a><br />
If you&#8217;re a Wordpress user, you can use the All In One SEO Pack plugin to add tags to the meta keywords &amp; descriptions. The SEO pack automatically takes care of suggesting keywords and descriptions. The keywords it suggested are pretty accurate too.</p>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=Y6th1j"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=Y6th1j" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=NhEdyI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=NhEdyI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=Pj5xoi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=Pj5xoi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=56tLJi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=56tLJi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=A6GdYi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=A6GdYi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=Ur3IRi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=Ur3IRi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=P1Jp0I"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=P1Jp0I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/302930460" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/link-meta-tags-in-html/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Flink-meta-tags-in-html%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/link-meta-tags-in-html/</feedburner:origLink></item>
		<item>
		<title>Introduction To CSS</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/299791906/</link>
		<comments>http://tutorialdog.com/introduction-to-css/#comments</comments>
		<pubDate>Wed, 28 May 2008 12:00:53 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[CSS Tutorial]]></category>

		<category><![CDATA[cascading style sheets]]></category>

		<category><![CDATA[class]]></category>

		<category><![CDATA[default css]]></category>

		<category><![CDATA[elements]]></category>

		<category><![CDATA[id]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=171</guid>
		<description><![CDATA[Have you’ve been stuck on designing your site using Dreamweaver or some other WYSIWYG (What You See Is What You Get) web page maker? If you’re ready to step out of the shadows of table based layouts, and discover CSS design then this article is for you. This article doesn’t aim to give you CSS code that you can copy to put on your website, instead teach you about the nuances you wouldn’t find in a general CSS tutorial or code.]]></description>
			<content:encoded><![CDATA[<div class="floatl"><script type="text/javascript"><!--
google_ad_client = "pub-0629829662183690";
/* 180x150, Chalk */
google_ad_slot = "4805402790";
google_ad_width = 180;
google_ad_height = 150;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>Have you’ve been stuck on designing your site using Dreamweaver or some other WYSIWYG (What You See Is What You Get) web page maker? If you’re ready to step out of the shadows of table based layouts, and discover CSS design then this article is for you. This article doesn&#8217;t aim to give you CSS code that you can copy to put on your website, instead teach you about the nuances you wouldn&#8217;t find in a general CSS tutorial or code.</p>
<h3>What exactly is CSS?</h3>
<p>CSS stands for cascading style sheets. Ok, what does that mean? Look at it like this, <strong><em>XHTML contains the data/content to display, CSS decides how the content looks, and Javascript determines how the web page interacts</em></strong>. CSS provides not only structure to the web page like a table would but also stylization the content like background color and font size.<br />
CSS goes hand in hand with HTML. If you’ve used Dreamweaver or a similar application, then just learning CSS won’t help you that much. While you might be able to fly by the seat of your pants, learning &amp; knowing HTML will prove to be vital. Clean and valid HTML will not satisfy avid web designers, it will save you tons of time when your design breaks and doesn’t look right. This article won&#8217;t delve into each attribute, instead the best practices of implementing attributes to the elements of the web page.</p>
<h3>How to apply attributes to different elements</h3>
<p>Attributes are instructions of how elements in the HTML should look. Attributes can be anything from font-size to background-color, but this section describes how to effectively apply certain attributes to different elements.</p>
<ul>
<li><strong>ID&#8217;s</strong><br />
ID tags in HTML (&lt;div id=&#8221;header&#8221;&gt;) are tags which should only be used once per web page. Generally, you want to use an ID to denote the page structure, so you might have id&#8217;s for a web page of &#8220;header&#8221;, &#8220;content&#8221;, &#8220;sidebar&#8221; and &#8220;footer&#8221;, because you&#8217;re not going to have two headers or two footers for any one webpage. To assign a style to an ID tag in CSS, use:     </p>
<p class="code">#idtagname{<br />
/* assign attributes here */<br />
}</p>
</li>
<li><strong>Class</strong><br />
Unlike ID tags, class tags can be used multiple times. This is great when you want different parts of the design to look the same.<br />
To assign a style to a class tag in CSS use:     </p>
<p class="code">.classname{<br />
/* assign attributes here */<br />
}</p>
</li>
<li><strong>HTML elements</strong><br />
You can apply a style to a particular HTML tag with CSS without using an id or class. For example, if you wanted to change every list (ul) to change from a dot to a square, you could simply do:     </p>
<p class="code">li{<br />
list-style:square;<br />
}</p>
<p>Generally you don&#8217;t want to apply a style to an element like this. One exception though would be the body tag because it only appears once. In the next paragraph though, you will see where using the general HTML element is appropriate.</li>
<li> <strong>Combining All Three</strong><br />
If you&#8217;ve played around with CSS before, you&#8217;ve probably created HTML like this:     </p>
<p class="code">&lt;ul&gt;<br />
&lt;li class=&#8221;x&#8221;&gt;&lt;/li&gt;<br />
&lt;li class=&#8221;x&#8221;&gt;&lt;/li&gt;<br />
&lt;li class=&#8221;x&#8221;&gt;&lt;/li&gt;<br />
&lt;li class=&#8221;x&#8221;&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>If you have a lot of li elements, you&#8217;ll know it can get very annoying to type out class=&#8221;x&#8221; every time. But there is a way to simplify this. Instead use the following CSS,</p>
<p class="code">.y li{<br />
/* CSS attributes for class x here */<br />
}</p>
<p>And your HTML can become this:</p>
<p class="code">&lt;ul class=&#8221;y&#8221;&gt;<br />
&lt;li&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>The CSS applies the attributes for define in &#8220;.y li&#8221; for the li elements embedded in class &#8220;y&#8221;. Thus you get a cascading effect where you can affect elements inside certain elements. You can use this cascading affect for any combination of ID&#8217;s, class and elements. For example, you might use:</p>
<p class="code">#content .post ul{ /* style attributes here */}</p>
</li>
</ul>
<h3>Print vs Screen</h3>
<p>Believe it or not, you can create a CSS for when someone prints out a web page which is great for a visitor because usually if you print you just want the primary content. Generally, you want a very different style sheet as compared to the &#8220;screen&#8221; version. Using the attribute &#8220;display: none;&#8221; you can and should get ride of ads, a sidebar and any other information someone wouldn&#8217;t want to print out. You also want a black text on white background design, otherwise you&#8217;ll make people print too much ink.</p>
<p>You link to the print CSS file almost exactly the same except for the &#8216; media=&#8221;print&#8221; &#8216; part.</p>
<div class="code">&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;style.css&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&gt; &lt;!&#8211; for browser &#8211;&gt; </p>
<p><span> </span>&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;print.css&#8221; type=&#8221;text/css&#8221; media=&#8221;print&#8221; /&gt;   &lt;!&#8211; for printer &#8211;&gt;</p>
</div>
<h3>CSS Default</h3>
<p>When you load your HTML file in any web browser whether it be Firefox, Internet Explorer or Safari, the browser will render the web page with certain style attributes already assigned. You can of course override these attributes with CSS, but if you don’t specify differently, the browser will render the page with certain attributes already applied. Each web browser has subtle difference in how they render a web page under defaults, but in general a web page will look the same.<br />
For example, the dots for a list item or the font family is a default style of the browser. You have the power to make that dot into a square or that font from Times New Roman to Verdana. But if you don&#8217;t specify, the browser will assume it. Another default attribute that always fools a beginner is the body tag which has a margin.</p>
<h3>Save lines of code, be efficient</h3>
<p>From time to time, you&#8217;ll notice your coping and pasting attributes from one id or class to another. If you find yourself applying the same attributes to a few elements, then you can combine attribute assignments so that multiple classes, ids and elements share the attributes. Lets take the attributes for the left and right arrows on the <a href="http://tutorialdog.com/javascript-image-library-using-mootools-part-2/">javascript image gallery</a>. I originally had this as the attributes:</p>
<p><a href="http://tutorialdog.com/javascript-image-library-using-mootools-part-2/"> </a></p>
<div class="code">
<pre>#moveleft{
<span>	</span>margin:0px;
<span>	</span>height:58px;
<span>	</span>color: white;
<span>	</span>width: 16px;
<span>	</span>text-indent: -2000em;
<span>	</span>text-decoration: none;
<span>	</span>z-index: 1000;
<span>	</span>display:block;
<span>	</span>cursor: pointer;
<span>	</span>float:left;
<span>	</span>background: url(&#8217;left.gif&#8217;);
}

#moveright{
<span>	</span>margin:0px;
<span>	</span>height:58px;
<span>	</span>color: white;
<span>	</span>width: 16px;
<span>	</span>text-indent: -2000em;
<span>	</span>text-decoration: none;
<span>	</span>z-index: 1000;
<span>	</span>display:block;
<span>	</span>cursor: pointer;
<span>	</span>float:left;
<span>	</span>background: url(&#8217;right.gif&#8217;);
}</pre>
</div>
<p>This is silly though because the two are essentially duplicates of each other except for the background image. We can though apply one set of attributes to both ids (using a comma to include more elements) and set the background to their respective urls:</p>
<div class="code">
<p>#moveleft, #moveright{</p>
<p style="padding-left: 30px;"><span> </span>margin:0px;<br />
<span> </span>height:58px;<br />
<span> </span>color: white;<br />
<span> </span>width: 16px;<br />
<span> </span>text-indent: -2000em;<br />
<span> </span>text-decoration: none;<br />
<span> </span>z-index: 1000;<br />
<span> </span>display:block;<br />
<span> </span>cursor: pointer;<br />
<span> </span>float:left;</p>
<p>}</p>
<p>#moveleft{background: url(&#8217;left.gif&#8217;);}</p>
<p>#moveright{background: url(&#8217;right.gif&#8217;);}</p>
</div>
<h3>Conclusion</h3>
<p><em>The mark of a good CSS designer is one that creates the CSS for the HTML. </em>If you start designing your HTML around what you can do with the CSS, you still have more to learn. In the future, I&#8217;ll delve into the basics of taking a design in Photoshop into HTML web page. If you have any questions or sub-topics you would like me to discuss, please leave a comment below.<br />
<div class="bannerimagead">
	<img align="left" src="http://dr-photoshop.com/zfile/images/girl.gif" alt="Image" />
	<script type="text/javascript"><!--
google_ad_client = "pub-0629829662183690";
/* 468x60, Chalk */
google_ad_slot = "8512407406";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</p>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=24Em4z"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=24Em4z" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=PRmmBH"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=PRmmBH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=UItZSh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=UItZSh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=VLOGSh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=VLOGSh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=SbG96h"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=SbG96h" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=HsGh3i"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=HsGh3i" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=dLkCdI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=dLkCdI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/299791906" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/introduction-to-css/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Fintroduction-to-css%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/introduction-to-css/</feedburner:origLink></item>
		<item>
		<title>Draw in Photoshop Using A Tablet</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/294990833/</link>
		<comments>http://tutorialdog.com/draw-in-photoshop-using-a-tablet/#comments</comments>
		<pubDate>Wed, 21 May 2008 12:00:06 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[Photoshop Tutorial]]></category>

		<category><![CDATA[brush]]></category>

		<category><![CDATA[color]]></category>

		<category><![CDATA[drawing]]></category>

		<category><![CDATA[painting]]></category>

		<category><![CDATA[shading]]></category>

		<category><![CDATA[tablet]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=186</guid>
		<description><![CDATA[<img class="alignleft" align="left" src="http://tutorialdog.com/wp-content/uploads/2008/05/penny.png" alt="Penny" title="penny" width="84" height="84" class="alignnone size-medium wp-image-218" /> A graphic tablet allows you to take Adobe Photoshop to a new level. You can take advantage of the brush tool and it's powerful ability to imitate different traditional mediums of art and human input. In this Photoshop tutorial, you'll learn how to set up Photoshop so that it can use the tablets input, create an outline from a photo, color and shade all using the tablet. The tutorial includes a time lapse of the process I took to creating the final product. ]]></description>
			<content:encoded><![CDATA[<p>In this Photoshop tutorial, you&#8217;ll learn how to set up Photoshop so that it can use the tablets input, create an outline from a photo, color and shade all using the tablet. The tutorial includes a time lapse of the process I took to creating the final product.<br />
<a href="http://tutorialdog.com/wp-content/uploads/2008/05/tablet.png"><img class="alignleft" title="tablet" src="http://tutorialdog.com/wp-content/uploads/2008/05/tablet-300x270.png" alt="Wacom Bamboo" width="150" align="left" /></a>A graphic tablet allows you to take Adobe Photoshop to a new level. You can take advantage of the brush tool and it&#8217;s powerful ability to imitate different traditional mediums of art and human input. For this tutorial, I&#8217;ll be using a <a href="http://www.wacom.com/bambootablet/index.cfm">Wacom Bamboo tablet</a>. It&#8217;s Wacom&#8217;s (Wacom is the industry standard supplier) most inexpensive tablet ($79), but still does a good job. Tablets can range from the Bamboo which has only pressure sensitivity, to monitor tablets with pressure &amp; tilt sensitivity. The monitor tablets are relatively expensive investments though. If you&#8217;ve never used a tablet before, it will take some time getting acquainted. One thing that would throw me off was that when I draw, I like to rotate the paper to draw straighter, but that doesn&#8217;t fly on a tablet because the cursor becomes disoriented on a non-monitor tablet.</p>
<p> </p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/i-ExmqcrBHU&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/i-ExmqcrBHU&amp;hl=en" wmode="transparent"></embed></object><br />
<!--adsense#bannerimg--><br />
<strong>Start Large, then downscale.</strong> The most important thing to know BEFORE you start, is to start BIG. Working on a large document will allow you to zoom better but more importantly downscale all the minor imperfections you would see at a larger size. Start at least twice (four times is optimal) the size of what you expect to be the final image size.</p>
<h3>Step 1: Outline</h3>
<p>For this tutorial, I&#8217;ll draw Kobe Bryant from an image. One great thing is you can draw an outline right on top of the image. Create your document (remember 2x or 4x it&#8217;s intended size) and import any reference images making sure you resize the image to take up the appropriate space in the photoshop document.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/05/16660.jpg"><img class="alignnone size-full wp-image-214" title="16660" src="http://tutorialdog.com/wp-content/uploads/2008/05/16660.jpg" alt="Kobe Photo" width="500" height="375" /></a></div>
<p><strong>Setting Up the Brush with Tablet</strong></p>
<p><strong><span style="font-weight: normal;">The first thing you&#8217;ll want to do is create a new layer for the outline. To set up the brush controls, take a hard round brush (the size depends on the size of the document). To enable the tablets input, we need to access the Brush palette ( Menu Bar &gt;&gt; Window &gt;&gt; Brushes ). First set the spacing to 1% under the &#8220;Brush Tip Shape&#8221; option. Next enable the &#8220;Shape Dynamics&#8221; and set the Size Jitter control to Pen Pressure &amp; the Roundness Jitter control to Pen Tilt. Since my tablet doesn&#8217;t have tilt support, you see a caution sign next to the tilt control. The tilt isn&#8217;t necessary, and you may even want to remove it even if you have the ability.</span></strong></p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/05/spacing.gif"><img class="alignnone size-medium wp-image-205" title="spacing" src="http://tutorialdog.com/wp-content/uploads/2008/05/spacing-233x300.gif" alt="Brush Spacing" width="233" height="300" /></a> <a href="http://tutorialdog.com/wp-content/uploads/2008/05/shapedynamics.gif"><img class="alignnone size-medium wp-image-206" title="shapedynamics" src="http://tutorialdog.com/wp-content/uploads/2008/05/shapedynamics-233x300.gif" alt="Brush Shape Dynamics" width="233" /></a><br />
<small>The brush settings</small></div>
<p><strong>Tracing Tips</strong>: Now that you&#8217;ve set up the brush, you can trace out the photo. If you pay close attention to the video, during the tracing stage, I traced the outline two different ways. The first way which you see in the beginning, I made the outline of thick solid lines. Later on, I switched up and made the brush size smaller and created more swift short strokes to get a smoother and accurate line. I then took the eraser and cleaned up the up the line. The reason I switch to a more sketching type approach was because the lines I was creating with on solid line was not coming out as I intended. (Thats why you see me undo a lot in the beginning.) Lock this layer so that you don&#8217;t alter it in later steps.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/05/outline.gif"><img class="alignnone size-medium wp-image-208" title="outline" src="http://tutorialdog.com/wp-content/uploads/2008/05/outline.gif" alt="Outline" width="494" /></a></div>
<p><!--adsense#bannerimg3--></p>
<h3>Step 2: Coloring</h3>
<p>Once you&#8217;ve completely traced the image, create a new layer for each color you intend to use. Put these layers below the outline layer, and fill in the drawing. Naming each layer is a good idea so that your organized. I use only a few colors because I&#8217;ll add depth in the next step. Keep within the lines!</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/05/colors.jpg"><img class="alignnone size-medium wp-image-200" title="colors" src="http://tutorialdog.com/wp-content/uploads/2008/05/colors.jpg" alt="" width="500" /></a><br />
<small>Color the outline on different layers.</small></div>
<h3>Step 3: Shadow &amp; Highlight</h3>
<p>Again, create a new layer above both the outline and the color layers. For this step, we&#8217;ll be dealing with soft brushes with low opacity, because you want to avoid sharp lines in the shadow. Generally, when I add depth the opacity of the brush is 3-5% and no greater than 12%, . To add a shadow, use a black brush and a white brush for highlights. The photo was a great reference to know where the shadows and highlights where. Keep in mind that you can always undo, and just mess around and see what you come up with. The time drawing I made in the time lapse took 5 and a half hours to create start to finish.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/05/highlightshadow.gif"><img class="alignnone size-medium wp-image-203" title="highlightshadow" src="http://tutorialdog.com/wp-content/uploads/2008/05/highlightshadow.gif" alt="Highlights and shadows" width="500" /></a><br />
<small>The shadows and highlights.</small></div>
<h4>Adding depth to the face</h4>
<p>The face of the subject is trickiest part of this tutorial. If you look at a face, there are a lot of bumps &amp; curves and thus a lot of subtle places to shade. For the eyes, there is a shadow cast under the eyebrows, and light on the top of the eyelid, then shadow on the lower eyelid followed by light cast on the cheek. There is light shining on the forehead, the nose, the top of the lip under the nose and the top of the chin.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/05/face.jpg"><img class="alignnone size-medium wp-image-204" title="face" src="http://tutorialdog.com/wp-content/uploads/2008/05/face.jpg" alt="Places where to shadow &amp; highlight" width="230" height="230" /></a><br />
<small>Places to shadow and highlight on the face</small></div>
<h3>Conclusion</h3>
<p>There you have it. All you have to do now is tie up and lose ends and downscale your drawing. When you downscale, you&#8217;ll suddenly know why I told you to start big.</p>
<div class="imagef"><a href="http://tutorialdog.com/wp-content/uploads/2008/05/kobewallpaper.jpg"><img class="alignnone size-medium wp-image-207" title="kobewallpaper" src="http://tutorialdog.com/wp-content/uploads/2008/05/kobewallpaper.jpg" alt="Kobe Bryant Drawing" width="500" /></a><a href="http://tutorialdog.com/wp-content/uploads/2008/05/hardawaywallpaper.jpg"><img title="hardawaywallpaper" src="http://tutorialdog.com/wp-content/uploads/2008/05/hardawaywallpaper.jpg" alt="Penny Hardaway Wallpaper" width="500" /></a></div>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=6L5inG"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=6L5inG" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=LsBSpH"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=LsBSpH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=dtEgCh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=dtEgCh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=LbByFh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=LbByFh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=ZUmMDh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=ZUmMDh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=PB95Ai"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=PB95Ai" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=XnGMQI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=XnGMQI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/294990833" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/draw-in-photoshop-using-a-tablet/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Fdraw-in-photoshop-using-a-tablet%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/draw-in-photoshop-using-a-tablet/</feedburner:origLink></item>
		<item>
		<title>Tutorial Dog Site News</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/292979039/</link>
		<comments>http://tutorialdog.com/tutorial-dog-site-news/#comments</comments>
		<pubDate>Sun, 18 May 2008 18:43:28 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[advertising]]></category>

		<category><![CDATA[design]]></category>

		<category><![CDATA[sponsor]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=210</guid>
		<description><![CDATA[<a href="http://tutorialdog.com/wp-content/uploads/2008/05/news.png"><img align="left" title="news" src="http://tutorialdog.com/wp-content/uploads/2008/05/news.png" alt="News" width="144" height="67" /></a>Hey Everyone! Welcome to Tutorial Dog. If you haven't been around this neck of the woods in a while, you'll notice a design facelift and <a href="http://tutorialdog.com/javascript-image-gallery-using-mootools-part-2/">new tutorial</a>. This summer, Tutorial Dog will be publishing tons of new material so get ready for an exciting summer.]]></description>
			<content:encoded><![CDATA[<p><a href="http://tutorialdog.com/wp-content/uploads/2008/05/news.png"><img align="left" title="news" src="http://tutorialdog.com/wp-content/uploads/2008/05/news.png" alt="News" width="144" height="67" /></a>Hey Everyone! Welcome to Tutorial Dog. If you haven&#8217;t been around this neck of the woods in a while, you&#8217;ll notice a design facelift and <a href="http://tutorialdog.com/javascript-image-gallery-using-mootools-part-2/">new tutorial</a>. This summer, Tutorial Dog will be publishing tons of new material so get ready for an exciting summer.</p>
<h3>New Design</h3>
<p>I redesigned the site from the ground up and have upgraded to the new Wordpress 2.5. The site was in desperate need of a better design not just because of ascetics, but for its poor information architecture. I don&#8217;t know what I was thinking, but I finally realized how poor the information architecture was after running <a href="http://crazyegg.com/">Crazy Egg</a> tests. The last design&#8217;s navigation lead people away from the site content. The goal of this new design is for visitors to quickly identify and navigate to the articles they would find interesting ON THE TUTORIAL DOG WEBSITE. This means the categories is the main navigational links.</p>
<p>The concept of the design is a school chalkboard. I thought imagery of chalk &amp; blackboard jived with the concept of learning which is the goal of the visitor when they land on Tutorial Dog. The presentation of the articles on the page allowed for more friendly posts like this one as well.</p>
<h3>The Road Ahead</h3>
<p>This summer is gonna be a fun filled one with plenty a tutorials on the horizon. Thus far in 2008 I&#8217;ve been releasing one tutorial every two months, but this about to change soon. I&#8217;ve already published a <a href="http://tutorialdog.com/javascript-image-gallery-using-mootools-part-2/">follow up to the javascript image gallery</a> and there even more tutorials ready to come down the pipe so make sure you <a href="http://feeds.feedburner.com/TutorialDog">subscribe</a>. For all that want new Photoshop tutorials, stay patient because I&#8217;ve got a couple of great ones soon to be ready for publishing. And speaking of the subscribing, Tutorial Dog has crossed the 300 subscriber mark with the publishing of the latest tutorial.</p>
<h3>Advertise</h3>
<p><a href="http://tutorialdog.com/advertise-on-tutorial-dog/"><img src="http://tutorialdog.com/wp-content/uploads/2008/05/linkad-300x34.png" alt="image ad" /></a><br />
We&#8217;ve refined the <a href="http://tutorialdog.com/advertise-on-tutorial-dog/">advertising options</a> and created an automated in house solution which has allowed us to offer such low prices. If there is a large demand to for the link ads, then we&#8217;ll raise prices according, so get in on the opportunity while you can. We also offer an image ad option for $10 as well.</p>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=afPafr"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=afPafr" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=T6RXcH"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=T6RXcH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=HpzfUh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=HpzfUh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=l5Ghzh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=l5Ghzh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=1jK8Rh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=1jK8Rh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=9oB6ki"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=9oB6ki" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=mRkpqI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=mRkpqI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/292979039" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/tutorial-dog-site-news/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Ftutorial-dog-site-news%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/tutorial-dog-site-news/</feedburner:origLink></item>
		<item>
		<title>Javascript Image Gallery Using Mootools (Part 2)</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/292364296/</link>
		<comments>http://tutorialdog.com/javascript-image-gallery-using-mootools-part-2/#comments</comments>
		<pubDate>Mon, 12 May 2008 15:02:14 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[Javascript Tutorial]]></category>

		<category><![CDATA[gallery]]></category>

		<category><![CDATA[image]]></category>

		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=188</guid>
		<description><![CDATA[<img width="60" height="60" class="alignleft" align="left" src="http://tutorialdog.com/wp-content/uploads/2008/05/moocow.png" alt="Moo Cow"  /> Last time, I provided a reasonably decent solution for creating a HTML friendly Javascript image gallery using mootools. After taking in some of its faults, and learning more about javascript, I've rewritten the whole code, and have came up with a new version, a simple, easy to use gallery that everyone can use.]]></description>
			<content:encoded><![CDATA[<p><a href="http://tutorialdog.com/image_gallery/image_gallery.zip"><br />
<img class="alignnone size-full wp-image-189" title="Javascript Image Gallery" src="http://tutorialdog.com/wp-content/themes/chalk/images/jsimggallery.png" alt="Javascript Image Gallery" width="575" height="263" /></a></p>
<p><a title="Javascript Image Gallery Part 1" href="http://tutorialdog.com/javascript-image-gallery-using-mootools/">Last time</a>, I provided a reasonably decent solution for creating a HTML friendly Javascript image gallery using mootools. After taking in some of its faults, and learning more about javascript, I&#8217;ve rewritten the whole code, and have came up with a new version, a simple, easy to use gallery that everyone can use.</p>
<p>
<a class="demo" title="Javascript Image Gallery Demo" href="http://tutorialdog.com/image_gallery/sample.html">Demo</a><a class="files" href="http://tutorialdog.com/image_gallery/image_gallery.zip">Download Files</a>
</p>
<p> <!--adsense#bannerimg3--></p>
<p> </p>
<h3>Features</h3>
<ol>
<li><strong>Anybody Can Use It</strong> - If Javascript is confusing to you, no worries. This solution doesn&#8217;t require any javascript knowledge. The only work require is one variable in the javascript &amp; the actual HTML for the images.</li>
<li><strong>Thumbnails</strong> - Unlike the previous version, you can now embed a different/smaller image in the previews.</li>
<li><strong>Preview Slider</strong> - Easily slide through dozens of photos.</li>
<li><strong>HTML friendly</strong> - Like the last time, this solution doesn&#8217;t compromise google bots or people with javascript disabled.</li>
<li><strong>Better Transitions</strong> - The large photos ease in &amp; ease out when switching</li>
<li><strong>Image Descriptions</strong> - You have the ability to include a caption with every image</li>
</ol>
<h3>HTML</h3>
<p>To set up the gallery properly, we need to write the necessary HTML to create the large image stage and the thumbnail slides. For the thumbnail slides, we&#8217;ll use an unordered list (&lt;ul&gt;) and list-items with links. The link tag will provide the path to the larger image to show on the stage and the img tag displays the thumbnail. The &#8220;moveleft&#8221; and &#8220;moveright&#8221; links move the slides left and right on the page.</p>
<div class="code">
<pre name="code" class="html">
&lt;div id=”img_gallery”&gt;
	&lt;div id=”fullimg”&gt;
		&lt;img src=”images/ajax-loader.gif” alt=”loading” class=”loading” width=”24? height=”24? /&gt;
	&lt;/div&gt;
	&lt;a href=”#” id=”moveleft”&gt;Left&lt;/a&gt;
	&lt;div id=”wrapper”&gt;
		&lt;ul id=”items”&gt;
			&lt;li&gt;
				&lt;a href=”LARGE IMAGE” id=”first” class=”item”&gt;
					&lt;img class=”thumb” alt=”img” src=”THUMNAIL”/&gt;
				&lt;/a&gt;
			&lt;/li&gt;
			&lt;li&gt;
				&lt;a href=”LARGE IMAGE” class=”item”&gt;
					&lt;span&gt;DESCRIPTION HERE&lt;/span&gt;
					&lt;img class=”thumb” alt=”" src=”THUMBNAIL”/&gt;
				&lt;/a&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;
	&lt;a id=”moveright” href=”#”&gt;Right&lt;/a&gt;
&lt;/div&gt;&lt;br clear=”all”/&gt;
</pre>
</div>
<p>Now you need set up the top part of the web page. For this part, we’ll need to reference the <a href="http://tutorialdog.com/image_gallery/imagegallery.css">css for the gallery</a>, the <a href="http://tutorialdog.com/image_gallery/js/imagegallery.js">javascript for the image gallery</a> and the <a href="http://mootools.net/">mootools 1.2</a> release. Also, it’s always safe to declare the webpage DOCTYPE as XHTML so that it’s javascript compliant.</p>
<div class="code">
<pre class="html" name="code">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
	&lt;title&gt;Javascript Image Gallery Using Mootools&lt;/title&gt;
	&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;  

	&lt;script src="mootools-12b.js" type="text/javascript"&gt;&lt;/script&gt; &lt;!-- MOOTOOLS 1.2 BETA --&gt;
	&lt;script src="imagegallery.js" type="text/javascript"&gt;&lt;/script&gt; &lt;!--   IMAGE GALLERY   --&gt;
	&lt;link rel='stylesheet' href='imagegallery.css' type='text/css' /&gt;

&lt;/head&gt;
</pre>
</div>
<h3>CSS</h3>
<p>Now comes the cascading style sheet to create the design for the image gallery. The trickiest parts of the CSS is definitely the slider. For the slider, we create the buttons for moving the slider forward and back, and thumbnail area. The unordered list tag holds the thumbnails, but what makes the slider work is that the width of the unordered list is very large and the parent div of the unordered list (called the #wrapper) is the width of what will actually be displayed. That way the javascript can move the position of the unordered list to show different thumbnails. The key to the #wrapper CSS is the “overflow: hidden” attribute which allows the thumbnails to stretch out horizontally and not be in view.</p>
<pre name="code" class="css">
body{ background:black; color:white; }
#img_gallery{ margin:50px auto; width:500px; }
#img_gallery a{ outline:none; border:none; }
#img_gallery a img{border:none;}

/* --- IMAGE STAGE */
#fullimg{
	width:500px;
	overflow:hidden;
	height:380px;
}
#fullimg img{ width:500px; }
#fullimg p, #fullimg span{
	position:absolute;
	background:black;
	opacity:.5;
	color:white;
	margin:0px;
	width:500px;
	padding:6px;
	font-size:11px;
	font-family:Verdana, Arial, Helvetica, sans-serif;
}

/* --- SLIDER --- */
#img_gallery #wrapper{
	overflow:hidden;
	padding:4px 2px;
	width: 460px;
	float:left;
	height:50px;
	background-color:#181818;
	position: relative;

}

#items{
	margin:0px 0px;
	padding:0px;
	list-style:none;
	width:50000px;
	position: relative;
	letter-spacing:0em;
}
#items li{
	float:left;
	list-style:none;
	margin-right:2px;
}
#items .thumb{
	width:75px;
	height:50px;
	cursor:pointer;
	margin:0px;
	padding:0px;
}
#items .large{
	display:none;
	position:absolute;
}
#fullimg .loading{
	width: 24px;
	height: 24px;
}
#fullimg .thumb{display:none;}

#items .item  p, #items .item  span{
	display:none;
	text-indent: -2000em;
}
#moveleft, #moveright{
	margin:0px;
	height:58px;
	color: white;
	width: 16px;
	text-indent: -2000em;
	text-decoration: none;
	z-index: 1000;
	display:block;
	cursor: pointer;
	float:left;
}
#moveleft{background: url('images/left.gif');}
#moveright{background: url('images/right.gif');}
#moveleft:hover, #moveright:hover{ background-position:bottom; }
</pre>
<h3>Javascript</h3>
<p>The javascript is built for the most recent build of the mootools beta 1.2. I’ve heavily commented the code which you can <a href="http://tutorialdog.com/image_gallery/js/imagegallery.js">view here</a>. The only thing that needs to be changed in the javascript is the number of slides in the gallery.
</p>
<pre name="code" class="js">
var slides = 2;
</pre>
<h3>License</h3>
<p>You are NOT allowed to distribute this software with attribution. This work is licensed under a <a href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons Attribution-Share Alike 3.0 United States License</a>.</p>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=m6RvSV"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=m6RvSV" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=myW3TH"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=myW3TH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=dWMTYh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=dWMTYh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=PvBDKh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=PvBDKh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=QPp8Eh"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=QPp8Eh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=rhZZTi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=rhZZTi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=BP9QDI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=BP9QDI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/292364296" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/javascript-image-gallery-using-mootools-part-2/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Fjavascript-image-gallery-using-mootools-part-2%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/javascript-image-gallery-using-mootools-part-2/</feedburner:origLink></item>
		<item>
		<title>Re-Coloring Jason Kidd’s Shoe</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/247730294/</link>
		<comments>http://tutorialdog.com/re-coloring-jason-kidds-shoe/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 03:47:29 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[Photoshop Tutorial]]></category>

		<category><![CDATA[blending mode]]></category>

		<category><![CDATA[brush]]></category>

		<category><![CDATA[change]]></category>

		<category><![CDATA[color]]></category>

		<category><![CDATA[layer]]></category>

		<category><![CDATA[pen tool]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/re-coloring-jason-kidds-shoe/</guid>
		<description><![CDATA[<img width="60" height="60" class="alignleft" align="left" src="http://tutorialdog.com/wp-content/uploads/2008/05/shoe.png" alt="shoe" /> If you follow the NBA, you'll know Jason Kidd was traded from the Nets to the Dallas Mavericks. (While I like Jason Kidd and he is a great player, giving up Devin Harris was stupid on Mark Cuban's part). If you're like me and want the wallpaper of his shoe to match his current team colors instead of his old team colors, then you'll have to turn to Adobe Photoshop. This tutorial will show you the <em>best</em> way to change the colors of the shoe easily and quickly.]]></description>
			<content:encoded><![CDATA[<p class="floatl"><!--adsense#mr--></p>
<p>If you follow the NBA, you&#8217;ll know Jason Kidd was traded from the Nets to the Dallas Mavericks. (While I like Jason Kidd and he is a great player, giving up Devin Harris was stupid on Mark Cuban&#8217;s part). If you&#8217;re like me and want the wallpaper of his shoe to match his current team colors instead of his old team colors, then you&#8217;ll have to turn to Adobe Photoshop. This tutorial will show you the <em>best</em> way to change the colors of the shoe easily and quickly.</p>
<p>You may already know since Photoshop CS 2, there is the color replacement brush, but the tool isn&#8217;t always the most effective tool. The color replacement tool also applies it modifications directly on the photo layer so is a &#8220;destructive&#8221; process. If you&#8217;ve played around with the color replacement tool, you&#8217;ll know that the process of using layers (as shown in this Photoshop tutorial) is basically the same process.</p>
<h3>Get the Resources</h3>
<p>Grab a wallpaper from the <a href="http://www.nike.com/nikebasketball/">Nike Basketball website</a> or the <a href="http://inside.nikebasketball.com/news/wp-content/themes/inside_bb/images/wallpaper/226_nikebasketball_zoombb_jasonkidd.jpg">Jason Kidd wallpaper</a>. We&#8217;ll also need the Dallas Maverick Team colors. For the main color, we&#8217;ll use the light blue #009CFF and accent it with the dark blue #010C22.</p>
<p class="imagef"><img src="http://inside.nikebasketball.com/news/wp-content/themes/inside_bb/images/wallpaper/226_nikebasketball_zoombb_jasonkidd.jpg" alt="" width="480" /><br />
<small>The orignal shoe wallpaper done in Nets team colors.</small></p>
<p class="imagef"><img src="http://tutorialdog.com/wp-content/uploads/2008/03/dallas-mavericks-2006-nba-finals-photograph-c12233334.jpeg" alt="Dallas Mavericks Team Colors" /><br />
<small>We&#8217;ll use the Mavericks team colors to re-color the shoe.</small></p>
<p><!--adsense#bannerimg--></p>
<h3>Pen Tool</h3>
<p>Take the pen tool (set to the shape layer option) and start to outline the red toe of the shoe with the color set to the light blue. Try to cover all of the red area, but if you let a sliver of red show, you can always fix the points later.</p>
<p class="imagef"><a title="Pen Tool Outline" href="http://tutorialdog.com/wp-content/uploads/2008/03/pentool.gif"><img src="http://tutorialdog.com/wp-content/uploads/2008/03/pentool.gif" alt="Pen Tool Outline" /></a></p>
<h3>Blending Mode: Color</h3>
<p>Here is where the magic starts. Simply set the pen tool layer you just created in the previous step to blending mode &#8220;Color&#8221;. To do this, in the Layer palette click on the shape layer, and change the first drop down menu from &#8220;Normal&#8221; to &#8220;Color&#8221;</p>
<p class="imagef"><a title="Blending Mode Color" href="http://tutorialdog.com/wp-content/uploads/2008/03/blendingmodecolor.gif"><img src="http://tutorialdog.com/wp-content/uploads/2008/03/blendingmodecolor.gif" alt="Blending Mode Color" width="480" /></a></p>
<p>Continue to outline each part of the shoe where the color needs to be changed. This includes the swoosh logo, tongue  and sole of the shoe. Again, setting the layer blending mode to color. I used the dark blue to color the laces, and the light blue everywhere there was red on the shoe.</p>
<p>To illustrate how the coloring mode works in Photoshop, try to imagine that the photo is comprised of two layers, one that contains the color of the photo and the other contains the black and white of the photo. The black and white layer contains the shadows and highlights and the color layer contains just solid blocks of vivid color. Its hard for color to show through when a part of the black and white layer is extremely light or dark.  By setting the blending mode to color of the shape layer, you are only changing the color layer of the photo to different colors, in this case light blue. What is great is that the layer isn&#8217;t obstructing the shadows and highlights so it appears as you are just re-coloring the shoe.</p>
<p class="imagef"><img src="http://tutorialdog.com/wp-content/uploads/2008/03/layers.jpg" alt="Black And White" width="480" /></p>
<h3>Coloring Dark and Light Areas</h3>
<p>If you try coloring a white or black part of the shoe, you&#8217;ll notice the colors don&#8217;t really stand out. This is because color doesn&#8217;t show in extreme shadow or light. If you want to color one of these areas, for example the inside of the Nike swoosh on the shoe, you&#8217;ll need to bring up (or down for a light part) the luminosity. Outline the area you want to change with the pen tool just like you would if you were going to set the layer to color. Instead set the color of the layer to white and set the layer blending mode to &#8220;Luminosity&#8221;. You will need to bring the opacity of the layer down quite a bit, but now simply duplicating that layer above the luminosity layer and setting it to blending mode &#8220;Color&#8221;, you can apply color to the layer.</p>
<p>Using the light blue color and the brush tool, you can color the text of wallpaper blue as well. You can brush over the entire text then use the magic wand tool to select the outside of the text and deleting the selection.  Again set the blending mode to color.</p>
<p class="imagef"><a title="Final Results" href="http://tutorialdog.com/wp-content/uploads/2008/03/finalresult.jpg"><img src="http://tutorialdog.com/wp-content/uploads/2008/03/finalresult.jpg" alt="Final Results" width="480" /></a></p>
<p class="download"><strong><a title="Jason Kidd Shoe PSD" href="http://tutorialdog.com/wp-content/uploads/2008/03/jasonkiddshoepsd.zip">Download Jason Kidd Shoe PSD</a></strong></p>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=mIHR6d"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=mIHR6d" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=UxDEXDF"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=UxDEXDF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=cY7UYef"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=cY7UYef" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=LFFfInf"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=LFFfInf" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=nNwLkOf"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=nNwLkOf" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=0sZoJi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=0sZoJi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=3GtxII"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=3GtxII" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/247730294" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/re-coloring-jason-kidds-shoe/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Fre-coloring-jason-kidds-shoe%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/re-coloring-jason-kidds-shoe/</feedburner:origLink></item>
		<item>
		<title>Javascript Image Gallery Using Mootools</title>
		<link>http://feeds.feedburner.com/~r/TutorialDog/~3/214195615/</link>
		<comments>http://tutorialdog.com/javascript-image-gallery-using-mootools/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 05:05:57 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
		
		<category><![CDATA[Javascript Tutorial]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[framework]]></category>

		<category><![CDATA[gallery]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[image]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[js]]></category>

		<category><![CDATA[mootools]]></category>

		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/javascript-image-gallery-using-mootools/</guid>
		<description><![CDATA[<img class="alignleft" align="left" src="http://tutorialdog.com/wp-content/uploads/2008/05/moocow.png" width="60" height="60" alt="Moo Cow" />This free image gallery based on javascript is a quick &#38; easy solution. Implementing the demo doesn't requre knowledge of any javascript. In this article, I'll explain and breakdown the javascript that runs the image gallery using the javascript framework Mootools.]]></description>
			<content:encoded><![CDATA[<p><em>Be sure to check out the </em><a href="http://tutorialdog.com/javascript-image-library-using-mootools-part-2/"><em>second iteration of the image gallery</em></a><em>.</em></p>
<p>This free image gallery based on javascript is a quick &amp; easy solution. Implementing the demo doesn&#8217;t requre knowledge of any javascript. In this article, I&#8217;ll explain and breakdown the javascript that runs the image gallery using the javascript framework Mootools.<br />
<script src="http://tutorialdog.com/wp-content/themes/tutorialdog3/js/mootools.svn.compressed.js" type="text/javascript"></script><br />
<script src="http://tutorialdog.com/wp-content/uploads/2008/01/imagegallery.js" type="text/javascript"></script></p>
<style type="text/css" media="screen">@import "http://tutorialdog.com/wp-content/uploads/2008/01/style.css";</style>
<h3>Demo:</h3>
<div id="imagegallery">
<div id="items">
<div class="item"><img src="http://tutorialdog.com/wp-content/uploads/2008/01/167461515_05807d9fdc.jpg" alt="Doggie Image 1" />   </p>
<p>Image 1</p>
<p> </p>
</div>
<div class="item"><img src="http://tutorialdog.com/wp-content/uploads/2008/01/229805603_e84bcf23bf.jpg" alt="Image 2" />   </p>
<p>Image 2</p>
<p> </p>
</div>
<div class="item"><img src="http://tutorialdog.com/wp-content/uploads/2008/01/248397811_0e7f1991be.jpg" alt="Dog in Window" />   </p>
<p>Image 3</p>
<p> </p>
</div>
<div class="item"><img src="http://tutorialdog.com/wp-content/uploads/2008/01/860213842_62e9bc4bcc.jpg" alt="Two Dogs" />   </p>
<p>Image 4</p>
<p> </p>
</div>
<div class="item"><img src="http://tutorialdog.com/wp-content/uploads/2008/01/1058831139_3dbe9e47b9.jpg" alt="Dog on Leash" />   </p>
<p>Image 5</p>
<p> </p>
</div>
<p> </p>
</div>
<div id="large">
<div class="info">Click A Thumbnail Above</div>
<p> </p>
</div>
<p><!-- Image Gallery by http://tutorialdog.com --></p>
</div>
<p class="download"><strong><a title="Image Gallery" href="http://tutorialdog.com/wp-content/uploads/2008/01/imagegallery.zip"> Download  Image Gallery</a></strong></p>
<hr /><a href="http://mootools.net/"><img src="http://tutorialdog.com/wp-content/uploads/2008/01/mootools.gif" alt="Mootools Logo" align="left" /></a>The Javascript image gallery is built from <a href="http://mootools.net/">Mootools</a>, an open-source object-oriented Javascript framework. If you&#8217;ve seen some cool graphical interactions you wouldn&#8217;t expect on a web page, chances are they are Mootools or another similiar framework like jQuery.<br />
<!--adsense#bannerimg--><br />
<strong>The Javascript:</strong></p>
<pre name="code" class="javascript">
window.addEvent('domready', function() {
	var drop = $('large');
	var dropFx = drop.effect('background-color', {wait: false});
	$$('.item').each(function(item){
		item.addEvent('click', function(e) {
			drop.removeEvents();
			drop.empty();
			var a = item.clone();
			a.inject(drop);
			dropFx.start('7389AE').chain(dropFx.start.pass('ffffff', dropFx));
		});
	});
});
</pre>
<p><strong>The HTML:</strong></p>
<pre class="html" name="code">
&lt;div id="imagegallery"&gt;
	&lt;div id="items"&gt;
		&lt;div class="item"&gt;
			&lt;img src="images/167461515_05807d9fdc.jpg" alt="image" /&gt;
			&lt;p&gt;Image 1&lt;/p&gt;
		&lt;/div&gt;
		&lt;div class="item" &gt;
			&lt;img src="images/229805603_e84bcf23bf.jpg" alt="image" /&gt;
			&lt;p&gt;Image 2&lt;/p&gt;
		&lt;/div&gt;
		&lt;div class="item"&gt;
			&lt;img src="images/248397811_0e7f1991be.jpg" alt="image" width="373" height="500" /&gt;
			&lt;p&gt;Image 3&lt;/p&gt;
		&lt;/div&gt;
		&lt;div class="item" &gt;
			&lt;img src="images/1058831139_3dbe9e47b9.jpg" alt="image" width="500" height="333" /&gt;
			&lt;p&gt;Image 4&lt;/p&gt;
		&lt;/div&gt;
		&lt;div class="item" &gt;
			&lt;img src="images/860213842_62e9bc4bcc.jpg" alt="image" width="500" height="333" /&gt;
			&lt;p&gt;Image 5&lt;/p&gt;
		&lt;/div&gt;
	&lt;/div&gt;
	&lt;div id="large"&gt;
		&lt;div class="info"&gt;Click A Thumbnail on the Left&lt;/div&gt;
	&lt;/div&gt;
	&lt;!– Image Gallery by http://tutorialdog.com –&gt;
&lt;/div&gt;
</pre>
<h3>How the Javascript Works</h3>
<p>The javascript you see above was the only part I needed to create- the rest is provided by the mootools framework. The first line, &#8220;window.addEvent(&#8217;domready&#8217;, function() {&#8221; and the closing brackets at the end is require of all (almost all) mootools scripts. The two variables at the beginning (var drop &amp; var dropFX) govern the element with id=&#8221;large&#8221; in the html and the background color of that element.</p>
<p>The next part is just a function to get the image from the &#8216;items&#8217; part of the html to the &#8216;large&#8217; part of the html. &#8220;$$(&#8217;.item&#8217;).each(function(item){&#8221; basically says that for each html element identified under the class &#8216;item&#8217;, apply the following conditions to element. Now there is only one condition which would be &#8220;item.addEvent(&#8217;click&#8217;, function(e) {&#8221;. This line of code says that when the item is clicked, apply the follow instructions in the functions brackets. If you wanted to, you could change the word &#8216;click&#8217; to &#8216;moueover&#8217; and instead of needing to click on each photo, you would simply need put the mouse over the thumbnail image to get the large image to appear and essential get the function to trigger.</p>
<p>The code inside that &#8216;click&#8217; function essential clears the items in the &#8216;large&#8217; element and creates a clone of that &#8216;item&#8217; class that was clicked and puts (injects) it into the &#8216;large&#8217; element in the html.</p>
<h3>Conclusion</h3>
<p>If you&#8217;re just looking for a quick yet cool javascript image gallery, then download the included zip file and tweak the css to your liking. If you want to find out more about Mootools and creating really cool web apps, then check out the <a href="http://demos.mootools.net/">mootool demos</a> which shows a variety of cool uses and a lot more functionality.<br />
<!--adsense#bannerimg2--></p>
	
		

		
<p><a href="http://feeds.feedburner.com/~a/TutorialDog?a=kqPYZc"><img src="http://feeds.feedburner.com/~a/TutorialDog?i=kqPYZc" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TutorialDog?a=yzqp8GD"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=yzqp8GD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=5EHiOad"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=5EHiOad" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=NeeOtcd"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=NeeOtcd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=dioh2Ud"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=dioh2Ud" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=Uyq6Vi"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=Uyq6Vi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TutorialDog?a=iAXzXI"><img src="http://feeds.feedburner.com/~f/TutorialDog?i=iAXzXI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/214195615" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/javascript-image-gallery-using-mootools/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=TutorialDog&amp;itemurl=http%3A%2F%2Ftutorialdog.com%2Fjavascript-image-gallery-using-mootools%2F</feedburner:awareness><feedburner:origLink>http://tutorialdog.com/javascript-image-gallery-using-mootools/</feedburner:origLink></item>
	<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetFeedData?uri=TutorialDog</feedburner:awareness></channel>
</rss><!-- Dynamic Page Served (once) in 0.838 seconds --><!-- Cached page served by WP-Cache --><!-- Compression = gzip -->
