<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Stiern.com</title> <atom:link href="http://stiern.com/feed" rel="self" type="application/rss+xml" /><link>http://stiern.com</link> <description>Web design, graphic design, Photoshop, CSS, etc</description> <lastBuildDate>Sat, 28 Aug 2010 15:07:45 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>CSS3 is Not Freaking HTML5</title><link>http://stiern.com/articles/css3-is-not-freaking-html5</link> <comments>http://stiern.com/articles/css3-is-not-freaking-html5#comments</comments> <pubDate>Wed, 09 Jun 2010 09:42:03 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Articles]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[MooTools]]></category> <category><![CDATA[Prototype]]></category><guid
isPermaLink="false">http://stiern.com/?p=1032</guid> <description><![CDATA[So, there&#8217;s been quite a buzz about HTML5 lately. New semantic elements, native audio and video tags, the canvas element, etc. It&#8217;s all good. However, some people seem to have a hard time distinguishing between HTML5 and CSS3. And between HTML5 and jQuery. Not Flash. They know that HTML5 is not Flash. In this article [...]]]></description> <content:encoded><![CDATA[<p>So, there&#8217;s been quite a buzz about HTML5 lately. New semantic elements, native audio and video tags, the canvas element, etc. It&#8217;s all good. However, some people seem to have a hard time distinguishing between HTML5 and CSS3. And between HTML5 and jQuery. Not Flash. They know that HTML5 is not Flash.</p><p><span
id="more-1032"></span></p><p>In this article I&#8217;m going to give you a very<em> </em>short overview of the three technologies, to help you know the difference.</p><h3>CSS3</h3><p>CSS—or <em>cascading stylesheets</em>—is a specification under development. Many features are already supported by modern browsers such as Safari, Firefox, and Chrome (and soon to come: IE9). Let&#8217;s have a glance at the W3C&#8217;s (those guys who work on developing standards) description of <a
title="HTML &amp; CSS - W3C" href="http://www.w3.org/standards/webdesign/htmlcss">what CSS is</a>:</p><blockquote><p>&#8220;CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts.&#8221;</p></blockquote><p>Okay, so it&#8217;s got something to do with layout. What can you do with CSS? Well, you can <em>style</em> HTML elements. You can animate them. It&#8217;s awesome. But it&#8217;s not HTML5! I feel tempted to, once again, quote W3C:</p><blockquote><p>&#8220;The separation of HTML from CSS makes it easier to maintain sites, share style sheets across pages, and tailor pages to different environments. This is referred to as the <em>separation of structure (or: content) from presentation.&#8221;</em></p></blockquote><p>For me, that settles it. In case it doesn&#8217;t for you, <em>separation</em> is the keyword here. We&#8217;re <em>separating</em> structure (HTML) from presentation (CSS). Structure. And presentation. Not the same. But equally important.</p><p>Even though CSS3 is not HTML5, it doesn&#8217;t mean that it isn&#8217;t cool. You can do all sorts of amazing stuff with CSS3. So many people have created lists of stunning CSS3 effects, and I&#8217;m not going to attempt to do it over again, &#8217;cause they&#8217;re all really good.</p><p>To learn more about CSS3 and what it does, check out <a
title="CSS3.info" href="http://www.css3.info/">CSS3.info</a>.</p><h3>JavaScript Frameworks</h3><p>JavaScript frameworks/libraries/whatever are might popular these days. With relatively few lines of code it&#8217;s possible to do Ajax interactions, animations, and a bunch of other stuff. Popular frameworks include <a
title="jQuery" href="http://jquery.com">jQuery</a>, <a
title="Prototype" href="http://www.prototypejs.org/">Prototype</a>, and <a
title="MooTools" href="http://mootools.net/">MooTools</a>—and they all share the same thing: it&#8217;s <em>JavaScript</em>. And JavaScript is not HTML5.</p><p>You can use JavaScript to enable HTML5 elements in older browsers (check out <a
title="Modernizt" href="http://modernizr.com/">Modernizr</a>), or you can use it to develop incredible web applications. JavaScript is amazing. Being able to do modifications on a website without reloading it is great. But it isn&#8217;t HTML5.</p><h3>HTML5</h3><blockquote><p>&#8220;HTML is the language for describing the structure of Web pages.&#8221;</p></blockquote><p>Yeah, I&#8217;m quoting W3C again. HTML5 is an emerging standard to take over HTML 4 and XHTML 1.1. With focus on structural elements and web application features, HTML5 really is going to be the next big thing. Recently, Apple launched their <a
title="Apple's HTML5 showcase" href="http://www.apple.com/html5/">“HTML5” showcase</a>. What&#8217;s funny is, that most examples are actually showcasing CSS3 and JavaScript. And as you all might remember—neither CSS3 nor JavaScript is HTML5.</p><p>It seems that HTML5 is becoming the generic term for &#8220;cool stuff you can do on the Internet&#8221;. I feel sorry for HTML5. It deserves to be recognized for what it is, and what it&#8217;s good at. As do CSS3. As do JavaScript. This confusion of concept isn&#8217;t doing good for anyone. Few years from now I fear my clients saying: &#8220;The design is a little bit boring. Maybe if you add some HTML5 effects…&#8221;.</p><p>So please, help spread the word: CSS3 is not HTML5. Neither is JavaScript.</p><p>Related posts:<ol><li><a
href='http://stiern.com/tutorials/create-a-cool-messy-list-with-css3-and-nth-child' rel='bookmark' title='Permanent Link: Create a Cool Messy List with CSS3 and nth-child'>Create a Cool Messy List with CSS3 and nth-child</a></li><li><a
href='http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website' rel='bookmark' title='Permanent Link: 5 Cool Ways to Add Graphs to Your Website'>5 Cool Ways to Add Graphs to Your Website</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/articles/css3-is-not-freaking-html5/feed</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Stunning Wedding Invitation Inspiration and Resources</title><link>http://stiern.com/inspiration/stunning-wedding-invitation-inspiration</link> <comments>http://stiern.com/inspiration/stunning-wedding-invitation-inspiration#comments</comments> <pubDate>Fri, 14 May 2010 09:06:11 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Inspiration]]></category> <category><![CDATA[Graphic Design]]></category> <category><![CDATA[invitation]]></category> <category><![CDATA[wedding]]></category><guid
isPermaLink="false">http://stiern.com/?p=976</guid> <description><![CDATA[When the big day comes closer, you need to send out invitations. Sure, you might buy some cards and put your names on them. But if you&#8217;re a designer, why not design them yourself? This post holds examples of some amazing wedding invitation cards, that you can use for your inspiration. You will also find [...]]]></description> <content:encoded><![CDATA[<p>When the big day comes closer, you need to send out invitations. Sure, you might buy some cards and put your names on them. But if you&#8217;re a designer, why not design them yourself? This post holds examples of some amazing wedding invitation cards, that you can use for your inspiration. You will also find fonts, brushes, patterns, etc., that you can use in your designs.</p><p><span
id="more-976"></span></p><h3>Inspiration</h3><p><a
class="postimg" title="Wedding Invitation, C&amp;M" href="http://vanityclaire.deviantart.com/art/Wedding-Invitation-02-113995066"><img
class="alignnone size-full wp-image-979" title="Wedding Invitation, C&amp;M" src="http://stiern.com/site/wp-content/everything/27d01d290a5509e6b4dc4192edf230c8.jpg" alt="" width="540" height="540" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/aprilink/3220620218/"><img
class="alignnone size-full wp-image-981" title="Melanie &amp; Phillip" src="http://stiern.com/site/wp-content/everything/3220620218_9095f7e24c_b.jpg" alt="" width="540" height="405" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/thingsarebetterwithaparrott/3911913739/"><img
class="alignnone size-full wp-image-983" title="Set Sail" src="http://stiern.com/site/wp-content/everything/3911913739_dd87333d8e_b.jpg" alt="" width="540" height="360" /></a></p><p><a
class="postimg" href="http://vanityclaire.deviantart.com/art/Wedding-Invitation-04-113995492"><img
class="alignnone size-full wp-image-985" title="Julia &amp; Mark" src="http://stiern.com/site/wp-content/everything/ce9985583be6a35edd4b4d31fdc65107.jpg" alt="" width="540" height="540" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/barbaraferreira/3593906470/"><img
class="alignnone size-full wp-image-986" title="Juliana &amp; Miguel" src="http://stiern.com/site/wp-content/everything/3593906470_35659e9101_b.jpg" alt="" width="540" height="405" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/28091627@N04/3116861578/"><img
class="alignnone size-full wp-image-988" title="Palais letterpress" src="http://stiern.com/site/wp-content/everything/3116861578_7732a9bdc3_o.jpg" alt="" width="540" height="450" /></a></p><p><a
href="http://www.flickr.com/photos/tugboatprintshop/2365502178/sizes/o/"><img
class="alignnone size-full wp-image-989" title="Dan &amp; Andy" src="http://stiern.com/site/wp-content/everything/2365502178_cf9a00227a_o.jpg" alt="" width="540" height="405" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/royalsteamline/3730106299/"><img
class="alignnone size-full wp-image-992" title="Abby &amp; Justin" src="http://stiern.com/site/wp-content/everything/3730106299_3d47231fdc_o.jpg" alt="" width="540" height="748" /></a></p><p><a
class="postimg" href="http://peterbowen.deviantart.com/art/Wedding-Invitation-149901696"><img
class="alignnone size-full wp-image-994" title="Samantha &amp; Adam" src="http://stiern.com/site/wp-content/everything/04111f27e10db3de3a4e4ca56270ac43.jpg" alt="" width="423" height="600" /></a></p><p><a
class="postimg" href="http://rcryn.deviantart.com/art/Wedding-Invitation-2-132106764"><img
class="alignnone size-full wp-image-995" title="Randy &amp; Jacqueline" src="http://stiern.com/site/wp-content/everything/Wedding_Invitation_2_by_rcryn.jpg" alt="" width="540" height="382" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/dcwrittenword/4017849458/"><img
class="alignnone size-full wp-image-996" title="Laura &amp; Scott" src="http://stiern.com/site/wp-content/everything/4017849458_328c9c7ebd_b.jpg" alt="" width="540" height="405" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/36707143@N05/3384867356/"><img
class="alignnone size-full wp-image-997" title="Julie &amp; David" src="http://stiern.com/site/wp-content/everything/3384867356_97eddd55bf_o.jpg" alt="" width="530" height="530" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/27511405@N00/4504959494/"><img
class="alignnone size-full wp-image-998" title="Sarah &amp; John" src="http://stiern.com/site/wp-content/everything/4504959494_a7d621550f_o.jpg" alt="" width="514" height="386" /></a></p><p><a
class="postimg" href="http://www.flickr.com/photos/papercutindustries/4405297702/"><img
class="alignnone size-full wp-image-999" title="Simone &amp; James" src="http://stiern.com/site/wp-content/everything/4405297702_c1f38e38df_b.jpg" alt="" width="540" height="436" /></a></p><h3>Fonts</h3><p>As you can see in many of the designs above, calligraphic fonts are often used in wedding invitations. Be careful when choosing your font—your want your guest to be able to read the text. There&#8217;s no reason not to mix font. For instance, you can use a calligraphic font for your names and a serif font for the rest of the text. The possibilities are endless. Here are some free fonts you can use in your wedding invitation designs.</p><p><a
class="postimg postimg2" href="http://www.fontsquirrel.com/fonts/Ballpark"><img
class="alignnone size-full wp-image-1002" title="Ballpark" src="http://stiern.com/site/wp-content/everything/ballpark.png" alt="" width="540" height="70" /></a></p><p><a
class="postimg postimg2" href="http://www.fontsquirrel.com/fonts/Windsong"><img
class="alignnone size-full wp-image-1004" title="Windsong" src="http://stiern.com/site/wp-content/everything/windsong.png" alt="" width="540" height="100" /></a></p><p><a
class="postimg postimg2" href="http://www.fontsquirrel.com/fonts/Calluna"><img
class="alignnone size-full wp-image-1006" title="Calluna" src="http://stiern.com/site/wp-content/everything/calluna.png" alt="" width="540" height="70" /></a></p><p><a
class="postimg postimg2" href="http://www.fontsquirrel.com/fonts/Goudy-Bookletter-1911"><img
class="alignnone size-full wp-image-1007" title="Goudy Bookletter 1911" src="http://stiern.com/site/wp-content/everything/goudy.png" alt="" width="540" height="70" /></a></p><p><a
class="postimg postimg2" href="http://www.dafont.com/philosopher.font"><img
class="alignnone size-full wp-image-1008" title="Philosopher" src="http://stiern.com/site/wp-content/everything/philosopher.png" alt="" width="540" height="70" /></a></p><p><a
class="postimg postimg2" href="http://www.dafont.com/freebooter-script.font"><img
class="alignnone size-full wp-image-1017" title="Freebooter Script" src="http://stiern.com/site/wp-content/everything/freebooter.png" alt="" width="540" height="100" /></a></p><p>Also, be sure to check out the ampersand in Baskerville Italic (which you probably have on your computer).</p><h3>Brushes and Patterns</h3><p>Ornaments and florals are often seen in wedding invitations. Here are some Photoshop brushes and patterns to use in your designs.</p><p><a
class="postimg" href="http://www.brusheezy.com/brushes/2293-Calligraphic-Ornaments"><img
class="alignnone size-full wp-image-1009" title="Calligraphic Ornaments" src="http://stiern.com/site/wp-content/everything/calligraphic_ornaments-1.jpg" alt="" width="540" height="252" /></a></p><p><a
class="postimg" href="http://www.brusheezy.com/brushes/1449-Swirls-and-Flourishes"><img
class="alignnone size-full wp-image-1010" title="Swirls and Flourishes" src="http://stiern.com/site/wp-content/everything/Swirls___Flourishes_II_Brus.jpg" alt="" width="300" height="220" /></a></p><p><a
href="http://www.brusheezy.com/patterns/2211-Baroque-collection-lite"><img
class="alignnone size-full wp-image-1011" title="Baroque Seamless Patterns" src="http://stiern.com/site/wp-content/everything/cover.jpg" alt="" width="540" height="412" /></a></p><p><a
class="postimg" href="http://www.brusheezy.com/brushes/1758-Funky-Paisley-Brushes"><img
class="alignnone size-full wp-image-1012" title="Funky Paisley Brushes" src="http://stiern.com/site/wp-content/everything/Funky_Paisley_Brushes_by_debh945.jpg" alt="" width="300" height="220" /></a></p><p><a
href="http://www.brusheezy.com/patterns/1710-Wallpaper-patterns"><img
class="alignnone size-full wp-image-1013" title="Wallpaper Patterns" src="http://stiern.com/site/wp-content/everything/preview.png" alt="" width="540" height="517" /></a></p><p><img
class="alignnone size-full wp-image-1014" title="Book Ornaments Brushes" src="http://stiern.com/site/wp-content/everything/Book_Ornaments_Brushes_3_by_Leichnam.jpg" alt="" width="400" height="400" /></p><p><a
class="postimg" href="http://pruttmaskin.deviantart.com/art/A-Scroll-Banner-Brush-68650079"><img
class="alignnone size-full wp-image-1015" title="A Scroll Banner" src="http://stiern.com/site/wp-content/everything/A_Scroll_Banner_Brush_by_pruttmaskin.jpg" alt="" width="500" height="500" /></a></p><p>I hope you enjoyed the post, and found some great inspiration and resources for your wedding invitation project. Be sure to post a link to your wedding invitation in the comments.</p><p>Related posts:<ol><li><a
href='http://stiern.com/articles/finding-inspiration-in-music' rel='bookmark' title='Permanent Link: Finding Inspiration in Music'>Finding Inspiration in Music</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/inspiration/stunning-wedding-invitation-inspiration/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Create a Cool Messy List with CSS3 and nth-child</title><link>http://stiern.com/tutorials/create-a-cool-messy-list-with-css3-and-nth-child</link> <comments>http://stiern.com/tutorials/create-a-cool-messy-list-with-css3-and-nth-child#comments</comments> <pubDate>Thu, 15 Apr 2010 07:00:34 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[nth-child]]></category><guid
isPermaLink="false">http://stiern.com/?p=920</guid> <description><![CDATA[While working on a design recently, I stumbled upon Chris Coyier&#8217;s article How nth-child Works. Chris shows us the basics of the nth-child pseudo-selector in CSS. It can be used for so many things, but in this short tutorial I&#8217;m going to show you how to create a cool messy list. First, check out the [...]]]></description> <content:encoded><![CDATA[<p>While working on a design recently, I stumbled upon Chris Coyier&#8217;s article <em><a
title="How nth-child Works | CSS-Tricks" href="http://css-tricks.com/how-nth-child-works/">How nth-child Works</a></em>. Chris shows us the basics of the nth-child pseudo-selector in CSS. It can be used for so many things, but in this short tutorial I&#8217;m going to show you how to create a cool messy list.<br
/> <span
id="more-920"></span><br
/> First, check out the demo to see what we&#8217;re creating in <a
href="http://dl.dropbox.com/u/32709/stiern/messylist/index.html" title="Demo">the demo</a>.</p><p>We&#8217;re going to start with an HTML5 document (why not?), and include a stylesheet, as shown below:</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Messy List<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
<span style="color: #00bbdd;">&lt;!DOCTYPE HTML&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Messy List<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;style.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;header&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Messy List<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>header&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;section&gt;</span>
&nbsp;
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Lorem ipsum dolor sit amet<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Duis aute irure dolor in reprehenderit.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Excepteur sint occaecat cupidatat.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Ut enim ad minim veniam.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;footer&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Copyright <span style="color: #ddbb00;">&amp;copy;</span> 2010<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>footer&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div><p>That&#8217;s a pretty simple HTML document—and of course the most important part is the list. Next, here&#8217;s the stylesheet (with an HTML5 CSS reset in it as well). You can get the background from <a
href="http://seamlesstextures.net/textures/grid%20paper" title="SeamlessTextures">SeamlessTextures</a>. I&#8217;ve modified it in color and size, so you can also just get <a
href="http://dl.dropbox.com/u/32709/stiern/messylist/background.png" title="Modified background">my version</a>.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* HTML 5 Reset */</span>
html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<span style="color: #00AA00;">,</span> h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5<span style="color: #00AA00;">,</span> h6<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span> del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span> small<span style="color: #00AA00;">,</span>  strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span> b<span style="color: #00AA00;">,</span> i<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span> fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span> table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span> tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
body <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
table <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-collapse</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">collapse</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
section<span style="color: #00AA00;">,</span> article<span style="color: #00AA00;">,</span> aside<span style="color: #00AA00;">,</span> header<span style="color: #00AA00;">,</span> footer<span style="color: #00AA00;">,</span> nav<span style="color: #00AA00;">,</span> dialog<span style="color: #00AA00;">,</span> figure <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
body <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">background.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span> <span style="color: #993333;">auto</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
h1 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>odd<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.1</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>odd<span style="color: #00AA00;">&#41;</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.3</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>even<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.3</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>even<span style="color: #00AA00;">&#41;</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>3n<span style="color: #00AA00;">+</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	-webkit-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-0.6deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-0.6deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-0.6deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>3n<span style="color: #00AA00;">+</span><span style="color: #cc66cc;">2</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	-webkit-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>0.5deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>0.5deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>0.5deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>3n<span style="color: #00AA00;">+</span><span style="color: #cc66cc;">3</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	-webkit-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>0.2deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>0.2deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>0.2deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p>I guess there&#8217;s not much new for you here, but let&#8217;s break it down a bit anyway. First, we define the width of our body to be 600px. Also, we include the aforementioned background, specify font and color, and add a top margin. Next, we define the size of our H1. And now comes the fun part.</p><p>We remove the dots from our list with <code>list-style: none;</code>, and add a little padding to our list elements. We&#8217;ll look at the nth-child selectors in bits. Check out the first one:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>odd<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.1</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>odd<span style="color: #00AA00;">&#41;</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.3</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>even<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.3</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>even<span style="color: #00AA00;">&#41;</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>We choose every second <code>li</code> element, and add a background to it. In this case, we choose a dark gray, and set the opacity to 0.1 (RGBA is new in CSS3), so we can see the background through the <code>li</code> elements. We do exactly the same for our even elements, with the opacity set to 0.3. This is just basic zebra striping. You can add several selectors to an element, so we also add a hover background color a little darker than the original element.</p><p>Next, we target <code>3n+1</code>—that is, every third element, starting with the first.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">ul li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>3n<span style="color: #00AA00;">+</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	-webkit-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-0.6deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-0.6deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-0.6deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>We rotate the list element by -0.6 degrees. We do the same thing for both <code>3n+2</code> (every third element, starting with the second) and <code>3n+3</code> (you get the idea). By rotating every third element, and doing zebra striping with every second element, the list seems sort of random, which, I think, is a really cool effect.</p><p>If you use Safari, Firefox or Chrome, this is what you should have:<br
/> <a
class="lightbox postimg"  title ="Mess List" href="http://stiern.com/site/wp-content/everything/messylist.png"><img
src="http://stiern.com/site/wp-content/everything/messylist.png" alt="" title="Mess List" width="540" height="267" class="alignnone size-full wp-image-932" /></a></p><p><b>UPDATE:</b> You can target Opera with the following (thanks to <a
href="http://stiern.com/tutorials/create-a-cool-messy-list-with-css3-and-nth-child/comment-page-1#comment-5821">ToMzorz</a>):</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">-o-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-0.6deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></pre></td></tr></table></div><p>You can also check out <a
href="http://dl.dropbox.com/u/32709/stiern/messylist/index.html" title="Demo">the demo</a> again, or download the <a
href="http://dl.dropbox.com/u/32709/stiern/messylist/messylist.zip" title="Source code">source code</a>.</p><p>Thanks for reading.</p><p>Related posts:<ol><li><a
href='http://stiern.com/tutorials/enhancing-your-site-with-webkit' rel='bookmark' title='Permanent Link: Enhancing Your Site with WebKit'>Enhancing Your Site with WebKit</a></li><li><a
href='http://stiern.com/articles/css3-is-not-freaking-html5' rel='bookmark' title='Permanent Link: CSS3 is Not Freaking HTML5'>CSS3 is Not Freaking HTML5</a></li><li><a
href='http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website' rel='bookmark' title='Permanent Link: 5 Cool Ways to Add Graphs to Your Website'>5 Cool Ways to Add Graphs to Your Website</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/tutorials/create-a-cool-messy-list-with-css3-and-nth-child/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Should Comment Forms Have More Fields?</title><link>http://stiern.com/articles/should-comment-forms-have-more-fields</link> <comments>http://stiern.com/articles/should-comment-forms-have-more-fields#comments</comments> <pubDate>Thu, 10 Dec 2009 23:41:43 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Articles]]></category> <category><![CDATA[Accessibility]]></category> <category><![CDATA[Comments]]></category> <category><![CDATA[Discussion]]></category> <category><![CDATA[Usability]]></category> <category><![CDATA[Web Design]]></category><guid
isPermaLink="false">http://stiern.com/?p=879</guid> <description><![CDATA[Often, when you visit a website, you&#8217;ll want to leave a comment there. To do that, you&#8217;ll of course write some text in a comment form. But most comment forms, regardless of their design, look the same. Sure, some do add that hated captcha field, but still, most comment forms are the same. But should [...]]]></description> <content:encoded><![CDATA[<p>Often, when you visit a website, you&#8217;ll want to leave a comment there. To do that, you&#8217;ll of course write some text in a comment form. But most comment forms, regardless of their design, look the same. Sure, some do add that hated captcha field, but still, most comment forms are the same.</p><p><span
id="more-879"></span></p><p>But should they be? This post is in not an answer, it is an introduction to discussion&mdash;and hopefully reflection.</p><p>So, which comment fields do we see in comment forms today?</p><h3>Name</h3><p>Name is pretty obvious. We need a name to know who writes the comment.</p><h3>E-mail</h3><p>Is the e-mail field necessary? Well, many websites uses an e-mail field in the fight against spam. But is that really necessary? Most spam bots can figure out how to put an &#8216;@&#8217; between two words in order to cheat. Still, it&#8217;s better to have a little security than none at all.</p><h3>Website</h3><p>In this field, the user can put the URL to their website&mdash;if they have one. Most people that visit my website don&#8217;t have a website&mdash;at least they don&#8217;t write the URL in the website field.</p><h3>Comment</h3><p>This field is of course obvious, as it is the comment itself.</p><p>So, these four fields are the basics of a standard comment form. But what could we else be needing? Let&#8217;s look at where we might be able to improve.</p><p><br
/></p><h3>Headlines</h3><p>Why not give your users the possibility to give their comment a headline? It, of course, depends on each website, but headlines can be a good way to summarize a comment, and help people find the comment they are looking for a lot faster.</p><h3>Age</h3><p>Depending on your site&#8217;s topic, age might be a good field to add. It might even replace the name field in case the site is based on the anonymity of the user.</p><h3>Gender</h3><p>Like with age, a site allowing you to be anonymous would be a good place to use a gender field in your comment section.</p><h3>Social media</h3><p>Social media is here to stay. Whether it&#8217;s <a
href="http://facebook.com" title="Facebook">Facebook</a>, <a
href="http://twitter.com" title="Twitter">Twitter</a>, <a
href="http://flickr.com" title="Flickr">Flickr</a>, etc., social media connects people. And even though the primary function of a comment section on a website is not to connect people, I don&#8217;t see why we can&#8217;t add to social media by letting our users link to their social media accounts in a comment form.</p><p>Let your users write the URL to their Facebook account, their Flickr user name, their Last.fm account, whatever! Still, you shouldn&#8217;t let it get too clumsy by filling the comments up with way too much information. If there&#8217;s no need to let them write it, don&#8217;t give them the option.</p><p>If those reading the comment find one comment particularily interesting, it is very easy to get in touch with the person who wrote it, as the e-mail address isn&#8217;t public.</p><h3>Category</h3><p>You might want your users to give different categories of comments, such as review, support, criticism, etc. The comments can be styled in different colors or within tabs. A great example of this is <a
title="The Idea Shower" href="http://www.ideashower.com/ideas/launched/css-text-wrapper/">The Idea Shower</a>, as seen in the picture below.</p><p><a
class="lightbox postimg" title="Example from The Idea Shower" href="http://stiern.com/site/wp-content/everything/comment_example.png"><img
class="alignnone size-full wp-image-885" title="Example from The Idea Shower" src="http://stiern.com/site/wp-content/everything/comment_example.png" alt="" width="500" height="575" /></a></p><h3>Final Thoughts</h3><p>Remember, before everything, that you shouldn&#8217;t add a field if there is no use for them. The most important part of the comment is the comment itself&mdash;<em>don&#8217;t confuse your visitors with too much information</em>; you still want your comments to be readable.</p><p>This was my thoughts about adding new fields to a comment form. What do you think? Do you think it should stay the way it is or should we take advantage of being able to make every comment form different? Please write you comment in the standard comment form below&hellip;</p><p>Related posts:<ol><li><a
href='http://stiern.com/articles/which-social-networks-are-you-part-of' rel='bookmark' title='Permanent Link: Which Social Networks Are You Part Of?'>Which Social Networks Are You Part Of?</a></li><li><a
href='http://stiern.com/tutorials/how-to-use-directions-with-google-maps-api-v3' rel='bookmark' title='Permanent Link: How to Use Directions with Google Maps API V3'>How to Use Directions with Google Maps API V3</a></li><li><a
href='http://stiern.com/articles/5-ways-to-make-money-with-your-blog' rel='bookmark' title='Permanent Link: 5 Ways to Make Money with Your Blog'>5 Ways to Make Money with Your Blog</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/articles/should-comment-forms-have-more-fields/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>How to Use Directions with Google Maps API V3</title><link>http://stiern.com/tutorials/how-to-use-directions-with-google-maps-api-v3</link> <comments>http://stiern.com/tutorials/how-to-use-directions-with-google-maps-api-v3#comments</comments> <pubDate>Mon, 09 Nov 2009 08:20:59 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Google Maps]]></category> <category><![CDATA[Web Design]]></category><guid
isPermaLink="false">http://stiern.com/?p=801</guid> <description><![CDATA[Google Maps are more fun when you can get directions. And now you can! The recent release of the Google Maps API adds two new classes in order to enable directions. In this article I will show you how to add an input field in an infobox and use that to render a route. But [...]]]></description> <content:encoded><![CDATA[<p>Google Maps are more fun when you can get directions. And now you can! The recent release of the Google Maps API adds two new classes in order to enable directions. In this article I will show you how to add an input field in an infobox and use that to render a route.</p><p><span
id="more-801"></span></p><p>But before that, here&#8217;s how it looks when it is done:</p><div
class="iframe-wrapper"> <iframe
src="http://dl.getdropbox.com/u/32709/googlemaps_dir/index.html" frameborder="0" style="height:300px;width:500px;">Please upgrade your browser</iframe></div><p>Because of the size at the page here the infobox gets a scroll bar, but just ensure to make your map large enough, then it will not happen.</p><h3>Overview</h3><ul><li><a
href="#whatsnew">What&#8217;s New?</a></li><li><a
href="#corrections">Corrections</code></li><li><a
href="#directions">The Directions</a></li><li><a
href="#calcRoute">Calculating the Route</a></li><li><a
href="#conclusion">Conclusion</code></li></ul><h3><a
id="whatsnew">What's New?</a></h3><p>Since my <a
href="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website" title="Adding Custom Google Maps to Your Website">last article</a> a couple of new features have been added to the API, as you can also read about in the <a
href="http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog" title="Google Maps API V3 changelog">changelog</a>. The most important, in my opinion, is of course the support of directions, and that's the only function I will discuss here. Worthy to note, though &mdash; you do not have to use an API code anymore.</p><p>The support for directions is possible via two new classes, <code>DirectionsRenderer</code> and <code>DirectionsService</code>. <code>DirectionsRenderer</code>&hellip; Well&hellip; Renders the directions, and <code>DirectionsService</code> computes the actual directions. But the big question is &mdash; how do we use them?</p><h3><a
id="corrections">Corrections</a></h3><p>Before we rush into the new code, we should make some corrections in our excisting code. If you haven't read my article <a
href="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website" title="Adding Custom Google Maps to Your Website">Adding Custom Google Maps to Your Website</a>, do yourself a favor and do so before continuing on this one.</p><p><br
/> &nbsp;</p><p>Next, look in your code where you define your markers and ensure that your values follow these rules:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> companyImage <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span>’images<span style="color: #339933;">/</span>logo.<span style="color: #660066;">png</span>’<span style="color: #339933;">,</span>
<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">100</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// (width, height)</span>
 <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
 <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">50</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span> <span style="color: #006600; font-style: italic;">// (width/2, height) );</span>
<span style="color: #003366; font-weight: bold;">var</span> companyShadow <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span>’images<span style="color: #339933;">/</span>logo_shadow.<span style="color: #660066;">png</span>’<span style="color: #339933;">,</span>
 <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// (width, height) </span>
<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">65</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span> <span style="color: #006600; font-style: italic;">// (width/2, height) );</span></pre></td></tr></table></div><p>Dividing the image's width by 2 ensures that it's the bottom center point of the image that'll be used for the marker. Thanks to <a
href="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website/comment-page-2#comment-2663" title="JM">JM</a> for this solution.</p><h3><a
id="directions">The Directions</a></h3><p>So, first we have to call the <code>DirectionsService</code> constructor. Before your <code>initialize()</code>, create a new variable:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> directionsService <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">DirectionsService</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Next, we have to create the renderer. Right before the variable you just created, define a new variable <code>directionDisplay</code>. This variable is going to contain the renderer.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> directionDisplay<span style="color: #339933;">;</span></pre></td></tr></table></div><p>In your <code>initialize()</code> function, right after the <code>latLng</code> variable, set the <code>directionDisplay</code> variable to this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">directionsDisplay <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">DirectionsRenderer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Further down in your code, find the <code>map</code> variable (right after the <code>settings</code> variable. Write this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">directionsDisplay.<span style="color: #660066;">setMap</span><span style="color: #009900;">&#40;</span>map<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>This renders the marker on the specified map, which in this case is <code>map</code>. Next, let's define what we want to write in our infobox by expanding the <code>contentString</code> variable:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">	<span style="color: #003366; font-weight: bold;">var</span> contentString <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;div id=&quot;content&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;div id=&quot;siteNotice&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;h1 id=&quot;firstHeading&quot; class=&quot;firstHeading&quot;&gt;Høgenhaug&lt;/h1&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;div id=&quot;bodyContent&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/p&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;p&gt;Find your way here from:&lt;/p&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;form action=&quot;index.html&quot; onsubmit=&quot;calcRoute();return false;&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;input type=&quot;text&quot; id=&quot;start&quot; value=&quot;prinsensgade 5, 9000&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;input type=&quot;submit&quot; value=&quot;Find directions&quot;&gt;&lt;/form&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Let's look a bit into the <code>form</code> used to ask the user for an address:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">	<span style="color: #3366CC;">'&lt;form action=&quot;index.html&quot; onsubmit=&quot;calcRoute();return false;&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;input type=&quot;text&quot; id=&quot;start&quot; value=&quot;prinsensgade 5, 9000&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;input type=&quot;submit&quot; value=&quot;Find directions&quot;&gt;&lt;/form&gt;'</span><span style="color: #339933;">+</span></pre></td></tr></table></div><p>First, we write "index.html" in our <code>action</code> attribute. This path should be to the file where your map is placed. In <code>onsubmit</code> we call the function <code>calcRoute()</code> (which we will define later), and next we write <code>return false</code> to prevent the site from reloading when the user submits the form. The next two lines should be pretty self-explainable. If you want the user to be able to enter both addresses, you can just add an extra input field called <code>end</code>. The value of the <code>start</code> field can be empty or you can write a pre-defined address.</p><h3><a
id="calcRoute">Calculating the Route</a></h3><p>At the very end of the <code>initialize()</code> function, write the following:</p><pre lang="javascript" line="1>
function calcRoute() {
	var start = document.getElementById("start").value;
	var end = "57.0442, 9.9116";
	var request = {
		origin:start,
		destination:end,
		travelMode: google.maps.DirectionsTravelMode.DRIVING
	};
</pre><p>In the <code>form</code> we called the function <code>calcRoute()</code>. That's the one we are defining here. The first thing to do is define the two variables <code>start</code> and <code>end</code>. If you inserted an extra input field before write <code>document.getElementById("end").value;</code> in <code>end</code> instead of the coordinates.</p><p>Next, define the variable <code>request</code>. The attributes of this one are fairly logical, but let's explain them just in case. We define the <code>origin</code> of the route to our variable <code>start</code>, and the destination to <code>end</code>. Also, we define a travelmode &mdash;. This can be either <code>DRIVING</code> or <code>WALKING</code>.</p><p>Lastly, insert this code:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">directionsService.<span style="color: #660066;">route</span><span style="color: #009900;">&#40;</span>request<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>response<span style="color: #339933;">,</span> <span style="color: #000066;">status</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">status</span> <span style="color: #339933;">==</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">DirectionsStatus</span>.<span style="color: #660066;">OK</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		directionsDisplay.<span style="color: #660066;">setDirections</span><span style="color: #009900;">&#40;</span>response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>This issues the actual search request, and completes the <code>initialize()</code> function.</p><h3><a
id="conclusion">Conclusion</a></h3><p>With very little effort you can show your visitor how to get to your address directly from your website, instead of sending them to Google Maps or some other place. I hope you enjoyed the tutorial &mdash; please let me know if you have questions or suggestions. You are of course free to download the <a
href="http://dl.dropbox.com/u/32709/googlemaps_dir/googlemaps_directions.zip" title="The source files">source files</a>.</p><p>While you are here, why don't you <a
href="http://twitter.com/pshoeg" title="Follow me on Twitter">follow me on Twitter</a> or subscribe to the <a
href="http://feeds.feedburner.com/stiern" title="Subscribe to the RSS feed">RSS feed</a>?</p><p>Related posts:<ol><li><a
href='http://stiern.com/tutorials/adding-custom-google-maps-to-your-website' rel='bookmark' title='Permanent Link: Adding Custom Google Maps to Your Website'>Adding Custom Google Maps to Your Website</a></li><li><a
href='http://stiern.com/tutorials/enhancing-your-site-with-webkit' rel='bookmark' title='Permanent Link: Enhancing Your Site with WebKit'>Enhancing Your Site with WebKit</a></li><li><a
href='http://stiern.com/tutorials/no-more-invalid-rss' rel='bookmark' title='Permanent Link: No More Invalid RSS'>No More Invalid RSS</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/tutorials/how-to-use-directions-with-google-maps-api-v3/feed</wfw:commentRss> <slash:comments>15</slash:comments> </item> <item><title>5 Ways to Make Money with Your Blog</title><link>http://stiern.com/articles/5-ways-to-make-money-with-your-blog</link> <comments>http://stiern.com/articles/5-ways-to-make-money-with-your-blog#comments</comments> <pubDate>Sun, 01 Nov 2009 21:45:02 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Articles]]></category> <category><![CDATA[Amazon]]></category> <category><![CDATA[Blogging]]></category> <category><![CDATA[BuySellAds]]></category> <category><![CDATA[Donation]]></category> <category><![CDATA[Google AdSense]]></category> <category><![CDATA[Money]]></category> <category><![CDATA[Tradedoubler]]></category><guid
isPermaLink="false">http://stiern.com/?p=815</guid> <description><![CDATA[Maintaining a blog can be quite a job. Writing new, interesting articles and providing resources for your visitors can be a hassle, even though you enjoy every part of it. I am sure you&#8217;d like to earn a little something after your effort. This post looks into some easy ways to start monetizing your blog. [...]]]></description> <content:encoded><![CDATA[<p>Maintaining a blog can be quite a job. Writing new, interesting articles and providing resources for your visitors can be a hassle, even though you enjoy every part of it. I am sure you&#8217;d like to earn a little something after your effort. This post looks into some easy ways to start monetizing your blog.<br
/> <span
id="more-815"></span></p><h3>BuySellAds</h3><p><a
class="lightbox postimg" title="BuySellAds" href="http://stiern.com/site/wp-content/everything/bsa.png"><img
class="size-full wp-image-823" title="BuySellAds" src="http://stiern.com/site/wp-content/everything/bsa.png" alt="BuySellAds" width="500" height="150" /></a></p><p>BuySellAds is a very popular ad network that helps advertisers and publishers communicate. They have some very simple rules to follow to ensure the quality of the sites the ads are placed. First of all, the service evolves around design and tech sites with more than 100.000 impressions per month, which narrows it down a bit. Also, your website has to be in English. Many popular websites, such as the <a
title="Tuts+" href="http://tutsplus.com/">Tuts+ Network</a>, use this network.<br
/> <a
title="BuySellAds" href="http://buysellads.com/">Visit BuySellAds</a></p><h3>Google AdSense</h3><p><a
class="lightbox postimg" title="AdSense" href="http://stiern.com/site/wp-content/everything/adsense.png"><img
class="size-full wp-image-826" title="AdSense" src="http://stiern.com/site/wp-content/everything/adsense.png" alt="AdSense" width="500" height="150" /></a></p><p>Google AdSense is by far the most popular ad network in the world. It is very easy to setup &amp;emdash; in less than 5 minutes, you will have working ads on your website. It takes a lot of visitors to make real money out of this, but it is definitely possible. You can use AdSense both to place ads on your website, in your e-mail newsletters, in your search results, and in your feeds.<br
/> <a
title="Google AdSense" href="https://www.google.com/adsense/">Visit Google AdSense</a></p><h3>TradeDoubler</h3><p><a
class="lightbox postimg" title="Tradedoubler" href="http://stiern.com/site/wp-content/everything/tradedoubler.png"><img
class="size-full wp-image-827" title="Tradedoubler" src="http://stiern.com/site/wp-content/everything/tradedoubler.png" alt="Tradedoubler" width="500" height="150" /></a></p><p>TradeDoubler was founded in Sweden in 1999, and since then, it has grown to a very large marketing company. When you sign up, you will have to get your website accepted, and when you want to place ads, the companies will also have to accept your site as relevant for their products. Even though this might seem like a huge process, it can be well worth it. Some large companies, such as Apple and Dell, sell their ads here.<br
/> <a
title="TradeDoubler" href="http://www.tradedoubler.com/">Visit TradeDoubler</a></p><h3>Amazon</h3><p><a
class="lightbox postimg" title="Amazon" href="http://stiern.com/site/wp-content/everything/amazon.png"><img
class="size-full wp-image-833" title="Amazon" src="http://stiern.com/site/wp-content/everything/amazon.png" alt="Amazon" width="500" height="150" /></a></p><p>Amazon.com Associates puts Amazon products on your website, and allows you to make money from it. When people buy after following a link from your blog, you will get up to 15 %.<br
/> <a
title="Amazon.com Associates" href="https://affiliate-program.amazon.com/">Visit Amazon.com Associates</a></p><h3>Donations</h3><p><a
class="lightbox postimg" title="PayPal" href="http://stiern.com/site/wp-content/everything/paypal.png"><img
class="size-full wp-image-835" title="PayPal" src="http://stiern.com/site/wp-content/everything/paypal.png" alt="PayPal" width="500" height="150" /></a></p><p>If you&#8217;d like you can also ask your users for donation. That can be a great idea if you give away lots of free stuff. Most people won&#8217;t give you anything, but others will gladly spare a dime to help you out. For this purpose, you can use for instance <a
title="PayPal" href="https://www.paypal.com/">PayPal</a>. Instead of money, you can also ask for <a
href="http://www.blogclout.com/blog/goodies/buy-me-a-beer-paypal-donation-plugin/">a beer</a>.</p><p>I hope this article has given you a short glimpse into some different methods of earning money with your blog. Which services do you use, if any? Please share in the comments.</p><p>Related posts:<ol><li><a
href='http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website' rel='bookmark' title='Permanent Link: 5 Cool Ways to Add Graphs to Your Website'>5 Cool Ways to Add Graphs to Your Website</a></li><li><a
href='http://stiern.com/articles/should-comment-forms-have-more-fields' rel='bookmark' title='Permanent Link: Should Comment Forms Have More Fields?'>Should Comment Forms Have More Fields?</a></li><li><a
href='http://stiern.com/articles/great-designers-to-get-inspired-by' rel='bookmark' title='Permanent Link: Great Designers to get Inspired by'>Great Designers to get Inspired by</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/articles/5-ways-to-make-money-with-your-blog/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>250+ Sweet Icons for Your External Media</title><link>http://stiern.com/downloads/250-sweet-icons-for-your-external-media</link> <comments>http://stiern.com/downloads/250-sweet-icons-for-your-external-media#comments</comments> <pubDate>Sat, 24 Oct 2009 14:54:48 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Downloads]]></category> <category><![CDATA[Freebie]]></category> <category><![CDATA[Icon]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Windows]]></category><guid
isPermaLink="false">http://stiern.com/?p=734</guid> <description><![CDATA[Whether you&#8217;re a Mac or a Windows user, the system icons for external media such as cameras, memory cards, and external harddrives, can be pretty boring. Luckily, the world is filled with skilled (what a rhyme!) icon designers that create stunning icons for you to download for free. I&#8217;ve tried to collect some of the [...]]]></description> <content:encoded><![CDATA[<p>Whether you&#8217;re a Mac or a Windows user, the system icons for external media such as cameras, memory cards, and external harddrives, can be pretty boring. Luckily, the world is filled with skilled (what a rhyme!) icon designers that create stunning icons for you to download for free. I&#8217;ve tried to collect some of the icons I find beatiful. Enjoy!<br
/> <span
id="more-734"></span></p><p><a
class="postimg" href="http://mugenb16.deviantart.com/art/Massive-Media-Icons-Win-48654751"><img
class="size-full wp-image-758 alignnone" title="Massive Media Icons" src="http://stiern.com/site/wp-content/everything/massivemedia.png" alt="Massive Media Icons" width="500" height="302" /></a></p><p><a
href="http://mugenb16.deviantart.com/art/Massive-Media-Icons-Win-48654751">Massive Media Icons</a></p><p><a
class="postimg" href="http://cyberella74.deviantart.com/art/Archigraphs-Nanos-Icons-132018163"><img
class="alignnone size-full wp-image-764" title="Archigraph's Nano Icons" src="http://stiern.com/site/wp-content/everything/nano.png" alt="" width="500" height="260" /></a></p><p><a
title="Archigraph's Nano Icons" href="http://cyberella74.deviantart.com/art/Archigraphs-Nanos-Icons-132018163">Archigraphs&#8217; Nano Icons</a></p><p><a
class="postimg" href="http://o0urge0o.deviantart.com/art/Creativ-Zen-Vision-M-Icons-129964616"><img
class="alignnone size-full wp-image-765" title="Creativ Zen Vision M Icons" src="http://stiern.com/site/wp-content/everything/zen.png" alt="" width="500" height="313" /></a></p><p><a
title="OS X Creative Zen Vision M Icons" href="http://o0urge0o.deviantart.com/art/Creativ-Zen-Vision-M-Icons-129964616">OS X Creative Zen Vison M Icons</a></p><p><a
class="postimg" href="http://tatice.deviantart.com/art/Zune-93172167"><img
class="alignnone size-full wp-image-766" title="Zune" src="http://stiern.com/site/wp-content/everything/zune.png" alt="" width="500" height="409" /></a></p><p><a
title="Zune" href="http://tatice.deviantart.com/art/Zune-93172167">Zune</a></p><p><a
class="postimg" href="http://icontoaster.com/?free-icons-for-all"><img
class="alignnone size-full wp-image-767" title="75 Black Translucent Drive Icons" src="http://stiern.com/site/wp-content/everything/translucent.jpg" alt="" width="398" height="181" /></a></p><p><a
title="75 Black Translucent Drive Icons" href="http://icontoaster.com/?free-icons-for-all">75 Black Translucent Drive Icons</a> (scroll down on the page)</p><p><a
class="postimg" href="http://jrdn88.deviantart.com/art/WD-External-Hard-Drive-Icons-79574904"><img
class="alignnone size-full wp-image-768" title="WD External Hard Drive Icons" src="http://stiern.com/site/wp-content/everything/wd.png" alt="" width="500" height="220" /></a></p><p><a
title="WD External Hard Drive Icons" href="http://jrdn88.deviantart.com/art/WD-External-Hard-Drive-Icons-79574904">WD External Hard Drive Icons</a></p><p><a
class="postimg" href="http://hezral.deviantart.com/art/hard-disk-updated-131598916"><img
class="alignnone size-full wp-image-770" title="hard disk updated" src="http://stiern.com/site/wp-content/everything/hezral.png" alt="" width="500" height="400" /></a></p><p><a
title="hard disk updated" href="http://hezral.deviantart.com/art/hard-disk-updated-131598916">hard disk updated</a></p><p><a
class="postimg" href="http://qwertykkk.deviantart.com/art/Laura-Drives-icon-set-128240979"><img
class="alignnone size-full wp-image-771" title="Laura - Drives Icon Set" src="http://stiern.com/site/wp-content/everything/laura.png" alt="" width="500" height="282" /></a></p><p><a
title="Laura - Drives Icon Set" href="http://qwertykkk.deviantart.com/art/Laura-Drives-icon-set-128240979">Laura &#8211; Drives Icon Set</a></p><p><a
class="postimg" href="http://macthemes2.net/forum/viewtopic.php?pid=496728"><img
class="alignnone size-full wp-image-772" title="SSD Icon" src="http://stiern.com/site/wp-content/everything/ssd.png" alt="" width="455" height="278" /></a></p><p><a
title="SSD Icon" href="http://macthemes2.net/forum/viewtopic.php?pid=496728">SSD Icon</a></p><p><a
class="postimg" href="http://interfacelift.com/icons-mac/details.php?id=1912"><img
class="alignnone size-full wp-image-773" title="Mac mini LaCie mini Hard Drive &amp; Hub" src="http://stiern.com/site/wp-content/everything/macminilacie.png" alt="" width="500" height="200" /></a></p><p><a
title="Mac mini LaCie mini Hard Drive &amp; Hub" href="http://interfacelift.com/icons-mac/details.php?id=1912">Mac mini LaCie mini Hard Drive &amp; Hub</a></p><p><a
class="postimg" href="http://aidanh.deviantart.com/art/Sony-Microvault-110199490"><img
class="alignnone size-full wp-image-774" title="Sony Microvault" src="http://stiern.com/site/wp-content/everything/sonyvault.png" alt="" width="500" height="333" /></a></p><p><a
title="Sony Microvault" href="http://aidanh.deviantart.com/art/Sony-Microvault-110199490">Sony Microvault</a></p><p><a
class="postimg" href="http://www.graphicpeel.com/icons"><img
class="alignnone size-full wp-image-775" title="Boxdrive" src="http://stiern.com/site/wp-content/everything/boxdrive.png" alt="" width="435" height="163" /></a></p><p><a
title="Boxdrive" href="http://www.graphicpeel.com/icons">Boxdrive</a> (scroll down on the page)</p><p><a
class="postimg" href="http://thvg.deviantart.com/art/Wooden-Slick-Drives-96893103"><img
class="alignnone size-full wp-image-776" title="Wooden Slick Drives" src="http://stiern.com/site/wp-content/everything/wooden.png" alt="" width="500" height="454" /></a></p><p><a
title="Wooden Slick Drives" href="http://thvg.deviantart.com/art/Wooden-Slick-Drives-96893103">Wooden Slick Drives</a></p><h3><span
style="font-size: small;"><span
style="font-weight: normal;"><a
class="postimg" href="http://365icon.com/icon-styles/photography/classic-camera-vintage-camera-icons/"><img
class="alignnone size-full wp-image-777" title="Classic Camera - Vintage Camera Icons" src="http://stiern.com/site/wp-content/everything/vintage.png" alt="" width="500" height="323" /></a></span></span></h3><p><a
title="Classic Cameras - Vintage Camera Icons" href="http://365icon.com/icon-styles/photography/classic-camera-vintage-camera-icons/">Classic Cameras &#8211; Vintage Camera Icons</a></p><p><a
class="postimg" href="http://interfacelift.com/icons-mac/details.php?id=1881"><img
class="alignnone size-full wp-image-778" title="Pentax *ist DL" src="http://stiern.com/site/wp-content/everything/pentax.png" alt="" width="264" height="128" /></a></p><p><a
title="Pentax *ist DL" href="http://interfacelift.com/icons-mac/details.php?id=1881">Pentax *ist DL</a></p><p><a
class="postimg" href="http://interfacelift.com/icons-mac/details.php?id=1515"><img
class="alignnone size-full wp-image-780" title="Nikon D70" src="http://stiern.com/site/wp-content/everything/nikond70.png" alt="" width="220" height="120" /></a></p><p><a
title="Nikon D70" href="http://interfacelift.com/icons-mac/details.php?id=1515">Nikon D70</a></p><p><a
class="postimg" href="http://sveiki.deviantart.com/art/Nikon-D40-Icon-Set-69911211"><img
class="alignnone size-full wp-image-781" title="Nikon D40" src="http://stiern.com/site/wp-content/everything/nikond40.png" alt="" width="500" height="310" /></a></p><p><a
title="Nikon D40" href="http://sveiki.deviantart.com/art/Nikon-D40-Icon-Set-69911211">Nikon D40</a></p><p><a
class="postimg" href="http://www.iconarchive.com/category/photographic/canon-digital-camera-icons-by-newformula.org.html"><img
class="alignnone size-full wp-image-782" title="Canon Digital Camera Icons" src="http://stiern.com/site/wp-content/everything/canon.png" alt="" width="500" height="155" /></a></p><p><a
title="Canon Digital Camera Icons" href="http://www.iconarchive.com/category/photographic/canon-digital-camera-icons-by-newformula.org.html">Canon Digital Camera Icons</a></p><p><a
class="postimg" href="http://kyo-tux.deviantart.com/art/Camera-Nikon-130801274"><img
class="alignnone size-full wp-image-783" title="Camera Nikon" src="http://stiern.com/site/wp-content/everything/nikon.png" alt="" width="500" height="363" /></a></p><p><a
title="Camera Nikon" href="http://kyo-tux.deviantart.com/art/Camera-Nikon-130801274">Camera Nikon</a></p><p><a
class="postimg" href="http://www.midtonedesign.com/#portfolio?canon400d"><img
class="alignnone size-full wp-image-784" title="Canon 400D &amp; Lens" src="http://stiern.com/site/wp-content/everything/400d.png" alt="" width="500" height="520" /></a></p><p><a
title="Canon 400D &amp; Lens" href="http://www.midtonedesign.com/#portfolio?canon400d">Canon 400D &amp; Lens</a></p><p><a
title="Canon 400D &amp; Lens" href="http://www.midtonedesign.com/#portfolio?canon400d"></a><img
class="alignnone size-full wp-image-785" title="Memory Card Icon" src="http://stiern.com/site/wp-content/everything/memcard.png" alt="" width="400" height="600" /></p><p>Memory Card Icon</p><p><a
class="postimg" href="http://nukeypearce.deviantart.com/art/Removable-Drive-Icons-43534221"><img
class="alignnone size-full wp-image-787" title="Removable Drive Icons" src="http://stiern.com/site/wp-content/everything/removable.png" alt="" width="500" height="481" /></a></p><p><a
title="Removable Drive Icons" href="http://nukeypearce.deviantart.com/art/Removable-Drive-Icons-43534221">Removable Drive Icons</a></p><p><a
class="postimg" href="http://cgink.deviantart.com/art/Extreme-Media-Pack-89680823"><img
class="alignnone size-full wp-image-788" title="Extreme Media Pack" src="http://stiern.com/site/wp-content/everything/extreme.png" alt="" width="500" height="500" /></a></p><p><a
title="Extreme Media Pack" href="http://cgink.deviantart.com/art/Extreme-Media-Pack-89680823">Extreme Media Pack</a></p><p><a
title="Removable Drive Icons" href="http://nukeypearce.deviantart.com/art/Removable-Drive-Icons-43534221"></a></p><p>And that&#8217;s a wrap! Hope you like the icons, and be sure to read the licenses.</p><p>Related posts:<ol><li><a
href='http://stiern.com/articles/8-os-x-apps-with-beautiful-icons' rel='bookmark' title='Permanent Link: 8 OS X Apps With Beautiful Icons'>8 OS X Apps With Beautiful Icons</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/downloads/250-sweet-icons-for-your-external-media/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>5 Cool Ways to Add Graphs to Your Website</title><link>http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website</link> <comments>http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website#comments</comments> <pubDate>Sun, 18 Oct 2009 13:20:35 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Articles]]></category> <category><![CDATA[Chart]]></category> <category><![CDATA[Flot]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[Graph]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Open Flash Chart]]></category> <category><![CDATA[SVG]]></category> <category><![CDATA[Visualize]]></category><guid
isPermaLink="false">http://stiern.com/?p=585</guid> <description><![CDATA[Graphs, charts and diagrams can be used to visually describe data. Visualizing data is very important, as it helps the reader to understand the data even better. And even though some people might prefer viewing data in a table, I think we are many who feel more comfortable in viewing data graphically. Fortunately for us, [...]]]></description> <content:encoded><![CDATA[<p>Graphs, charts and diagrams can be used to visually describe data. Visualizing data is very important, as it helps the reader to understand the data even better. And even though some people might prefer viewing data in a table, I think we are many who feel more comfortable in viewing data graphically. Fortunately for us, there are several ways you can implement data into a graph on a website.</p><p><span
id="more-585"></span></p><p>Basically, you have two main options; You can use Flash, or you can use jQuery. What you prefer is entirely up to you, but I&#8217;d like to show you some of the possibilities within each technology.</p><h3>Open Flash Chart</h3><div
id="attachment_594" class="wp-caption alignnone" style="width: 510px"><a
class="lightbox" title="Open Flash Chart" href="http://stiern.com/site/wp-content/everything/ofc.png"><img
class="alignnone size-full wp-image-597" title="Open Flash Chart" src="http://stiern.com/site/wp-content/everything/ofc.png" alt="" width="500" height="186" /></a><p
class="wp-caption-text">An example of a bar chart made with Open Flash Chart</p></div><p>Open Flash Chart is—as the name states—a Flash chart. If you run a WordPress blog, you might know it from the <a
title="WordPress.com Stats Plugin" href="http://wordpress.org/extend/plugins/stats/">WordPress.com Stats Plugin</a>. It is open source, and there are lots of customization options. You can make almost any kind of chart you can imagine, and it&#8217;s fairly easy to setup if you just follow the <a
title="Open Flash Chart tutorial" href="http://teethgrinder.co.uk/open-flash-chart-2/tutorial.php">tutorials</a> on the Open Flash Chart website. With the new Open Flash Chart 2, you can even use it with jQuery and save your graphs as images. To see examples, and to read the tutorials, visit the <a
href="http://teethgrinder.co.uk/open-flash-chart-2/">Open Flash Chart website</a>.</p><h3>Flot</h3><div
id="attachment_710" class="wp-caption alignnone" style="width: 510px"><a
class="lightbox"  title ="An example of a Flot graph" href="http://stiern.com/site/wp-content/everything/flot.png"><img
src="http://stiern.com/site/wp-content/everything/flot.png" alt="An example of a Flot graph" title="An example of a Flot graph" width="500" height="256" class="size-full wp-image-710" /></a><p
class="wp-caption-text">An example of a Flot graph</p></div><p>Next up is Flot, a jQuery based method for implementing graphs. It is hosted at <a
href="http://code.google.com/p/flot/" title="Flot at Google Code">Google Code</a>, and it works in all the major browsers (including IE6). It comes with <a
href="http://people.iola.dk/olau/flot/examples/" title="Flot examples">a great bunch of examples</a>, but the documentation could be better. The output of Flot will be a static image.</p><h3>jQuery Visualize Plugin</h3><div
id="attachment_713" class="wp-caption alignnone" style="width: 510px"><a
class="lightbox"  title ="An example of the jQuery Visualize Plugin." href="http://stiern.com/site/wp-content/everything/jqueryvisualize.png"><img
src="http://stiern.com/site/wp-content/everything/jqueryvisualize.png" alt="An example of the jQuery Visualize Plugin." title="An example of the jQuery Visualize Plugin." width="500" height="251" class="size-full wp-image-713" /></a><p
class="wp-caption-text">An example of the jQuery Visualize Plugin.</p></div><p><a
href="http://www.filamentgroup.com/lab/jquery_visualize_plugin_accessible_charts_graphs_from_tables_html5_canvas/" title="jQuery Visualize Plugin">This jQuery plugin</a> helps you implement dynamic charts into your website without using Flash. Using the HTML5 canvas element it is possible to create great-looking charts without using even images. There&#8217;s a very thorough tutorial at the site that helps you set it all up. Also, it works in every major browser.</p><h3>jQuery SVG</h3><div
id="attachment_719" class="wp-caption alignnone" style="width: 510px"><a
class="lightbox"  title ="An example of a bar graph made using jQuery SVG" href="http://stiern.com/site/wp-content/everything/svg.png"><img
src="http://stiern.com/site/wp-content/everything/svg.png" alt="An example of a bar graph made using jQuery SVG" title="An example of a bar graph made using jQuery SVG" width="500" height="276" class="size-full wp-image-719" /></a><p
class="wp-caption-text">An example of a bar graph made using jQuery SVG</p></div><p>This is yet another jQuery plugin called <a
href="http://keith-wood.name/svg.html" title="jQuery SVG">jQuery SVG</a>. It uses SVG, a language &#8220;for describing two-dimensional graphics in XML&#8221;. SVG is supported in most browsers. Actually, it is not only a graphing plugin. You can use it to create advanced graphics on your website such as text paths. Still, for graphs it is very usable.</p><h3>Google Chart API</h3><div
id="attachment_721" class="wp-caption alignnone" style="width: 450px"><a
class="lightbox"  title ="An example of a map chart made with Google Chart API" href="http://stiern.com/site/wp-content/everything/googlechart.png"><img
src="http://stiern.com/site/wp-content/everything/googlechart.png" alt="An example of a map chart made with Google Chart API" title="An example of a map chart made with Google Chart API" width="440" height="220" class="size-full wp-image-721" /></a><p
class="wp-caption-text">An example of a map chart made with Google Chart API</p></div><p>The last method is Google&#8217;s own <a
href="http://code.google.com/apis/chart/" title="Chart API">Chart API</a>. It is very simple, and all you get is static images. But the static images are cool. You can easily create world maps with selected countries colored in your choice of color. As with almost every Google project, the documentation is awesome. You&#8217;ll get some very fine looking graphs with little effort, and everything is customizable.</p><h3>Conclusion</h3><p>Now to the big question: Which method is the best? I don&#8217;t know. I guess it&#8217;s all about taste and what you need it for. But similar for the five mentioned methods is that you have some very great, free resources that easily lets you implement graphs into your website.</p><p>Related posts:<ol><li><a
href='http://stiern.com/tutorials/adding-custom-google-maps-to-your-website' rel='bookmark' title='Permanent Link: Adding Custom Google Maps to Your Website'>Adding Custom Google Maps to Your Website</a></li><li><a
href='http://stiern.com/articles/5-ways-to-make-money-with-your-blog' rel='bookmark' title='Permanent Link: 5 Ways to Make Money with Your Blog'>5 Ways to Make Money with Your Blog</a></li><li><a
href='http://stiern.com/articles/css3-is-not-freaking-html5' rel='bookmark' title='Permanent Link: CSS3 is Not Freaking HTML5'>CSS3 is Not Freaking HTML5</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website/feed</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Adding Custom Google Maps to Your Website</title><link>http://stiern.com/tutorials/adding-custom-google-maps-to-your-website</link> <comments>http://stiern.com/tutorials/adding-custom-google-maps-to-your-website#comments</comments> <pubDate>Mon, 12 Oct 2009 22:56:47 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Articles]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Google Maps]]></category> <category><![CDATA[Web Design]]></category><guid
isPermaLink="false">http://stiern.com/?p=626</guid> <description><![CDATA[Maps are often placed on a company website to help customers find their way there. For that, Google Maps is excellent. But wouldn&#8217;t it be nice to add your company logo, parking lots, train stations, etc. to the map, to help the customer even more? It is very simple, and in this article I am [...]]]></description> <content:encoded><![CDATA[<p>Maps are often placed on a company website to help customers find their way there. For that, Google Maps is excellent. But wouldn&#8217;t it be nice to add your company logo, parking lots, train stations, etc. to the map, to help the customer even more? It is very simple, and in this article I am going to show you how.<br
/> <span
id="more-626"></span></p><p>Before we start, check out what we are going to create:</p><div
class="iframe-wrapper"> <iframe
src="http://dl.getdropbox.com/u/32709/googlemaps/index.html" frameborder="0" style="height:300px;width:500px;">Please upgrade your browser</iframe></div><p>Now, here is an overview:</p><h3>Overview</h3><ul><li><a
href="#google_api">Google Maps API</a></li><li><a
href="#coordinates">Getting the Coordinates</a></li><li><a
href="#adding_the_map">Adding the Map to Your Website</a></li><li><a
href="#adding_markers">Adding Markers</a></li><li><a
href="#custom_markers">Customizing the Markers</a></li><li><a
href="#infobox">Adding Infoboxes</a></li><li><a
href="#download">Download</a></li></ul><h3><a
id="google_api">Google Maps API</a></h3><p>The Google Maps API allows you to embed maps directly into your website. All it takes is a little JavaScript, and for beautifying&#8212;a little CSS. <a
title="Google Maps API V3" href="http://code.google.com/apis/maps/documentation/v3/">Version 3</a> of the Google Maps API has just been released, and of course, that is what we will be using here. You can read the entire documentation over at <a
title="Google Labs" href="http://code.google.com/intl/en-EN/apis/maps/documentation/v3/">Google Labs</a>, and while you are there, be sure to get an <a
title="Google Maps API key" href="http://code.google.com/intl/en-EN/apis/maps/signup.html">API key</a>.</p><h3><a
id="coordinates">Getting the Coordinates</a></h3><p>As I do not expect you to know the precise coordinates of your location, I will explain a very quick way Google has provided to do this. When you know the exact address, you can put it in an URL of this form:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">http<span style="color: #339933;">:</span><span style="color: #006600; font-style: italic;">//maps.google.com/maps/geo?q=1+Infinite Liip,+Cupertino,+CA+95014,+USA&amp;output=csv&amp;oe=utf8&amp;sensor=false&amp;key=your_google_maps_api_key</span></pre></div></div><p>When you enter this in your address bar, you will see this:</p><div
id="attachment_653" class="wp-caption alignnone" style="width: 255px"><a
class="lightbox"  title ="The coordinates of Apple's head quarter in Cupertino" href="http://stiern.com/site/wp-content/everything/apple_coordinates.png"><img
src="http://stiern.com/site/wp-content/everything/apple_coordinates.png" alt="The coordinates of Apple&#039;s head quarter in Cupertino" title="The coordinates of Apple&#039;s head quarter in Cupertino" width="245" height="28" class="size-full wp-image-653" /></a><p
class="wp-caption-text">The coordinates of Apple's head quarter in Cupertino</p></div><p>The first number is the <a
href="http://code.google.com/intl/da-DK/apis/maps/documentation/geocoding/index.html#StatusCodes" title="Status Codes">status code</a>, and 200 means that everything is okay. The second number shows how <a
href="http://code.google.com/intl/da-DK/apis/maps/documentation/geocoding/index.html#GeocodingAccuracy" title="Accuracy">accurate</a> the address is&#8212;in this case the number is 8, which is good. The last two numbers are latitudes and longitudes, which are the numbers we need.</p><h3><a
id="adding_the_map">Adding the Map to Your Website</a></h3><p>There&#8217;s no need to hesitate – let&#8217;s add that map to your website! Open your favorite HTML editor and create a standard HTML file with UTF-8 encoding. First of all, we have to create the viewport and tell our HTML file to get the JavaScript file from Google Code. Add these lines between <code>&lt;head&gt; and &lt;/head&gt;</code>:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;viewport&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;initial-scale=1.0, user-scalable=no&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://maps.google.com/maps/api/js?sensor=false&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div><p>After the URL, you will notice <code>sensor=false</code>. As we do not use any sensor, such as a GPS, to locate the location, this is set to false.</p><p>Just below what we have just inserted, write the following:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #003366; font-weight: bold;">function</span> initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> latlng <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> settings <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
			zoom<span style="color: #339933;">:</span> <span style="color: #CC0000;">15</span><span style="color: #339933;">,</span>
			center<span style="color: #339933;">:</span> latlng<span style="color: #339933;">,</span>
			mapTypeControl<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
			mapTypeControlOptions<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>style<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MapTypeControlStyle</span>.<span style="color: #660066;">DROPDOWN_MENU</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
			navigationControl<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
			navigationControlOptions<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>style<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">NavigationControlStyle</span>.<span style="color: #660066;">SMALL</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
			mapTypeId<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MapTypeId</span>.<span style="color: #660066;">ROADMAP</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Let&#8217;s split this up to ensure that we understand it fully. In line 2 we create the function <code>initialize()</code>. Inside this function we are going to define the basic settings of the map. In line 3 we create a new variable, <code>latlng</code>. <code>latlng</code> stands for latitudes and longitudes. The variable contains the coordinates we&#8217;re going to use as the center of our map.<br
/> After that, we create the variable <code>settings</code>. You have a lot of options here.</p><p><code>zoom</code> specifies&#8212;you guessed it&#8212;how far the map will be zoomed in. Play around with the number to get it to fit your location.</p><p><code>center</code> specifies our center. By writing <code>latlng</code>, we refer to the variable we created earlier, and the coordinate inside that will be used.</p><p>The last code changes the layout of the map to a bit more minimalistic look in my opinion. The controls in the upper right corner (Map, Satellite, Terrain) are changed to a drop down menu, and the scaling/navigation controls in the left size are changed to small controls.</p><p><code>mapTypeId: google.maps.MapTypeId.ROADMAP</code> defines that our map should be of the type <code>ROADMAP</code> – you can change this to either <code>SATELLITE</code>, <code>HYBRID</code> or <code>TERRAIN</code>.</p><p>Below the previous code, write this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> map <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Map</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;map_canvas&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> settings<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>This code creates the variable <code>map</code>, and defines that the map should use the settings we just created.</p><p>Write</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre class="html4strict" style="font-family:monospace;">}
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div><p> to end the function, and move to <code>&lt;body&gt;</code>, and write this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span> <span style="color: #000066;">onload</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;initialize()&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;map_canvas&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;width:800px; height:500px&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span></pre></td></tr></table></div><p>By doing this we are telling our site to execute the <code>initialize()</code> function when the site is loaded, and insert a <code>&lt;div&gt;</code> with the size we want our map to be.</p><p>Try to view your site now. Cool, isn&#8217;t it?</p><h3><a
id="adding_markers">Adding Markers</a></h3><p>Now we have to add some markers. Let&#8217;s start by creating a standard marker&#8212;we&#8217;ll customize it in a moment.</p><p>Right below</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> map <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Map</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;map_canvas&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> settings<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p> insert the following code:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">  <span style="color: #003366; font-weight: bold;">var</span> companyPos <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #003366; font-weight: bold;">var</span> companyMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
      position<span style="color: #339933;">:</span> companyPos<span style="color: #339933;">,</span>
      map<span style="color: #339933;">:</span> map<span style="color: #339933;">,</span>
      title<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Some title&quot;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Try to update your page, and watch the magic. So, what have we done?</p><p>First, we create the variable <code>companyPos</code>, where we specify the position of the marker. Next, we create the marker itself using the variable <code>companyMarker</code>. You can add more settings than these, but we will get to that later. These settings are fairly logical, so I won&#8217;t go into more depth with them.</p><h3><a
id="custom_markers">Customizing the Markers</h3><p>Even though this could be enough to show your customer how to find you, we can still make it a lot nicer. Create an image in Photoshop with the size 100&#215;50 pixels, and create something similar to this:<br
/><div
id="attachment_660" class="wp-caption alignnone" style="width: 110px"><a
class="lightbox" title="Create your logo" href="http://stiern.com/site/wp-content/everything/logo.png"><img
class="size-full wp-image-660" title="Create your logo" src="http://stiern.com/site/wp-content/everything/logo.png" alt="Create your logo" width="100" height="50" /></a><p
class="wp-caption-text">Create your logo</p></div></p><p>Next, create a shadow for your image:</p><div
id="attachment_663" class="wp-caption alignnone" style="width: 140px"><a
class="lightbox" title="The logo shadow" href="http://stiern.com/site/wp-content/everything/logo_shadow.png"><img
class="size-full wp-image-663" title="The logo shadow" src="http://stiern.com/site/wp-content/everything/logo_shadow.png" alt="The logo shadow" width="130" height="50" /></a><p
class="wp-caption-text">The logo shadow</p></div><p>To add these images as a marker instead of the standard marker, change the marker code to this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> companyLogo <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'images/logo.png'</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">100</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">50</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> companyShadow <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'images/logo_shadow.png'</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">65</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> companyPos <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> companyMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	position<span style="color: #339933;">:</span> companyPos<span style="color: #339933;">,</span>
	map<span style="color: #339933;">:</span> map<span style="color: #339933;">,</span>
	icon<span style="color: #339933;">:</span> companyLogo<span style="color: #339933;">,</span>
	shadow<span style="color: #339933;">:</span> companyShadow<span style="color: #339933;">,</span>
	title<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Company Title&quot;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>What we have done here is also really simple. The variable <code>companyImage</code> points to the name of the logo image. Then it defines the size of the image, the origin of the image, and the tip of the image (where the image will be attached to the coordinate). Next, we do the exact same thing for the shadow in the variable <code>companyShadow</code>. In our <code>companyMarker</code> variable we add <code>icon</code> and <code>shadow</code>, and that is basically it.</p><p>Now, if you refresh your site, you will se that the marker has changed into your own logo with an added shadow to it as well. To add more markers, you just follow the same method (remember to change the names of the variables).</p><p>If you have two markers very close to each other, you might want to add some z-index. The marker with the highest z-index, is the one on top:</p><div
id="attachment_674" class="wp-caption alignnone" style="width: 157px"><a
class="lightbox" title="Adding zIndex allows you to choose which marker should be on top" href="http://stiern.com/site/wp-content/everything/zindex.png"><img
class="size-full wp-image-674" title="Adding zIndex allows you to choose which marker should be on top" src="http://stiern.com/site/wp-content/everything/zindex.png" alt="Adding zIndex allows you to choose which marker should be on top" width="147" height="87" /></a><p
class="wp-caption-text">Adding zIndex allows you to choose which marker should be on top</p></div><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> companyMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	position<span style="color: #339933;">:</span> companyPos<span style="color: #339933;">,</span>
	map<span style="color: #339933;">:</span> map<span style="color: #339933;">,</span>
	icon<span style="color: #339933;">:</span> companyImage<span style="color: #339933;">,</span>
	shadow<span style="color: #339933;">:</span> companyShadow<span style="color: #339933;">,</span>
	title<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Høgenhaug&quot;</span><span style="color: #339933;">,</span>
	zIndex<span style="color: #339933;">:</span> <span style="color: #CC0000;">4</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><h3><a
id="infobox">Adding Infoboxes</a></h3><p>To add a description of your company when the visitor clicks on the logo we can add a infobox. With the Google Maps API it&#8217;s peace of cake.</p><div
id="attachment_677" class="wp-caption alignnone" style="width: 510px"><a
class="lightbox" title="Clicking your company logo will bring up an infobox" href="http://stiern.com/site/wp-content/everything/infobox.png"><img
class="size-full wp-image-677" title="Clicking your company logo will bring up an infobox" src="http://stiern.com/site/wp-content/everything/infobox.png" alt="Clicking your company logo will bring up an infobox" width="500" height="398" /></a><p
class="wp-caption-text">Clicking your company logo will bring up an infobox</p></div><p>Paste this code right after you define the <code>map</code> variable:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> contentString <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;div id=&quot;content&quot;&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;div id=&quot;siteNotice&quot;&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;h1 id=&quot;firstHeading&quot; class=&quot;firstHeading&quot;&gt;Høgenhaug&lt;/h1&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;div id=&quot;bodyContent&quot;&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/p&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> infowindow <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">InfoWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
    content<span style="color: #339933;">:</span> contentString
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>The code here is fairly straight-forward, and you are of course not limited to headlines and paragraphs – there is room for images as well. To make the infobox appear when your logo is clicked, simply add this code right before the last <code>}</code> in the <code>initialize()</code> function:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">event</span>.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span>companyMarker<span style="color: #339933;">,</span> <span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  infowindow.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>map<span style="color: #339933;">,</span>companyMarker<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>To make the infobox just a little more pretty, add some styles in your stylesheet file:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Helvetica<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">10pt</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>And there you have it. One piece of fine-looking Google Map to include on your company website, your travel blog, etc.</p><h3><a
id="download">Download</a></h3><p>If you&#8217;d like to download the sample files, you can get &#8216;em <a
href="http://dl.getdropbox.com/u/32709/googlemaps.zip" title="Download the example files">right here</a>. Be sure to leave a comment!</p><p>Related posts:<ol><li><a
href='http://stiern.com/tutorials/how-to-use-directions-with-google-maps-api-v3' rel='bookmark' title='Permanent Link: How to Use Directions with Google Maps API V3'>How to Use Directions with Google Maps API V3</a></li><li><a
href='http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website' rel='bookmark' title='Permanent Link: 5 Cool Ways to Add Graphs to Your Website'>5 Cool Ways to Add Graphs to Your Website</a></li><li><a
href='http://stiern.com/tutorials/enhancing-your-site-with-webkit' rel='bookmark' title='Permanent Link: Enhancing Your Site with WebKit'>Enhancing Your Site with WebKit</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/tutorials/adding-custom-google-maps-to-your-website/feed</wfw:commentRss> <slash:comments>165</slash:comments> </item> <item><title>8 OS X Apps With Beautiful Icons</title><link>http://stiern.com/articles/8-os-x-apps-with-beautiful-icons</link> <comments>http://stiern.com/articles/8-os-x-apps-with-beautiful-icons#comments</comments> <pubDate>Sun, 06 Sep 2009 09:14:33 +0000</pubDate> <dc:creator>Peter</dc:creator> <category><![CDATA[Articles]]></category> <category><![CDATA[Applications]]></category> <category><![CDATA[Billings]]></category> <category><![CDATA[Coda]]></category> <category><![CDATA[Espresso]]></category> <category><![CDATA[ForkLift]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[MindNode]]></category> <category><![CDATA[QuickTime]]></category> <category><![CDATA[Times]]></category><guid
isPermaLink="false">http://stiern.com/?p=553</guid> <description><![CDATA[There are a lot of cool Mac applications out there, but unfortunately only some of them has beautiful icons. I&#8217;ve tried to collect some apps that I believe have pretty icons. Just like the interface means a lot to the user experience, I actually think the icon does as well. Some software developers understands this, [...]]]></description> <content:encoded><![CDATA[<p>There are a lot of cool Mac applications out there, but unfortunately only some of them has beautiful icons. I&#8217;ve tried to collect some apps that I believe have pretty icons. Just like the interface means a lot to the user experience, I actually think the icon does as well. Some software developers understands this, and some unfortunately don&#8217;t.</p><p><span
id="more-553"></span></p><p>I&#8217;m sure there&#8217;s many other apps with cool icons out there, and if you like one in particular, please let me know in the comments.</p><h3>Espresso ($78)</h3><p><em> </em></p><p><em> </em></p><p><em> </em></p><div
id="attachment_554" class="wp-caption alignnone" style="width: 310px"><a
class="lightbox" title="Espresso" href="http://macrabbit.com/espresso/"><img
class="size-medium wp-image-554  " title="Espresso" src="http://stiern.com/site/wp-content/everything/Espresso-300x300.png" alt="Espresso" width="300" height="300" /></a></dt></dl></div><p>Now, this icon really makes me wanna lick the screen&#8230; The steam from the cup is so delicious! Espresso is MacRabbit&#8217;s web development software, and it&#8217;s not only the icon that&#8217;s nice.</p><h3>Bodega (free)</h3><div
class="mceTemp"><dl
id="attachment_557" class="wp-caption alignnone" style="width: 310px;"><dt
class="wp-caption-dt"><a
class="lightbox" title="Bodega" href="http://appbodega.com/"><img
class="size-medium wp-image-557 " title="Bodega" src="http://stiern.com/site/wp-content/everything/Bodega-300x300.png" alt="" width="300" height="300" /></a></dt></dl></div><p>Bodega is created by IDFusion Software and Centrix.ca. It is the iPhone App Store for Mac apps. It comes with a stunning interface, and it seems to be growing incredibly fast. And, oh yeah–the icon is great!</p><h3>ForkLift ($19.95)</h3><div
class="mceTemp"><dl
id="attachment_561" class="wp-caption alignnone" style="width: 310px;"><dt
class="wp-caption-dt"><a
class="lightbox" title="ForkLift" href="http://www.binarynights.com/forklift/"><img
class="size-medium wp-image-561" title="ForkLift" src="http://stiern.com/site/wp-content/everything/ForkLift-300x300.png" alt=" " width="300" height="300" /></a><p
class="wp-caption-text"></p></div><p>Are you as tired of Cyberduck as I am? Then you should try ForkLift. It is an advanced FTP client that is fast, and has all the features you&#8217;ll ever need from a FTP client. The interface is beautiful and so is the icon.</p><h3>MindNode (free)</h3><div
id="attachment_563" class="wp-caption alignnone" style="width: 310px"><a
class="lightbox" title="Mindnode" href="http://www.mindnode.com/"><img
class="size-medium wp-image-563" title="Mindnode" src="http://stiern.com/site/wp-content/everything/Mindnode-300x300.png" alt="" width="300" height="300" /></a><p
class="wp-caption-text"></p></div><p>MindNode is a really cool piece of software. It helps you organize and structure your ideas in really neat mind maps. The icon is nothing I&#8217;ve seen before–I love the way the plant comes out of the frame.</p><h3>QuickTime Player X (free)</h3><div
id="attachment_564" class="wp-caption alignnone" style="width: 310px"><a
class="lightbox" title="QuickTimePlayerX" href="http://www.apple.com/macosx/what-is-macosx/quicktime.html"><img
class="size-medium wp-image-564" title="QuickTimePlayerX" src="http://stiern.com/site/wp-content/everything/QuickTimePlayerX-300x300.png" alt="" width="300" height="300" /></a><p
class="wp-caption-text"></p></div><p>With Snow Leopard Apple released QuickTime Player X with an entirely new interface and some cool new features (and unfortunately without some of the very useful features from QuickTime Player 7). Nevertheless, the icon got a complete redesign, and I don&#8217;t think I&#8217;m the only one who thinks they got pretty well away with it.</p><h3>Times ($30)</h3><div
id="attachment_566" class="wp-caption alignnone" style="width: 310px"><a
class="lightbox" title="Times" href="http://www.acrylicapps.com/times/"><img
class="size-medium wp-image-566" title="Times" src="http://stiern.com/site/wp-content/everything/Times-300x300.png" alt="" width="300" height="300" /></a><p
class="wp-caption-text"></p></div><p>Acrylic has tried to reinvent the RSS reader with their app Times, and I think they succeeded, although for me $30 is a bit too much to spend on a RSS reader. However, the app does feature a beautiful icon.</p><h3>Coda ($99)</h3><div
id="attachment_569" class="wp-caption alignnone" style="width: 310px"><a
class="lightbox" title="Coda" href="http://panic.com/coda/"><img
class="size-medium wp-image-569" title="Coda" src="http://stiern.com/site/wp-content/everything/Coda-300x300.png" alt=" " width="300" height="300" /></a><p
class="wp-caption-text"></p></div><p>Coda is Panic&#8217;s web development client, and has for a long time been the by far most popular web development client as well. Now that Espresso&#8217;s out, let&#8217;s see what happens. Even though I actually never really understood why the icon is a leaf, I still think it&#8217;s a very beautiful icon.</p><h3>Billings ($56)</h3><div
id="attachment_570" class="wp-caption alignnone" style="width: 310px"><a
class="lightbox" title="Billings" href="http://www.billingsapp.com/"><img
class="size-medium wp-image-570" title="Billings" src="http://stiern.com/site/wp-content/everything/Billings-300x300.png" alt=" " width="300" height="300" /></a><p
class="wp-caption-text"></p></div><p>Billings is really popular these days. It is a feature packed invoicing app with time billing and it&#8217;s very easy to use.</p><p>Related posts:<ol><li><a
href='http://stiern.com/downloads/250-sweet-icons-for-your-external-media' rel='bookmark' title='Permanent Link: 250+ Sweet Icons for Your External Media'>250+ Sweet Icons for Your External Media</a></li><li><a
href='http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website' rel='bookmark' title='Permanent Link: 5 Cool Ways to Add Graphs to Your Website'>5 Cool Ways to Add Graphs to Your Website</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://stiern.com/articles/8-os-x-apps-with-beautiful-icons/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss> <br
/> <b>Fatal error</b>:  Cannot redeclare class JSMin in <b>/home/www/stiern.com/site/wp-content/plugins/w3-total-cache/lib/Minify/JSMin.php</b> on line <b>53</b><br
/>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 88/225 queries in 0.708 seconds using disk

Served from: stiern.com @ 2010-09-07 16:58:36 -->