<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><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:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" 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>
	<lastBuildDate>Mon, 24 Aug 2009 05:36:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/TutorialDog" type="application/rss+xml" /><feedburner:emailServiceId>TutorialDog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Using Ruby on Rails to Create A Twitter-Like Message Form</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/V4hiZ6socV8/</link>
		<comments>http://tutorialdog.com/using-ruby-on-rails-to-create-a-twitter-like-message-form/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 18:54:51 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
				<category><![CDATA[Javascript Tutorial]]></category>
		<category><![CDATA[Ruby on Rails Tutorials]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[web app]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=439</guid>
		<description><![CDATA[This tutorial will show you how to create a twitter message form that counts down the 140 characters and also allows you to input a message within the URL of the webpage as well. What's cool about Ruby on Rails is instead of writing javascript to recalculate the message length, we'll use Rails to automatically generate the correct javascript so that each time the field changes, the count is recalculated all through the controller object.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="ruby_on_rails_logo_3" src="http://tutorialdog.com/wp-content/uploads/2009/08/ruby_on_rails_logo_3.jpg" alt="ruby_on_rails_logo_3" width="200" />This tutorial will show you how to create a twitter message form that counts down the 140 characters and also allows you to input a message within the URL of the webpage as well. What&#8217;s cool about <a href="http://rubyonrails.org/">Ruby</a> on <a href="http://wiki.rubyonrails.org/">Rails</a> is instead of writing javascript to recalculate the message length, we&#8217;ll use Rails to automatically generate the correct javascript so that each time the field changes, the count is recalculated all through the controller object. Download the <a href="http://tutorialdog.com/wp-content/uploads/2009/08/twitter.zip">project code here</a>.</p>
<p>Firstly, I&#8217;ll assume you have ruby on rails installed and have create a new project. You&#8217;ll also need a basic knowledge of how Rails works, and how Rails utilizes the principle of Model-View-Controller (MVC). Having said that, create a new project and create a new controller file called <em>message_controller.rb</em>. We&#8217;ll first take care of an initial message specified in the URL of the page. Add this code to the file:</p>
<pre>class MessageController &lt; ApplicationController

  def index
    if params[:txt]
      @txt = params[:txt]
    else
      @txt = "";
    end
    @count = 140 - @txt.length()
  end

end</pre>
<p>The index method first check to see if a message was specified in the URL. If the a message was specified, then it sets the @txt instance variable to the string. If not, then the variable is set to an empty string. The count is also calculated here for the initial web page view.</p>
<p>Now we need to set up the view for the message controller, create a message folder in the views folder and create a new file called <em>index.rhtml</em> in this new folder. Copy this code to the file:</p>
<pre>&lt;h1&gt;Message&lt;/h1&gt;

&lt;% form_tag :action =&gt; 'stuff' do -%&gt;
	&lt;%= text_field_tag :message_field,value=@txt %&gt;
&lt;% end -%&gt;

&lt;div id='count'&gt;
	&lt;%= @count %&gt;
&lt;/div&gt;

&lt;%= observe_field(
	:message_field,
	:url =&gt;{:action =&gt;"update_message_length"},
	:frequency=&gt;1,
	:with =&gt; 'message',
	:update=&gt;:count ) -%&gt;</pre>
<p>The parts to focus on here are the text_field_tag and the observe_filed method. The div count is where the remaining count will be displayed. Looking at the text_field_tag, :message_field is the id of the tag, and the value is set to the @txt that was declared in the Message Controller. The observe_field method will automatically generate the javascript ajax code that will update the count tag. The parameters follow as such:</p>
<ol>
<li>:message_field &#8211; indicates which field is observed</li>
<li>:url &#8211; Decides which action is sent to the message controller. (More on that latter)</li>
<li>:frequency &#8211; Every time the field changes, make a AJAX request</li>
<li>:with &#8211; this will help us get the text in the field</li>
<li>:update &#8211; decides where the contents of the AJAX response goes</li>
</ol>
<p>At this point we need to go ahead and add the &#8220;update_message_length&#8221; method in the message controller. This function will be called every time the filed value is change as specified by the observe_field method. Append the following function to the controller:</p>
<pre>  def update_message_length
    pop = params[:message]
    count = 140 - pop.length()
    render :text =&gt;  count
  end</pre>
<p>This function gets the message include in the message parameter, and sends out the new count. One small, but vital part not to forget is to create a layout file that includes the needed javascript framework so this is included. Create a new file in the view/layouts folder called: message.html.erb. Add this code to the file:</p>
<pre>&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" xml:lang="en" lang="en"&gt;
&lt;head&gt;
  &lt;meta http-equiv="content-type" content="text/html;charset=UTF-8" /&gt;
  &lt;title&gt;Posts: &lt;%= controller.action_name %&gt;&lt;/title&gt;
  &lt;%= stylesheet_link_tag 'scaffold' %&gt;
  &lt;%= javascript_include_tag :defaults %&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;p style="color: green"&gt;&lt;%= flash[:notice] %&gt;&lt;/p&gt;

&lt;%= yield %&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Thats its! Now if you go to the URL <em>http://localhost:3000/message</em>, you&#8217;ll get a blank field, or you can include an initial message by <em>http://localhost:3000/message?txt=message+here</em>. Incase you have a flaw in your project, or are lazy, here is a copy of the <a href="http://tutorialdog.com/wp-content/uploads/2009/08/twitter.zip">working project</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=V4hiZ6socV8:S7gft-1UIYk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=V4hiZ6socV8:S7gft-1UIYk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=V4hiZ6socV8:S7gft-1UIYk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=V4hiZ6socV8:S7gft-1UIYk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=V4hiZ6socV8:S7gft-1UIYk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=V4hiZ6socV8:S7gft-1UIYk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=V4hiZ6socV8:S7gft-1UIYk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=V4hiZ6socV8:S7gft-1UIYk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=V4hiZ6socV8:S7gft-1UIYk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=V4hiZ6socV8:S7gft-1UIYk:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/V4hiZ6socV8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/using-ruby-on-rails-to-create-a-twitter-like-message-form/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/using-ruby-on-rails-to-create-a-twitter-like-message-form/</feedburner:origLink></item>
		<item>
		<title>Follow Up To Text Image Headers Tutorial</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/tAE02JmK8J0/</link>
		<comments>http://tutorialdog.com/follow-up-to-text-image-headers/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 03:51:42 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
				<category><![CDATA[CSS Tutorial]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=381</guid>
		<description><![CDATA[The first tutorial I published on CSS was a "trick" to essential hide the text generated from the HTML file and replace it with an image. Let me clarify what I mean by "trick" because its not meant to decieve anyone. It's a non-obvious way of achieving two competing goals: displaying graphical representation of text while not compromising the HTML text mainly for Google.]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://tutorialdog.com/create-seo-friendly-text-images-headers/">first tutorial</a> I published on CSS was a &#8220;trick&#8221; to essential hide the text generated from the HTML file and replace it with an image. Let me clarify what I mean by &#8220;trick&#8221; because its not meant to decieve anyone. It&#8217;s a non-obvious way of achieving two competing goals: displaying graphical representation of text while not compromising the HTML text mainly for Google. If you&#8217;re a web designer, you&#8217;ll know of the limitations to HTML and CSS and what may make a better user experience isn&#8217;t always good for Google. CSS and HTML is not only limited by the font selection, but something like a logo in which specicial types faces are created cannot be created through CSS. Using an image with an alt attribute just doesn&#8217;t seem like a good solution for a h1 headline tag either. For something like a screen reader, or viewing plain HTML, using the text is a better solution than the alt attribute of an image.</p>
<p>Now don&#8217;t get me wrong, this technique can be used for evil by hiding keywords to try to bolster search engine rankings on Google. I don&#8217;t know exactly how Google creates the ranking, but I do know that h1 headline serve as a key part in determining page rank for keywords. So who uses the negative text-indent trick? Google themselves use images for there main logo, but both Apple.com and Digg.com use negative text-indent to hide lot things. Apple hides their top navigation bar, and homepage featured items. Digg hides the h1 tag which states their name. (If you want to see for yourself, I&#8217;d recommend checking Apple homepage because you can see the relavent css directly in the source of the webpage. With Digg, you have to navigate your way through the file references.) Google doesn&#8217;t seem to penalize either of theses two sites. You might say that these guys are too big to be penalized, well in that case, this website, Tutorial Dog uses the negative text-indent and the site ranks on the first page for the keyword  &#8220;javascript image gallery&#8221;.</p>
<p><strong>Inadvertent Discovery</strong> While checking out Digg.com to see if they use negative text-indent, I discovered that they combine all their images for the site into <a href="http://digg.com/img/menu-current.gif">one large gif image</a>. They then direct the CSS file to specific sections of the image to show different images using the &#8216;background-position&#8217; attribute. Why would they imbed all images into one document? For a site like Digg, which recieves millions hits daily, by combining the images into one file, their servers receive less of a usage because many image files aren&#8217;t requested from the server. Once this large image file is requested and sent, the web browser can reference the file to generate the page. To further illustrate why this is better, think of moving a bunch of boxes. Digg likens the large image file to one large box. In this case, while this box may be bigger and weight more, you only have to move it once to get all of the required materials to the receiver. With a bunch of small images, you will have to move a bunch of boxes one at a time. This technique probably won&#8217;t be worth your while to implement for your web designs, because it will take more time for what its worth. Digg, because they deal with large traffic, finds that this technique optimizes their page serving ability.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=tAE02JmK8J0:jE24NaWvpp4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=tAE02JmK8J0:jE24NaWvpp4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=tAE02JmK8J0:jE24NaWvpp4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=tAE02JmK8J0:jE24NaWvpp4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=tAE02JmK8J0:jE24NaWvpp4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=tAE02JmK8J0:jE24NaWvpp4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=tAE02JmK8J0:jE24NaWvpp4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=tAE02JmK8J0:jE24NaWvpp4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=tAE02JmK8J0:jE24NaWvpp4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=tAE02JmK8J0:jE24NaWvpp4:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/tAE02JmK8J0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/follow-up-to-text-image-headers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/follow-up-to-text-image-headers/</feedburner:origLink></item>
		<item>
		<title>New Beginnings…</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/d6d9BZdR6pU/</link>
		<comments>http://tutorialdog.com/new-beginnings/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 18:02:05 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=369</guid>
		<description><![CDATA[Its been a while folks. Almost a year now. But its time to start to get the wheels moving on this great site, because you need it! Now even though its been almost a year since the last tutorial was published, Tutorial Dog has seen traffic continue to come at a steady rate which makes a comeback all the more necessary. The site also has stayed relevant with many commenters (thanks) giving input on many hot button articles of the site.]]></description>
			<content:encoded><![CDATA[<p>Its been a while folks. Almost a year now. But its time to start to get the wheels moving on this great site, because you need it! Now even though its been almost a year since the last tutorial was published, Tutorial Dog has seen traffic continue to come at a steady rate which makes a comeback all the more necessary. The site also has stayed relevant with many commenters (thanks) giving input on many <a href="http://tutorialdog.com/create-seo-friendly-text-images-headers/">hot</a> <a href="http://tutorialdog.com/javascript-image-gallery-using-mootools-part-2/">button</a> articles of the site.</p>
<div class="medium"><img title="picture-2" src="http://tutorialdog.com/wp-content/uploads/2009/06/picture-2.png" alt="Tutorial Dog Traffic" width="520" /> <span class="text"><strong>Figure 1.</strong> Traffic Since May 2008</span></div>
<p>And I felt the previous design lacked on at making this important enough. This new site focuses on the readability and how to display images in a book-like fashion. <a href="http://garrettdimon.com/archives/2008/7/7/gorilla_usability_testing/">Garretdimon.com</a> primarily inspired me to rethink the way to present content, and expanding the design outside of the structure of a box. By creating a gutter of free space on the right side, I can display images and information in an interesting visual way. Like so&#8230;</p>
<p>All there is left to do is to publish new material. If you haven&#8217;t done so already, subscribe to the RSS feed and stay tuned. I&#8217;ve got a lot of ideas, so we&#8217;ll have to see what materializes. If there is anything specific you&#8217;d like to learn more about, leave a comment below.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=d6d9BZdR6pU:gi-8OtVjVnQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=d6d9BZdR6pU:gi-8OtVjVnQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=d6d9BZdR6pU:gi-8OtVjVnQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=d6d9BZdR6pU:gi-8OtVjVnQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=d6d9BZdR6pU:gi-8OtVjVnQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=d6d9BZdR6pU:gi-8OtVjVnQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=d6d9BZdR6pU:gi-8OtVjVnQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=d6d9BZdR6pU:gi-8OtVjVnQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=d6d9BZdR6pU:gi-8OtVjVnQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=d6d9BZdR6pU:gi-8OtVjVnQ:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/d6d9BZdR6pU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/new-beginnings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/new-beginnings/</feedburner:origLink></item>
		<item>
		<title>Javascript Dock Carousel Using Mootools (Part 2)</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/lJiyrCqv8eA/</link>
		<comments>http://tutorialdog.com/javascript-dock-carousel-using-mootools-part-2/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 12:00:36 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
				<category><![CDATA[Javascript Tutorial]]></category>
		<category><![CDATA[Photoshop Tutorial]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[jscript]]></category>
		<category><![CDATA[Mac OS X Tutorial]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[net tutorial]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=291</guid>
		<description><![CDATA[This tutorial is the second part of a tutorial that will build a javascript carousel that imitates the Mac OS X dock. In part one, we build a mock up in Photoshop and exported the nessecary images. In this part, we'll take those images and build it into a HTML &#038; CSS. Then we'll use javascript to make if interact.]]></description>
			<content:encoded><![CDATA[<p>This tutorial is the second part of a tutorial that will build a javascript carousel that imitates the Mac OS X dock. In part one, we build a <a href="http://tutorialdog.com/javascript-dock-carousel-using-mootools-part-1/">mock up in Photoshop and exported the nessecary images</a>. In this part, we&#8217;ll take those images and build it into a HTML &amp; CSS. Then we&#8217;ll use javascript to make if interact.</p>
<p><a class="demo" href="/icon_carousel/">Demo</a> <a class="files" href="/icon_carousel/icon_carousel.zip">Files</a></p>
<p><strong>Step 1: The HTML</strong> To keep things organized, we&#8217;ll seperate the files into there own folders. So we&#8217;ll have a &#8220;js&#8221; folder to keep all the Javascript files, an &#8220;images&#8221; folder to hold all the webpage images, and a &#8220;icons&#8221; folder to hold the icon images. What needs to be in the HTML? Well, the links to move the stage left and right, the stage and all the icons and finally the text image. The &#8220;wrapper&#8221; class you will see later enables the icons on the next slide to hide. The icons are there own list elements.</p>
<div class="bannerimagead">Javascript applications run better with specialized <a href="http://www.webhostingsearch.com/jsp-web-hosting.php">Java hosting</a>. It ensures smooth, error free work of Java based websites or any Java script for that matter.</div>
<pre>
<span style="letter-spacing: 0.0px;">&lt;div id="stage-container"&gt;
 <span style="white-space: pre;"> </span>&lt;img src="images/text.gif" alt="image" width="111" height="24" /&gt;
 <span style="white-space: pre;"> </span>&lt;a id="moveleft"&gt;Left&lt;/a&gt;
 <span style="white-space: pre;"> </span>&lt;a id="moveright"&gt;Right&lt;/a&gt;
 <span style="white-space: pre;"> </span>&lt;div id="wrapper"&gt;&lt;ul id="items"&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/1.png" alt="image" width="32" /&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/2.png" alt="image" /&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/3.png" alt="image" /&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/4.png" alt="image"/&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/5.png" alt="image" /&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/10.png" alt="image"/&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/6.png"/&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/7.png"/&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/8.png" /&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;li&gt;&lt;a&gt;&lt;img src="icons/9.png" /&gt;&lt;/a&gt;&lt;/li&gt;
 <span style="white-space: pre;"> </span>&lt;/ul&gt;&lt;/div&gt;
 &lt;/div&gt;</span></pre>
<p>Now lets set up the header of the HTML document. We wan&#8217;t an XHTML tranistional document so that all the javascript is compliant and works. We need to reference the Mootools library, and the javascript that makes the stage work as well as the css file. We&#8217;ll deal with getting those files later.</p>
<pre>&lt;script src="js/mootools-12-core.js" type="text/javascript"&gt;&lt;!--mce:0--&gt;&lt;/script&gt; &lt;!-- MOOTOOLS 1.2  --&gt;
&lt;script src="js/mootools-12-more.js" type="text/javascript"&gt;&lt;!--mce:1--&gt;&lt;/script&gt; &lt;!-- MOOTOOLS 1.2  --&gt;
&lt;script src="js/dock.js" type="text/javascript"&gt;&lt;!--mce:2--&gt;&lt;/script&gt; &lt;!--   IMAGE GALLERY   --&gt;</pre>
<p><strong>Step 2: The CSS</strong> The trickiest part of the CSS is understanding the fact that we&#8217;re making the ul extend beyond the &#8216;div id=&#8221;wrapper&#8221;&#8216;. The image below explains how the tags appear with the CSS. The ul element extends because the class &#8220;items&#8221; has a width of 5000px, and the &#8220;wrapper&#8221; id has an overflow of hidden. The buttons are floated on either side of the stage, and the text is hidden with the text-indent attribute. To get a tag to conform to specified widths and heights, we use the &#8216;display: block&#8217; attribute.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/part2_1.gif" alt="image" width="540" height="308" /></div>
<pre>body{
background:#232323;
color:white;
}
#stage-container{
margin: 50px auto;
width: 420px;
}
#stage-container .text{text-align: center;}
#stage-container a{outline: none;}
/* — STAGE — */
#stage-container #wrapper{
overflow:hidden;
margin: 0px auto;
width:352px;
height:55px;
background: url(images/stage2.jpg);
position: relative;
}
#stage-container #items{
margin:0px;
padding:0px 6px;
list-style:none;
width:5000px;
position: relative;
}
#stage-container #items li{
float:left;
list-style:none;
margin-right:5px;
padding: 6px 6px;
margin-top: 5px;
}
/* — BUTTONS — */
#stage-container #moveleft{
float: left;
background: url(images/left.gif);
}
#stage-container #moveright{
background: url(images/right.gif);
float: right;
}
#stage-container #moveright,#moveleft{
height: 20px;
width: 20px;
display: block;
z-index: 10;
text-indent: -3000em;
margin-top: 18px;
}</pre>
<p><strong>Step 3: The Javascript</strong> First, we&#8217;ll be using the newly released <a href="http://mootools.net/">Mootools 1.2</a> for this javascript. Mootools is a &#8220;compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.&#8221; We&#8217;ll be utilizing the scroller class and the Fx classes to achieve the entire effects on the icons. Like almost all mootools scripts, we need to enclose the javascript in a dom ready action. What this does is not let the javascript work until all the javascript is completely loaded by the user.</p>
<p class="code">window.addEvent(&#8217;domready&#8217;, function() {<br />
// Your code here<br />
});</p>
<p>The first part of javascript just deals with moving the stage left and right. We need to tell the javascript where to slide the stage, if it can slide the stage left or right and how much to slide. When a button is clicked it triggers an event to move the slide left or right depending on which is clicked. The slides must figure out though if it can move left or right. We don&#8217;t want to move left if there is no icons to the left of the current slide. These issues are what the variables at the top of the javascript deal with.</p>
<p>The image in step 2 will help illustrated how the javascript is working. The unordered list element (ul id=&#8221;items&#8221;) is being shifted left and right by the javascript (thats why is larger than the stage). The shift is triggered by a hyperlink tag (&#8217;a').</p>
<pre>var slides = 2; // CHANGE THIS TO THE NUMBER OF SLIDES
var pos = 0; // default setting, start at the first(0) pixel
var offset = 346; // How many pixels the slider should move to get to the next slide
var currentslide = 1; // first slide is the default slide
var items = $('items'); // items variable for the id 'items' in the html
var fx = items.effects({
duration: 800,
transition: Fx.Transitions.linear
}); // the way the items transition is described here
/* Scroll Object Initialized */
var scroll = new Fx.Scroll('wrapper', {
offset:{'x':0, 'y':0},
transition: Fx.Transitions.Elastic.easeOut
}); // the scroll stage is set up here, and each movement will be 'Elastic'
// other tranistions could be linear, quadratic, ect.
/* Trigger to move the slide left */
//when the #moveleft link is clicked, this tells the scroll to move left
$('moveleft').addEvent('click', function(event) {
event = new Event(event).stop(); // don't go to the actual link described in the href
if(currentslide == 1) return; // can't go more left than the first
currentslide--; // currentslide is one less than before
pos += -(offset); // slide the stage left by the offset's size
/* lower the opactiy, slide, then raise back opacity */
fx.start({
'opacity': .3 // the opacity of the icons will become 30 %
}).chain(function(){
this.start.delay(800, this, { 'opacity': 1 }); // bring the icons back to 100% opacity
scroll.start(pos); // move the stage to the new position
});
});
$('moveright').addEvent('click', function(event) {
event = new Event(event).stop();
if(currentslide &gt;= slides) return;
currentslide++;
pos += offset;
fx.start({
'opacity': .3
}).chain(function(){
this.start.delay(800, this, { 'opacity': 1 });
scroll.start(pos);
});
});
scroll.toLeft(); // We'll initalize the stage to left most position</pre>
<div class="rightmargin"><img src="/wp-content/uploads/carousel/visual.png" alt="Javascript Visual of Events" /></div>
<p>The next part of the Javascript strictly deals with what happens when you move the cursor over an icon. We want to make the icon bigger. When the cursor leaves the icon, we need to readjust the icon to different size settings.</p>
<pre>$$('.icon').each(function(item){  // for each icon, apply the follow events
item.addEvent('mouseover', function(event) { // when the icon is moused over, enlarge it
var fx2 = item.effects({
duration: 200,
transition: Fx.Transitions.linear
}); // initialize the icon transition properties
fx2.start({
'width': 40,
'height':40,
'margin-top': '-2',
'margin-left': '-5'
});
});
item.addEvent('mouseleave', function(event) { // when the icon is left by the mouse, reset icon
var fx2 = item.effects({duration: 200, transition: Fx.Transitions.linear });
fx2.start({
'width': 32,
'height':32,
'margin-top': '0',
'margin-left': '0'
});
});
});</pre>
<p><strong>Conclusion</strong> Thats all that&#8217;s need to create a dock carousel. The icons in the demo are kindly provided by <a href="http://www.jonasraskdesign.com/">Jonas Rask</a> and <a href="http://tutorialdog.com/">Devin Ross</a>. I&#8217;ve implemented the dock in the <a href="http://tutorialdog.com/resources/">resources section of Tutorial Dog</a> were you can download icons that I&#8217;ve created.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=lJiyrCqv8eA:nr3slnohsxg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=lJiyrCqv8eA:nr3slnohsxg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=lJiyrCqv8eA:nr3slnohsxg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=lJiyrCqv8eA:nr3slnohsxg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=lJiyrCqv8eA:nr3slnohsxg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=lJiyrCqv8eA:nr3slnohsxg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=lJiyrCqv8eA:nr3slnohsxg:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=lJiyrCqv8eA:nr3slnohsxg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=lJiyrCqv8eA:nr3slnohsxg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=lJiyrCqv8eA:nr3slnohsxg:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/lJiyrCqv8eA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/javascript-dock-carousel-using-mootools-part-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/javascript-dock-carousel-using-mootools-part-2/</feedburner:origLink></item>
		<item>
		<title>Javascript Dock Carousel Using Mootools (Part 1)</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/YCaWcO1RVXU/</link>
		<comments>http://tutorialdog.com/javascript-dock-carousel-using-mootools-part-1/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 12:00:16 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
				<category><![CDATA[Javascript Tutorial]]></category>
		<category><![CDATA[Photoshop Tutorial]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=290</guid>
		<description><![CDATA[This tutorial will take you through creating the initial mockup in Photoshop, and creating a usable carousel that imitates the Mac OS X Leapard dock. This tutorial we'll acquiant you well with creating a slick button, and using the shape tools. We want to deal with shape layers instead of pixel because of the non-destructive nature of shapes. Non-desctructive shapes means you can edit and scale without distortion.]]></description>
			<content:encoded><![CDATA[<div class="floatl"><!--adsense#sr--></div>
<p><a href="http://tutorialdog.com/javascript-dock-carousel-using-mootools-part-2/">Follow part 2 of this tutorial here.</a> This tutorial will take you through creating the initial mockup in Photoshop, and creating a usable carousel that imitates the Mac OS X Leapard dock. This tutorial we&#8217;ll acquiant you well with creating a slick button, and using the shape tools. We want to deal with shape layers instead of pixel because of the non-destructive nature of shapes. Non-desctructive shapes means you can edit and scale without distortion.</p>
<h3>Step 1</h3>
<p>Create a photoshop and create a new document 540px x 308px. Fill the background with #232323.</p>
<p>Take the Rounded Rectangle Tool, set it to a 5px radius and create an object that is 350px by 50px. Make the color of this shape layer #303030. Make sure you have the tool set to the &#8220;Shape Layers&#8221; option instead of the paths option. That way, you are creating non-destructive shapes so you can go back and edit &amp; reference them later without compromising distortion. Next, type out &#8220;CAROUSEL&#8221; (or whatever you like) at the top of the document with the color #080808. Find a good serif font like &#8220;Myriad Pro&#8221;. Apply the Inner Shadow below layer style to the text.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/dropshadow.gif" alt="image" width="550" /><br />
<img src="/wp-content/uploads/carousel/1.gif" alt="image" width="540" /></div>
<h3>Step 2: Buttons</h3>
<p>Next, we need to create buttons that will move the carousel from left to right. First, create a 20px circle shape with the color #232323 using the ellipse tool. Apply the following Bevel &amp; Emboss and Gradient Overlay layer styles.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/bevel.gif" alt="image" width="550" /><br />
<img src="/wp-content/uploads/carousel/gradientoverlay.gif" alt="image" width="550" /><br />
<img src="/wp-content/uploads/carousel/button1.gif" alt="image" width="129" height="129" /></div>
<p>Now create a new white layer for the reflection. Start by creating another circle shape, and use Direct Selection Tool to mend the shape into the shape you see below. Move the handles (the line that is asymptotic to the path) of each point to change the curvature of the path. Set this layer to blending mode Overlay, and an opacity of 82%.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/button2.gif" alt="image" width="184" height="184" /></div>
<p>Next we need arrows to specify the direction. Take the pencil tool set to a 1px brush, and create a arrow out of pixels ontop of the button. Apply the following Drop Shadow and Inner Shadow to give the look that the arrow is imbedded in the button.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/arrow1.gif" alt="image" width="550" /><br />
<img src="/wp-content/uploads/carousel/arrow2.gif" alt="image" width="550" /></div>
<p>Finally for this step, group these three layers in a group and duplicate the group. Then with the group selected in the layer palette, Edit &gt;&gt; Transform &gt;&gt; Flip Horizontal. Place the buttons on either side of the stage.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/buttons.gif" alt="image" width="540" height="308" /></div>
<p><!--adsense#bannerimg2--></p>
<h3>Step 3: Stage</h3>
<div class="right"><img src="/wp-content/uploads/carousel/stage2.gif" alt="image" width="241" height="49" /></div>
<p>Now we&#8217;ll recreate a the Leopard dock. Fist we need the Leopard wallpaper. Place the image inside the Photoshop document, and use the shape made in step one to mask of the wallpaper layer. To do this, select the shape, and right click and pick &#8220;Make Selection&#8221;. Now with the selection, make a mask on the wallpaper layer. Click the little link connecting the mask to the image, to disassociate the mask with the layer, so you can move the image around without moving the mask around with it. Place the wallpaper in the correct place.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/stage1.gif" alt="image" width="550" />
</div>
<p>The next step is to create the shelf, create a white rectangle shape, and use the Direct Selection Tool to select the corners, and transform the shape to give it the perspective of a shelf. Again, we want to use the path of the original stage layer. This time though copy that path and paste the path into the shelf layer. With both paths selected, click the &#8220;Intersect Shapes area&#8221; button. Set the opacity of the stage to 51%.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/stage3.gif" alt="image" width="556" height="379" /></div>
<p>Finally, we need to create a swoosh across the stage. Again, we want to create a shape, this time, use the pen tool to create the shape over the stage. Set the opacity of this layer to 14%.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/stage4.gif" alt="image" width="506" height="273" /></div>
<h3>Step 4: Icons</h3>
<p>This step is more for mocking up the final product which we&#8217;ll be finished in Part 2, but drag 32px icons onto the dock. Space them appropriately.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/icons.gif" alt="image" width="540" height="308" /></div>
<p>When creating the icons for Part 2, we need to make sure that the icons are transparent and that the size of the icons are 40px or greater. To get best looking transparent icon, make sure you use the PNG-24 setting in the Save to Web palette. This will create the best looking transparent icon. If you export with GIF, you tend to get more jagged edges that look bad.</p>
<h3>Step 5: Slicing and Exporting for the Web</h3>
<p>Next we need to slice up the document to get it ready for the web. There should only be 4 slices in this document: the two buttons, the stage and the text. You can name each slice by taking Slice Selection Tool and double clicking on a slice. A panel will pop up with input to rename the slice, that way when you export, it will automatically name the images.</p>
<div class="imagef"><img src="/wp-content/uploads/carousel/slice1.gif" alt="image" width="541" height="309" /></div>
<p>Now that you&#8217;ve sliced the image, go to File &gt;&gt; Save to Web&#8230; You can change the export setting for each slice, but for this particular document leave each slice as a gif. For more info on exporting, check out this article that walks through <a href="http://tutorialdog.com/a-guide-to-exporting-to-the-web-in-photoshop/">exporting for the web in Photoshop</a>. When you go to save, make sure you change the option &#8220;Slice:&#8221; from &#8220;All Slices&#8221; to &#8220;All User Slices&#8221; so you don&#8217;t have unnecessary slices.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=YCaWcO1RVXU:QBugSIJy6tk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=YCaWcO1RVXU:QBugSIJy6tk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=YCaWcO1RVXU:QBugSIJy6tk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=YCaWcO1RVXU:QBugSIJy6tk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=YCaWcO1RVXU:QBugSIJy6tk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=YCaWcO1RVXU:QBugSIJy6tk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=YCaWcO1RVXU:QBugSIJy6tk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=YCaWcO1RVXU:QBugSIJy6tk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=YCaWcO1RVXU:QBugSIJy6tk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=YCaWcO1RVXU:QBugSIJy6tk:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/YCaWcO1RVXU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/javascript-dock-carousel-using-mootools-part-1/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/javascript-dock-carousel-using-mootools-part-1/</feedburner:origLink></item>
		<item>
		<title>Design Video Round #2</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/RpvIIe0jp_I/</link>
		<comments>http://tutorialdog.com/design-video-round-2/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 12:00:18 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
				<category><![CDATA[Video]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[hip hop]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://tutorialdog.com/?p=248</guid>
		<description><![CDATA[In the Hip-Hop edition of the Design Video Roundup, we’ll be diving deep into the world of hip-hop and design. Also, we dive into more animated typography, and Photoshop tutorials.]]></description>
			<content:encoded><![CDATA[<p>In the Hip-Hop edition of the Design Video Roundup, we&#8217;ll be diving deep into the world of hip-hop and design. Also, we dive into more animated typography, and Photoshop tutorials.</p>
<h3>Pulp Fiction Typography Video</h3>
<p>Another animated typography video, this time it&#8217;s done with one of my favorite movies Pulp Fiction. Nothing beats Sam Jackson with a Jheri Curl. I must warn, the contents of the video is a little explicit.</p>
<p><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/syf8olcM0z4&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/syf8olcM0z4&amp;hl=en" wmode="transparent"></embed></object></p>
<h3>Music Video</h3>
<p>This isn&#8217;t the most relevant video, but the music video has some cool animation effects with the boom box in the beginning plus the music is pretty good, and the breakdancing animals really are funny.</p>
<h3>Design Code Rap</h3>
<p>Now you probably think it&#8217;s another one stupid video like <a href="http://www.youtube.com/watch?v=PAyjXtF1SKk&amp;hl=en">Ridin Nerdy</a>, but this rap isn&#8217;t that wack. It&#8217;s pretty informative if ya listen closely.</p>
<p><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/a0qMe7Z3EYg&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/a0qMe7Z3EYg&amp;hl=en" wmode="transparent"></embed></object></p>
<h3>Add Focus To Your Photo &amp; Grab Attention</h3>
<p>This is the video to the <a href="http://tutorialdog.com/add-focus-to-your-photo-and-grab-attention/">photoshop tutorial</a> I wrote a while back.</p>
<p><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/JF4k9nuCSLM&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/JF4k9nuCSLM&amp;hl=en" wmode="transparent"></embed></object></p>
<h3>Create a Leopard OS &#8216;X&#8217;</h3>
<p>Statistically the most popular article on Tutorial Dog, garning over 43, 000 pageviews and 6,000+ video views.</p>
<p><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/FQTPyCGdaJA&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/FQTPyCGdaJA&amp;hl=en" wmode="transparent"></embed></object></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RpvIIe0jp_I:6LL3Hs5ZlHM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RpvIIe0jp_I:6LL3Hs5ZlHM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=RpvIIe0jp_I:6LL3Hs5ZlHM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RpvIIe0jp_I:6LL3Hs5ZlHM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=RpvIIe0jp_I:6LL3Hs5ZlHM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RpvIIe0jp_I:6LL3Hs5ZlHM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=RpvIIe0jp_I:6LL3Hs5ZlHM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RpvIIe0jp_I:6LL3Hs5ZlHM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=RpvIIe0jp_I:6LL3Hs5ZlHM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RpvIIe0jp_I:6LL3Hs5ZlHM:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/RpvIIe0jp_I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/design-video-round-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/design-video-round-2/</feedburner:origLink></item>
		<item>
		<title>Presidential Pattern in Photoshop – McCain vs Obama</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/eiyIF4__dT8/</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"><!--adsense#sr--></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="rightmargin"><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>
<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.jpg" alt="Wallpaper Final" width="820" /></a></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=eiyIF4__dT8:9nO0zhgiDX0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=eiyIF4__dT8:9nO0zhgiDX0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=eiyIF4__dT8:9nO0zhgiDX0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=eiyIF4__dT8:9nO0zhgiDX0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=eiyIF4__dT8:9nO0zhgiDX0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=eiyIF4__dT8:9nO0zhgiDX0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=eiyIF4__dT8:9nO0zhgiDX0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=eiyIF4__dT8:9nO0zhgiDX0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=eiyIF4__dT8:9nO0zhgiDX0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=eiyIF4__dT8:9nO0zhgiDX0:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/eiyIF4__dT8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/presidential-pattern-in-photoshop-mccain-vs-obama/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<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://feedproxy.google.com/~r/TutorialDog/~3/wb_np8nEM34/</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[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 class="alignright" title="obamapreview" src="http://tutorialdog.com/wp-content/uploads/2008/06/obamapreview.png" alt="Obama Preview" width="84" height="84" align="right" /> 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"><!--adsense#sr--></div>
<p><strong>Step 1: Obama</strong> 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.jpg" alt="Barack Obama" width="810" /></a></div>
<p><strong>Step 2: Color Background</strong> 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>
<p><strong>Step 3: Background Texture</strong> 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>
<p><strong>Step 4: Background Dots</strong> 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="imgfull"><a href="/wp-content/uploads/2008/06/dots1.gif"><img class="alignnone size-medium wp-image-257" title="dots1" src="/wp-content/uploads/2008/06/dots1.gif" alt="Brush Settings 1" width="260" /></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="260" /></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="260" /></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 class="alignnone size-medium wp-image-272" title="213819_9353" src="http://tutorialdog.com/wp-content/uploads/2008/06/213819_9353-550x429.jpg" alt="Original Smoke" width="550" height="429" /></a><a href="http://tutorialdog.com/wp-content/uploads/2008/06/smoke5.jpg"><img class="alignnone size-medium wp-image-273" title="smoke5" src="http://tutorialdog.com/wp-content/uploads/2008/06/smoke5.jpg" alt="Smoke Photo 2" width="550" height="430" /></a></div>
<p><strong>Conclusion</strong> 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 class="alignnone size-medium wp-image-275" title="final21" src="http://tutorialdog.com/wp-content/uploads/2008/06/final21.jpg" alt="Final Result" width="820" /></a></div>
<p><!--adsense#bannerimg2--></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=wb_np8nEM34:rKGIGjHq_O0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=wb_np8nEM34:rKGIGjHq_O0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=wb_np8nEM34:rKGIGjHq_O0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=wb_np8nEM34:rKGIGjHq_O0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=wb_np8nEM34:rKGIGjHq_O0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=wb_np8nEM34:rKGIGjHq_O0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=wb_np8nEM34:rKGIGjHq_O0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=wb_np8nEM34:rKGIGjHq_O0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=wb_np8nEM34:rKGIGjHq_O0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=wb_np8nEM34:rKGIGjHq_O0:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/wb_np8nEM34" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/barack-obamas-coldplay-ipod-itunes-commercial-in-photoshop/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		<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://feedproxy.google.com/~r/TutorialDog/~3/XAXTd1haLyg/</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[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>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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=XAXTd1haLyg:8eUZ4U0ExLw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=XAXTd1haLyg:8eUZ4U0ExLw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=XAXTd1haLyg:8eUZ4U0ExLw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=XAXTd1haLyg:8eUZ4U0ExLw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=XAXTd1haLyg:8eUZ4U0ExLw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=XAXTd1haLyg:8eUZ4U0ExLw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=XAXTd1haLyg:8eUZ4U0ExLw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=XAXTd1haLyg:8eUZ4U0ExLw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=XAXTd1haLyg:8eUZ4U0ExLw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=XAXTd1haLyg:8eUZ4U0ExLw:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/XAXTd1haLyg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/design-videos-roundup-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/design-videos-roundup-1/</feedburner:origLink></item>
		<item>
		<title>Link &amp; Meta Tags in HTML</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/Jcf4bZla4h4/</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[Web Design]]></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> &#8211; This is what your web browser uses to display the content</li>
<li><strong>Print</strong> &#8211; 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> &#8211; 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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=Jcf4bZla4h4:eFJ5Dfs6eUg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=Jcf4bZla4h4:eFJ5Dfs6eUg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=Jcf4bZla4h4:eFJ5Dfs6eUg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=Jcf4bZla4h4:eFJ5Dfs6eUg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=Jcf4bZla4h4:eFJ5Dfs6eUg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=Jcf4bZla4h4:eFJ5Dfs6eUg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=Jcf4bZla4h4:eFJ5Dfs6eUg:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=Jcf4bZla4h4:eFJ5Dfs6eUg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=Jcf4bZla4h4:eFJ5Dfs6eUg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=Jcf4bZla4h4:eFJ5Dfs6eUg:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/Jcf4bZla4h4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/link-meta-tags-in-html/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/link-meta-tags-in-html/</feedburner:origLink></item>
		<item>
		<title>Introduction To CSS</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/v9GnsY6V3Wo/</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"><!--adsense#sr--></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('left.gif');
}

#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('right.gif');
}</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 />
<!--adsense#bannerimg3--></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=v9GnsY6V3Wo:kSMBzD70v1E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=v9GnsY6V3Wo:kSMBzD70v1E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=v9GnsY6V3Wo:kSMBzD70v1E:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=v9GnsY6V3Wo:kSMBzD70v1E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=v9GnsY6V3Wo:kSMBzD70v1E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=v9GnsY6V3Wo:kSMBzD70v1E:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=v9GnsY6V3Wo:kSMBzD70v1E:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=v9GnsY6V3Wo:kSMBzD70v1E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=v9GnsY6V3Wo:kSMBzD70v1E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=v9GnsY6V3Wo:kSMBzD70v1E:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/v9GnsY6V3Wo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/introduction-to-css/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/introduction-to-css/</feedburner:origLink></item>
		<item>
		<title>Draw in Photoshop Using A Tablet</title>
		<link>http://feedproxy.google.com/~r/TutorialDog/~3/RjwqTJmZii4/</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[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 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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RjwqTJmZii4:EfoZjZ8AoEs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RjwqTJmZii4:EfoZjZ8AoEs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=RjwqTJmZii4:EfoZjZ8AoEs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RjwqTJmZii4:EfoZjZ8AoEs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=RjwqTJmZii4:EfoZjZ8AoEs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RjwqTJmZii4:EfoZjZ8AoEs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=RjwqTJmZii4:EfoZjZ8AoEs:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RjwqTJmZii4:EfoZjZ8AoEs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TutorialDog?i=RjwqTJmZii4:EfoZjZ8AoEs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TutorialDog?a=RjwqTJmZii4:EfoZjZ8AoEs:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/TutorialDog?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TutorialDog/~4/RjwqTJmZii4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tutorialdog.com/draw-in-photoshop-using-a-tablet/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		<feedburner:origLink>http://tutorialdog.com/draw-in-photoshop-using-a-tablet/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.728 seconds. --><!-- Cached page generated by WP-Super-Cache on 2009-11-07 14:40:20 --><!-- Compression = gzip -->
