<?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>Komodo Media &#187; Geekery</title>
	<atom:link href="http://www.komodomedia.com/categories/geekery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.komodomedia.com</link>
	<description>blog, webdesign, illustration &#38; newsk00l javascript</description>
	<lastBuildDate>Wed, 18 Jan 2012 14:43:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Web Designer&#8217;s Daily Digest</title>
		<link>http://www.komodomedia.com/blog/2008/11/web-designers-daily-digest/</link>
		<comments>http://www.komodomedia.com/blog/2008/11/web-designers-daily-digest/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 03:39:03 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Tumblelog]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[g-speak]]></category>
		<category><![CDATA[google video]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[snook]]></category>

		<guid isPermaLink="false">http://www.komodomedia.com/?p=505</guid>
		<description><![CDATA[So, I&#8217;m gonna keep up with showing all y&#8217;all what I find. I can&#8217;t afford to do it daily, but after I find enough stuff on the interweb, I&#8217;ll keep sharing it. 
I know this much. Lists like this really help me. I&#8217;m typically an out-of-the-loop sort of fella, so by the time I find [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m gonna keep up with showing all y&#8217;all what I find. I can&#8217;t afford to do it daily, but after I find enough stuff on the interweb, I&#8217;ll keep sharing it. </p>
<p>I know this much. Lists like this really help me. I&#8217;m typically an out-of-the-loop sort of fella, so by the time I find cool stuff, it&#8217;s years later than the crowd. So, maybe, just maybe this will help you stay in the loop:</p>
<ul>
<li><strong><a href="http://louiemantia.com/blog/?p=9">The Importance of Icon Metaphors</a></strong>
<p>I&#8217;m already a huge fan of Louie Mantia&#8217;s work, but I found this blog article particularly interesting. Learn how it&#8217;s not only important for your icons to look good, but speak in a language your user knows.</p>
</li>
<li><strong><a href="http://us.lge.com/bluray/?BAC-BR-B&#038;pl=BR1">LG Streaming Blu-ray Player</a></strong> Ohhh my awesome!
<p>Blu-ray with no discs? Wha!?!? Unlimited Blu-ray quality movies from Netflix? Wha?!?! Hello, dream-machine.</p>
</li>
<li><strong>URL Shortening <a href="http://andrew.hedges.name/widgets/">Widget</a></strong> &amp; <strong><a href="http://bit.ly/">Website</a></strong> For all you social-medians
<p>URL-shortening for all you Twitter and micro-blogging addicts.</p>
</li>
<li><strong><a href="http://haineault.com/media/jquery/ui-timepickr/page/">jQuery Time Pickr</a></strong>
<p>An incredibly intuitive and clever form time picker jQuery plugin.</p>
</li>
<li><strong><a href="http://ejohn.org/blog/css-animations-and-javascript/">CSS3 Transitions/Animations</a></strong> by John Resig
<p>A word on CSS3 Transitions/Animations from the JavaScript genius, John Resig.</p>
</li>
<li><strong><a href="http://www.wallswaps.com">Wall Swaps</a></strong> Clever business schwag
<p>Check this site out, not only for the cool marketing schwag, but a really clever implementation of a corkboard.</p>
</li>
<li><strong><a href="http://csszengarden.com/?cssfile=/213/213.css&#038;page=0">CSS Zen Garden &#8211; Under the Sea</a></strong> Hott CSS Zen Garden submission
<p>This has to be one of the most beautiful CSS Zen Garden submissions I&#8217;ve ever seen.</p>
</li>
<li><strong><a href="http://csszengarden.com/?cssfile=/212/212.css&#038;page=0">Make em Proud</a></strong> Runner-up CSS Zen Garden submission
<p>If under the sea is one of the most hot CSS Zen Garden submissions, this is the runner-up</p>
</li>
<li><strong><a href="https://developer.mozilla.org/en/CSS/@-moz-document">@-moz-document</a></strong>
<p>Style different pages on your domain with <code class="inline">@-moz-document</code>. CSS is gonna get sweet if this works cross-browswer.</p>
</li>
<li><strong><a href="http://fancy.klade.lv/">FancyBox</a></strong> OSX Content Zooming
<p>OSX-like zooming for your website for not only images, but iFrame and video content too!</p>
</li>
<li><strong><a href="http://www.techcrunch.com/2008/11/11/google-adds-voice-and-video-chat-to-gmail/">Google Voice/Video Chat</a></strong>
<p>Google adds what we&#8217;ve all been waiting for. Just click on the new “Video &amp; more” menu in a Gmail chat window and select “Start video chat” or “Start voice chat.”</p>
</li>
<li><strong><a href="http://www.pixelmator.com/ ">Pixelmator</a></strong> Flippin&#8217; beautiful and vibrant!
<p>I noticed this site a while back and ran across it a few days ago. What a beautiful site, full of vibrance and killer icons.</p>
</li>
<li><strong><a href="http://checkoutapp.com/">Checkout App</a></strong> Clean site
<p>Another site I&#8217;ve ran across many times. This site also has some great icons and is extremely clean and smooth. Obviously it&#8217;s an OSX application. Gorgeous.</p>
</li>
<li><strong><a href="http://www.taptaptap.com">TapTapTap</a></strong> Innovative iPhone design
<p>I <strong>love</strong> this site. There&#8217;s something about a concept taken to it fullness &#8211; in this case, a sushi table. From the chopsticks and tuna to the wasabi and soy sauce to the cutting board, this site rocks. One page, simple, with sweet javascript transitions. Add to that the fact that they are making some of the sweetest iPhone apps out there. In the words of <a href="http://twitter.com/ridlo">@ridlo</a>, this is the <strong>swisstastic</strong> hotness.</p>
</li>
<li><strong><a href="http://nettuts.com/articles/interviews/an-interview-with-jonathan-snook/">Interview with Jonathan Snook </a></strong> The Snook
<p>Cool interview with the man, Snook himself. Learn about how the masta does it.</p>
</li>
<li><strong><a href="http://oblong.com">G-Speak Operating System </a></strong> Minority Report is real!
<p>Thought that OS that Tom Cruise used in <a href="http://www.imdb.com/title/tt0181689/">Minority Report</a> was impossible and amazing? Check it out for realz.</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2008/11/web-designers-daily-digest/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Eye-catching Illustrations</title>
		<link>http://www.komodomedia.com/blog/2008/09/eye-catching-illustrations/</link>
		<comments>http://www.komodomedia.com/blog/2008/09/eye-catching-illustrations/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 22:31:29 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Illustration]]></category>
		<category><![CDATA[Logo]]></category>

		<guid isPermaLink="false">http://www.komodomedia.com/?p=305</guid>
		<description><![CDATA[<img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/09/cappucino.png" alt="Cappuccino Machine" title="Cappuccino Machine" width="460" height="280" class="aligncenter" />
I'm a sucker for a sweet illustration, especially a vector illustration if you can't tell. Every once in awhile I run across a sweet one and it really inspires me to get more detail oriented. I'm a details guy - that's how I roll when it comes to design at least. Here's a few of them that I've seen on the web lately...
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a sucker for a sweet illustration, especially a vector illustration if you can&#8217;t tell. Every once in awhile I run across a sweet one and it really inspires me to get more detail oriented. I&#8217;m a details guy &#8211; that&#8217;s how I roll when it comes to design at least. Here&#8217;s a few of them that I&#8217;ve seen on the web lately:</p>
<h3>Nerd Glasses</h3>
<p><a href="http://www.macinstruct.com/node/23"><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/09/newbie_nerd.png" alt="Nerd Glasses" title="Nerd Glasses" width="460" height="180" class="aligncenter" /></a><br />
<em>I <3 Nerds. I can sense a nerd like Gandalf sensing the ring...and "Nerdification" - I'm adding that to my list of words to use once every 2 minutes.</em></p>
<h3>Cappuccino</h3>
<p><a href="http://cappuccino.org/"><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/09/cappucino.png" alt="Cappuccino Machine" title="Cappuccino Machine" width="460" height="280" class="aligncenter" /></a><br />
<em>Hmmm, nerds, coffee&#8230;is there more to life? I love the scripted &#8220;Cappucino&#8221;.</em></p>
<h3>MailChimp</h3>
<p><a href="http://www.hicksdesign.co.uk/journal/recent-work-mailchimp"><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/09/mail_chimp.png" alt="MailChimp Illustration" title="MailChimp Illustration" width="460" height="280" class="aligncenter" /></a><br />
<em>Jon Hicks: He rocketh vectors hard. Mental Note: If Jon Hicks designs one more monkey, I&#8217;m recommending him for leading actor in the new &#8220;Gorillas in the mist&#8221;</em></p>
<h3>Espresso</h3>
<p><a href="http://macrabbit.com/espresso/"><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/09/espresso.png" alt="Cappuccino Machine" title="Cappuccino Machine" width="460" height="280" class="aligncenter" /></a><br />
<em>More coffee? Maybe I need to get on a program. I almost want to drink the foam. Wait &#8211; there it is. yes. I DO want to drink the foam.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2008/09/eye-catching-illustrations/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Mac vs PC? Be Honest</title>
		<link>http://www.komodomedia.com/blog/2008/05/mac-vs-pc-an-honest-evaluation/</link>
		<comments>http://www.komodomedia.com/blog/2008/05/mac-vs-pc-an-honest-evaluation/#comments</comments>
		<pubDate>Tue, 13 May 2008 05:41:43 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[pc]]></category>

		<guid isPermaLink="false">http://www.komodomedia.com/?p=234</guid>
		<description><![CDATA[<img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/05/apple_imac.jpg" alt="" title="apple_imac" width="450" height="205" class="alignnone size-full wp-image-235" />
There's a ton of <a href="http://www.apple.com/getamac/">biased bullcrap</a> out there when it comes to Apple vs. PC arguments. Let's be honest and see what really matters.]]></description>
			<content:encoded><![CDATA[<p><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/05/apple_imac.jpg" alt="" title="apple_imac" width="450" height="205" class="alignnone size-full wp-image-235" /><br />
There&#8217;s a ton of <a href="http://www.apple.com/getamac/">biased bullcrap</a> out there when it comes to Apple vs. PC arguments.  While the <a href="http://www.apple.com/getamac/ads/">current Apple ads </a>may be funny to some and somewhat truthful to others, I can&#8217;t buy that PC&#8217;s just suck, even though I use a Mac in almost every capacity.  </p>
<p>For years I used a PC to accomplish tons of tasks from CD and DVD burning to thesis writings to programming a 3D Landscape generator.  Currently, I use <a href="http://www.apple.com/macpro/">Mac Pro</a>  by day for web design/development and a <a href="http://www.apple.com/macbookpro/">Macbook Pro</a> by night for web design, illustration, coding and blogging. In my previous job, I used a PC for design and coding and I managed <a href="http://www.freebsd.org/">FreeBSD (which I loved)</a> servers for our <a href="http://www.carroll.edu/">local College</a>. </p>
<p>I&#8217;ve seen many aspects of the computing world and I hate the biased reviews from all ends. It seems to me that once someone becomes a fanatic, follower, or &#8220;brand loyal&#8221;, all balance of opinion is lost.  They seem to defend their turf no matter what the cost.  What I want are some realists, some people that are willing to voice a balanced opinion on a feature of any hardware setup or OS feature that are truly innovative, truly helpful, no matter what brand name is slapped on it&#8217;s case.  I&#8217;m looking for a few good men and women to tell me what you love about a Mac, PC or both. </p>
<p>Please comment below and let me know what you love about your favorite computer and why.  Possibly tell me what that feature, say 2-finger scroll, etc. is worth to you (how much money would you pay extra to have that feature). Also, let me know your favorites, say Dell XPS, MacBook Pro 17 inch, Windows XP on a MacBook, whatever. Be specific.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2008/05/mac-vs-pc-an-honest-evaluation/feed/</wfw:commentRss>
		<slash:comments>70</slash:comments>
		</item>
		<item>
		<title>CSS PNG Image Fix for IE</title>
		<link>http://www.komodomedia.com/blog/2007/11/css-png-image-fix-for-ie/</link>
		<comments>http://www.komodomedia.com/blog/2007/11/css-png-image-fix-for-ie/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 06:49:16 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Nerdlab]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/11/05/css-png-image-fix-for-ie/</guid>
		<description><![CDATA[We&#8217;ve all seen them, the hoards of PNG fixes for IE6.  That is because IE6 is a bag of smashed buttholes.  I&#8217;m serious. It is.  That is why we (web designers of the new world) have to continually come up with creative ways to solve the PNG issue. In case you are [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve all seen them, the <a href="http://www.twinhelix.com/css/iepngfix/demo/">hoards</a> of <a href="http://www.bioneural.net/2006/08/09/valid-fix-for-png-transparency-on-a-single-image/">PNG fixes for IE6</a>.  That is because IE6 is a bag of smashed buttholes.  I&#8217;m serious. It is.  That is why we (web designers of the new world) have to continually come up with creative ways to solve the PNG issue. In case you are lost, just realize that in IE6, PNG images with transparency do not show their transparent regions, so you have to use some crazy IE6 proprietary filters. Moving on.</p>
<p>Lately, in projects I have been using a modified CSS snippet I found out on the interwebs to <a href="http://www.urbandictionary.com/define.php?term=automagic">automagically</a> replace PNG images with their <a href="http://msdn2.microsoft.com/en-us/library/ms532969.aspx">AlphaImageLoader</a> equivalent in IE6.  Check this out here and I&#8217;ll explain and give an example:</p>
<h2>The CSS/Code</h2>
<p><code class="css">* html img,<br />
* html .png{<br />
    position:relative;<br />
    behavior: expression((this.runtimeStyle.behavior="none")&amp;&amp;(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" &#038;&#038; this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",<br />
        this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",<br />
        this.src = "transparent.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),<br />
        this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",<br />
        this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)<br />
    );<br />
}</code><em><strong>Update:</strong> This code changed to remove the behavior at runtime based on <a href="http://komodomedia.com/blog/index.php/2007/11/05/css-png-image-fix-for-ie/#comment-125714">@Thierry&#8217;s suggestion</a>.</em></p>
<p>For you purists out there, this is <strong>extremely</strong> <a href="http://www.urbandictionary.com/define.php?term=hax0r">hacky</a>, so you may want to <a href="http://www.simplebits.com/">skip this whole entry entirely</a>. </p>
<p><strong>Update: </strong>: CSS Conditional comments for IE are a perfect way of hiding this hacky code from the good browsers. Here is a way to bring in the CSS for only IE 6 and below:</p>
<p><code>&lt;!--[if lte IE 6]&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="png_fix.css" /&gt;<br />
&lt;![endif]--&gt;</code></p>
<p>Ok, there won&#8217;t be much in the way of explanation here, but let me explain what this little bad-boy does. </p>
<h2>The Selectors</h2>
<p><code>* html img,<br />
* html .png</code></p>
<p>The selector portion of the CSS rule targets which XHTML tags/classes this rule will be applied to.  At first glance, it looks like all <code class="inline">img</code> tags as well as all tags with a class of <code class="inline">"png"</code>.  You&#8217;ll notice the  <code class="inline">(star) html</code>  in front of both of these. Wait, there is no &#8220;anytag&#8221; preceding the <code class="inline">html</code> tag, so this won&#8217;t get applied! True.  For all non-crappy (that is a pro term by the way) browsers, this rule won&#8217;t get applied.  However, since IE6 is a pile, it thinks that there is a tag before the <code class="inline">html</code> tag, so it will apply this rule.  Great! Now IE6 is the only browser that will use this rule.</p>
<h2>The Rest of the Code Jargon</h2>
<p>Honestly, the rest you really don&#8217;t want to mess with much, but it suffices to say that this expression does a few things:</p>
<ul>
<li><strong>If the tag is an <code class="inline">IMG</code> tag</strong>, the expression checks to see if it is a .PNG image.  If so, it applies a CSS <a href="http://msdn2.microsoft.com/en-us/library/ms532969.aspx">AlphaImageLoader</a> filter to the IMG tag to load the PNG file as a background image.  It then points the src attribute of the image to a <a href="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2007/11/transparent.gif">transparent gif</a> so that the image isn&#8217;t overlaying it&#8217;s own background. Voila! <em>Note:  This only works well for images not resized by the browser. Also, you&#8217;ll need a <a href="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2007/11/transparent.gif">transparent gif 1px by 1px image</a> on your server.</em></li>
<li><strong>If the tag is not an <code class="inline">IMG</code> tag</strong>, then this expression takes the CSS given background image and shoves it into a background <a href="http://msdn2.microsoft.com/en-us/library/ms532969.aspx">AlphaImageLoader</a> filter.  It then removes the real CSS <code class="inline">background-image</code> rule so that the background and the filter are not conflicting.</li>
</ul>
<p>Pretty cool!  Please note that this CSS expression is pretty generic.  If you have some crazy CSS-ing to do, you might want to stick with using your own methods or apply the <a href="http://msdn2.microsoft.com/en-us/library/ms532969.aspx">AlphaImageLoader</a> filter manually.</p>
<p>Also, if you are a standards-compliant junkie and this brushes you wrong, remember that this is intended to help with the crud of browsers.  Sometimes we have to break our own rules to do the job.  </p>
<h2>A Demo!</h2>
<p>Let&#8217;s see a demo!  See the goodness below:</p>
<h3>My Image Tag:</h3>
<div style="background:url(http://komodomedia.com/wp-content/uploads/2007/11/checkerboard.gif); padding: 20px;">
<link rel="stylesheet" href="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2007/11/png_fix.css" type="text/css" media="all" />
<img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2007/11/twitterific.png" width=128" height="128" alt="Twitterific Rules"/>
</div>
<h3>My Generic Tag</h3>
<div style="background:url(http://komodomedia.com/wp-content/uploads/2007/11/checkerboard.gif); padding: 20px;">
<div id="generic_tag_png" class="png"> <strong>Wish I could Play.</strong> </div>
</div>
<h3>My Link Tag</h3>
<p><em><strong>Update:</strong> Links will need an additional rule of <code class="inline">cursor: pointer;</code> to restore the cursor. I&#8217;ll have to change that in the script to do that automatically</em></p>
<div style="background:url(http://komodomedia.com/wp-content/uploads/2007/11/checkerboard.gif); padding: 20px;">
<a id="link_tag_png" class="png" href="http://www.apple.com/retail/fifthavenue/week/20071104.html"> <strong>This is my link. </strong> </a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/11/css-png-image-fix-for-ie/feed/</wfw:commentRss>
		<slash:comments>181</slash:comments>
		</item>
		<item>
		<title>I&#8217;m a Tease</title>
		<link>http://www.komodomedia.com/blog/2007/08/im-a-tease/</link>
		<comments>http://www.komodomedia.com/blog/2007/08/im-a-tease/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 15:02:03 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/08/22/im-a-tease/</guid>
		<description><![CDATA[
Besides a slew (actually only about 3) of blog entries I have planned for you&#8230;here is a teaser of what is to come.
]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;"><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2007/08/kmv4_teaser.png" alt="Teaser..."  /></div>
<p>Besides a slew (actually only about 3) of blog entries I have planned for you&#8230;here is a teaser of what is to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/08/im-a-tease/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Standards-compliant New Window Links</title>
		<link>http://www.komodomedia.com/blog/2007/01/prototype-standards-compliance-new-window-links/</link>
		<comments>http://www.komodomedia.com/blog/2007/01/prototype-standards-compliance-new-window-links/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 16:02:46 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/01/31/prototype-standards-compliance-new-window-links/</guid>
		<description><![CDATA[I ran across this article at SitePoint, which is very good.  Basically, the concept is that while the target attribute is compliant in an XHTML Transitional world, it is exactly that.  Transitional.  Transitional doctypes allow us to go from deprecated doctypes to something more standard, such as XHTML Strict.
So, we either code [...]]]></description>
			<content:encoded><![CDATA[<p>I ran across <a href="http://www.sitepoint.com/article/standards-compliant-world/">this article</a> at SitePoint, which is very good.  Basically, the concept is that while the target attribute is compliant in an <a href="http://brainstormsandraves.com/archives/2003/10/21/xhtml/">XHTML Transitional</a> world, it is exactly that.  Transitional.  Transitional doctypes allow us to go from deprecated doctypes to something more standard, such as <a href="http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict">XHTML Strict</a>.</p>
<p>So, we either code according to the transitional spec now and change later or code in strict now and find a solution.  I prefer the latter.  So, at SitePoint they discussed and created a solution. Great.  Basically, the <em>rel</em> attribute is the new standard and SitePoint created a JavaScript solution to make all links with the attribute of rel set to &#8220;external&#8221; open in an external or new window.</p>
<p>This short blurb only addresses modifying and using the <a href="http://www.prototypejs.org/">prototype JavaScript foundation</a> to rewrite the code.  I rewrote the code and Voila!  Here she be:</p>
<h3>The Code</h3>
<p><code>if (typeof $$ != "function" ) return;<br />
$$('a[rel=external]').each(<br />
	function( lnk ){<br />
		lnk.setAttribute( "target", "_blank" );<br />
	}<br />
);</code><br />
Feel free to rip me off and take this code! P.S. I&#8217;m using Prototype <strong>1.5.0_rc0</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/01/prototype-standards-compliance-new-window-links/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>CSS Star Rating Redux</title>
		<link>http://www.komodomedia.com/blog/2007/01/css-star-rating-redux/</link>
		<comments>http://www.komodomedia.com/blog/2007/01/css-star-rating-redux/#comments</comments>
		<pubDate>Sun, 21 Jan 2007 01:31:33 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Nerdlab]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/01/20/css-star-rating-redux/</guid>
		<description><![CDATA[Quite awhile back, I wrote and article entitled <a href="http://komodomedia.com/blog/index.php/2005/08/24/creating-a-star-rater-using-css/">Creating a Star Rater using CSS</a>. In fact, if the CSS for this article is a little confusing, you may want to visit my previous articles to get yourself acquainted.  I wrote it to my best ability and I shared what I could with the growing CSS-loving community.  It was pretty flippin' cool if you ask me, but it needed more.  So, out of that need was born <a href="http://komodomedia.com/blog/index.php/2006/01/09/css-star-rating-part-deux/">CSS Star Rating Part Deux</a>, a vast improvement to the first, but by no means perfection. Out of the many comments I received about the most recent version, there were still some lacking areas.

By now, people's grasp as a whole has grown quite a bit I feel and I think that this time does not warrant a full-fledged tutorial (also, my lack of time doesn't help either).  However, there are some significant issues with my most current Star Rating tutorial and I have always wanted to take another go at it.]]></description>
			<content:encoded><![CDATA[<link href="http://d2dnrmagaqciul.cloudfront.net/samples/star_rating_final/star_rating_final.css" media="all" type="text/css" rel="stylesheet" />
<div class="post_info" style="width:130px;">
<ul>
<li><a  class="preview" href="http://d2dnrmagaqciul.cloudfront.net/samples/star_rating_final/index.htm">Test it</a></li>
<li><a class="download" href="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2007/01/star_rating_final.zip">Download it</a></li>
<li><strong>Tested in:</strong><br />
<small>Firefox 2 PC/Mac<br />
Netscape 7 PC/Mac<br />
IE 5.5<br />
IE 6.0<br />
IE 7<br />
Safari 2<br />
OmniWeb 5<br />
Opera 9 PC/Mac</small></li>
</ul>
</div>
<p>First, a quick preview for the over-caffeinated and impatient (try clicking on a rating):</p>
<div style="float: left;width:305px;">
<h2>Classic Rater:</h2>
<p></p>
<ul class="star-rating-final">
<li style="width: 60%" class="current-rating">Currently 3/5 Stars.</li>
<li><a class="one-star" title="1 star out of 5" href="#">1</a></li>
<li><a class="two-stars" title="2 stars out of 5" href="#">2</a></li>
<li><a class="three-stars" title="3 stars out of 5" href="#">3</a></li>
<li><a class="four-stars" title="4 stars out of 5" href="#">4</a></li>
<li><a class="five-stars" title="5 stars out of 5" href="#">5</a></li>
</ul>
<h2>Inline Rater:</h2>
<p>This <span class="inline-rating-final">
<ul class="star-rating-final">
<li class="current-rating" style="width:30%">Currently 1.5/5 Stars.</li>
<li><a class="one-star" title="1 star out of 5" href="#">1</a></li>
<li><a class="two-stars" title="2 stars out of 5" href="#">2</a></li>
<li><a class="three-stars" title="3 stars out of 5" href="#">3</a></li>
<li><a class="four-stars" title="4 stars out of 5" href="#">4</a></li>
<li><a class="five-stars" title="5 stars out of 5" href="#">5</a></li>
</ul>
<p></span>and<span class="inline-rating-final">
<ul class="star-rating-final">
<li class="current-rating" style="width:80%">Currently 4/5 Stars.</li>
<li><a class="one-star" title="1 star out of 5" href="#">1</a></li>
<li><a class="two-stars" title="2 stars out of 5" href="#">2</a></li>
<li><a class="three-stars" title="3 stars out of 5" href="#">3</a></li>
<li><a class="four-stars" title="4 stars out of 5" href="#">4</a></li>
<li><a class="five-stars" title="5 stars out of 5" href="#">5</a></li>
</ul>
<p></span><br />
<h3>Small Rater</h3>
<p></p>
<ul class="star-rating-final small-star-final">
<li style="width: 50%" class="current-rating">Currently 2.5/5 Stars.</li>
<li><a class="one-star" title="1 star out of 5" href="#">1</a></li>
<li><a class="two-stars" title="2 stars out of 5" href="#">2</a></li>
<li><a class="three-stars" title="3 stars out of 5" href="#">3</a></li>
<li><a class="four-stars" title="4 stars out of 5" href="#">4</a></li>
<li><a class="five-stars" title="5 stars out of 5" href="#">5</a></li>
</ul>
</div>
<p><br style="clear: both" /><br />
Quite awhile back, I wrote and article entitled <a href="http://komodomedia.com/blog/index.php/2005/08/24/creating-a-star-rater-using-css/">Creating a Star Rater using CSS</a>. In fact, if the CSS for this article is a little confusing, you may want to visit my previous articles to get yourself acquainted.  I wrote it to my best ability and I shared what I could with the growing CSS-loving community.  It was pretty flippin&#8217; cool if you ask me, but it needed more.  So, out of that need was born <a href="http://komodomedia.com/blog/index.php/2006/01/09/css-star-rating-part-deux/">CSS Star Rating Part Deux</a>, a vast improvement to the first, but by no means perfection. Out of the many comments I received about the most recent version, there were still some lacking areas.</p>
<p>By now, people&#8217;s grasp as a whole has grown quite a bit I feel and I think that this time does not warrant a full-fledged tutorial (also, my lack of time doesn&#8217;t help either).  However, there are some significant issues with my most current Star Rating tutorial and I have always wanted to take another go at it.</p>
<p>In my thoughts, here is what the CSS Star Rating, part Deux is missing:</p>
<ul>
<li><strong>Cross-browser support: </strong> I received multiple emails and comments stating that it was pretty quirky in browsers like IE6 and even Firefox.</li>
<li><strong>Ajax &#038; Back end code :</strong> This is a need, but I&#8217;m not gonna tackle it. Plenty of people have contributed to the creation of the ajax or back end code, including <a href="http://slim.climaxdesigns.com/">slim</a>, <a href="http://h1.ripway.com/LHS_Webmaster/Storage/AJAX_RATE.zip">jon</a>, and an especially nice presentation and project over at <a href="http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/">masuga</a>.  Needless to say, these guys do a great job and I don&#8217;t need to replicate their work.</li>
<li><strong>Tables and other wierdness:</strong> I had tons of report that the rater didn&#8217;t work in table cells and only God knows how many other situations.</li>
<li><strong>Inline Ratings:</strong> People also wanted to place their ratings inline.  The current rater didn&#8217;t allow for that at all.  Also, my feeble attempts to coerce it to work were of no avail.</li>
<li><strong>Uber mini Ratings:</strong> People also wanted little mini raters.  Well, guess what.  Problems arose with those too :(</li>
<li><strong>Pseudo-State:</strong> I say pseudo, because using only CSS, I cannot create a rating system that will hold when you click it and when you refresh it.   Back end scripts an databases are needed for that.  Basically, it still would be nice when you click the 3rd star, for it to stay there for a little bit.</li>
<li><strong>Percentage-based widths:</strong>  This wasn&#8217;t really a request, but It seemed if a person wanted to make a different sized rater, there was a lot of repeating of 20px. 40px, 60px&#8230;.etc.  There just was a lot of exact dimension redundancy.</li>
</ul>
<p>Well, thats the list!  No wonder I wasn&#8217;t really happy with the thing.  I remember when I first created it, it was my baby.  Now, I hate the previous version. Whatever.  Ok, enough rant from me.  Lets get you guys up into the nerdy stuff.</p>
<h2>Ok, so for a refresher, here is the XHTML:</h2>
<h3>Basic Rater XHTML:</h3>
<p><code class="html">&lt;ul class="star-rating"&gt;<br />
	&lt;li class="current-rating" style="width:60%;"&gt;Currently 3/5 Stars.&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="1 star out of 5" class="one-star"&gt;1&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="2 stars out of 5" class="two-stars"&gt;2&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="3 stars out of 5" class="three-stars"&gt;3&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="4 stars out of 5" class="four-stars"&gt;4&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="5 stars out of 5" class="five-stars"&gt;5&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</code></p>
<h3>Inline Rater XHTML:</h3>
<p><code>&lt;span class="inline-rating"&gt;<br />
&lt;ul class="star-rating small-star"&gt;<br />
	&lt;li class="current-rating" style="width:30%;"&gt;Currently 1.5/5 Stars.&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="1 star out of 5" class="one-star"&gt;1&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="2 stars out of 5" class="two-stars"&gt;2&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="3 stars out of 5" class="three-stars"&gt;3&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="4 stars out of 5" class="four-stars"&gt;4&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="5 stars out of 5" class="five-stars"&gt;5&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;&lt;/span&gt;</code></p>
<h3>Small Rater XHTML:</h3>
<p><code>&lt;ul class="star-rating small-star"&gt;<br />
	&lt;li class="current-rating" style="width:50%"&gt;Currently 2.5/5 Stars.&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="1 star out of 5" class="one-star"&gt;1&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="2 stars out of 5" class="two-stars"&gt;2&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="3 stars out of 5" class="three-stars"&gt;3&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="4 stars out of 5" class="four-stars"&gt;4&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href="#" title="5 stars out of 5" class="five-stars"&gt;5&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</code></p>
<p>No big shockers with the code.  Basically new to the scene here is the fact that the inline rater is wrapped with a span and the small rater has an additional &#8220;small-star&#8221; class added.  I&#8217;m sure you can imagine that you can call &#8220;small-star&#8221; any class you would like and adapt the CSS to your liking for the right size and image you would like.</p>
<h2>Next, in true throw-it-in-your-face tutorial style, here is the CSS:</h2>
<h3>Basic Rater CSS</h3>
<p><code class="css">.star-rating,<br />
.star-rating a:hover,<br />
.star-rating a:active,<br />
.star-rating a:focus,<br />
.star-rating .current-rating{<br />
	background: url(star.gif) left -1000px repeat-x;<br />
}<br />
.star-rating{<br />
	position:relative;<br />
	width:125px;<br />
	height:25px;<br />
	overflow:hidden;<br />
	list-style:none;<br />
	margin:0;<br />
	padding:0;<br />
	background-position: left top;<br />
}<br />
.star-rating li{<br />
	display: inline;<br />
}<br />
.star-rating a,<br />
.star-rating .current-rating{<br />
	position:absolute;<br />
	top:0;<br />
	left:0;<br />
	text-indent:-1000em;<br />
	height:25px;<br />
	line-height:25px;<br />
	outline:none;<br />
	overflow:hidden;<br />
	border: none;<br />
}<br />
.star-rating a:hover,<br />
.star-rating a:active,<br />
.star-rating a:focus{<br />
	background-position: left bottom;<br />
}<br />
.star-rating a.one-star{<br />
	width:20%;<br />
	z-index:6;<br />
}<br />
.star-rating a.two-stars{<br />
	width:40%;<br />
	z-index:5;<br />
}<br />
.star-rating a.three-stars{<br />
	width:60%;<br />
	z-index:4;<br />
}<br />
.star-rating a.four-stars{<br />
	width:80%;<br />
	z-index:3;<br />
}<br />
.star-rating a.five-stars{<br />
	width:100%;<br />
	z-index:2;<br />
}<br />
.star-rating .current-rating{<br />
	z-index:1;<br />
	background-position: left center;<br />
}</code></p>
<p>The real difference between this CSS and my previous Star Rating tutorials has to do with the addition of :active and :focus pseudo states to hold the rating when clicked, percent-based widths, and the elimination of the use of floats to accomplish the CSS.  It is important to mention also the use of overflow:hidden to keep the rater from spilling out over its set width and height as well as the use of a set pixel height line-height.  I found that Internet Explorer really had issues with the rater CSS when resizing text, so if I set it to an exact pixel height, issues were resolved.</p>
<h3>Inline Rater CSS</h3>
<p><code class="css">.inline-rating{<br />
	display:-moz-inline-block;<br />
	display:-moz-inline-box;<br />
	display:inline-block;<br />
	vertical-align: middle;<br />
}</code></p>
<p>I found that if I wrapped the Star Rater unordered list with a span with a class of &#8220;inline-rating&#8221; and used the CSS rules above, I could achieve an inline rater.  My apologies for the non-standard CSS attributes, but achieving an <strong>inline-block</strong> behavior in CSS is not an easy task.  Most importantly to  me is that it works and works in quite a few browsers.</p>
<h3>Smaller Rater CSS</h3>
<p><code class="css">.small-star{<br />
	width:50px;<br />
	height:10px;<br />
}<br />
.small-star,<br />
.small-star a:hover,<br />
.small-star a:active,<br />
.small-star a:focus,<br />
.small-star .current-rating{<br />
	background-image: url(star_small.gif);<br />
	line-height: 10px;<br />
	height: 10px;<br />
}</code></p>
<p>I&#8217;ve tried to make adapting the rater much easier for all of you.  As you can see in the CSS above, you will not have to change a ton.  Just add a class to your unordered list; In this case I used &#8220;small-star.&#8221;  Update  the width and height to the desired values.  Make sure to change your image and line-heights as well.  This makes creating other variations of the rater much more simple.  If you need to make a 3 star, 4 star &#8230;N star rating system, you are gonna have to get your hands a little more dirty&#8230;sorry :(.</p>
<p>I am much more happy with the performance and support of this version and I feel that it will help to resolve the shortcomings that the previous versions had.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/01/css-star-rating-redux/feed/</wfw:commentRss>
		<slash:comments>69</slash:comments>
		</item>
		<item>
		<title>Web Developers</title>
		<link>http://www.komodomedia.com/blog/2006/12/web-developers/</link>
		<comments>http://www.komodomedia.com/blog/2006/12/web-developers/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 04:28:26 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2006/12/10/web-developers/</guid>
		<description><![CDATA[<img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2006/12/lego_block.thumbnail.gif" alt="Legos are amazing" class="float_right"/>While talking to a certain fellow at an untold location, I heard a statement that semi-floored me.  He mentioned that web programmers don't really create systems.  They do not program and design systems.  They merely assemble things.  My thought was that he was comparing web developers to a lego model building, direction following individual.  This seems to really undercut what some, might I say phenomenal web developers do.  

While web developing can at time be mere assembly of modules, often it is developing processes and dealing with some complex logic.  I am not attempting to say that we are genius C++ video game programmers, however, I think we deserve some credit.  We are <strong>not</strong> lego-assembling, direction following idiots.  

What are your thoughts?]]></description>
			<content:encoded><![CDATA[<p><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2006/12/lego_block.thumbnail.gif" alt="Legos are amazing" class="float_right"/>While talking to a certain fellow at an untold location, I heard a statement that semi-floored me.  He mentioned that web programmers don&#8217;t really create systems.  They do not program and design systems.  They merely assemble things.  My thought was that he was comparing web developers to a lego model building, direction following individual.  This seems to really undercut what some, might I say phenomenal web developers do.  </p>
<p>While web developing can at time be mere assembly of modules, often it is developing processes and dealing with some complex logic.  I am not attempting to say that we are genius C++ video game programmers, however, I think we deserve some credit.  We are <strong>not</strong> lego-assembling, direction following idiots.  </p>
<p>What are your thoughts?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2006/12/web-developers/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>CSS Trickery Part 5: Inheritance</title>
		<link>http://www.komodomedia.com/blog/2006/10/css-trickery-part-5-inheritance/</link>
		<comments>http://www.komodomedia.com/blog/2006/10/css-trickery-part-5-inheritance/#comments</comments>
		<pubDate>Mon, 02 Oct 2006 22:59:38 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2006/10/02/css-trickery-part-5-inheritance/</guid>
		<description><![CDATA[Consistent fonts for form items
This article is written partly inspired by Nathan Smith&#8217;s article from Sonspring. The idea with his article is that most browsers by default display form items with a different style than that of the document.  This is because by default, form items do not inherit the CSS rules for font-weight, [...]]]></description>
			<content:encoded><![CDATA[<h3>Consistent fonts for form items</h3>
<p>This article is written partly inspired by <a href="http://sonspring.com/journal/consistent-form-styling">Nathan Smith&#8217;s article from Sonspring</a>. The idea with his article is that most browsers by default display form items with a different style than that of the document.  This is because by default, form items do not <a href="http://www.w3.org/TR/REC-CSS2/cascade.html#value-def-inherit"><strong>inherit</strong></a> the CSS rules for font-weight, font-family and font-size.  </p>
<p>So, to add to Nathan&#8217;s article, here is the CSS that I often use to consistently style form items:</p>
<p><code>input, textarea, select{<br />
	font-family:inherit;<br />
	font-size:inherit;<br />
	font-weight:inherit;<br />
}</code></p>
<h3>Making Tables Cooperate</h3>
<p>Tables also have inheritance turned off in some browsers.  You may notice that in some browsers, your tables&#8217; text will be larger, clunkier and not so pretty.  This is also due to inheritance.  Many browsers give tables their own style.  </p>
<p>I&#8217;ve seen many designers fix this issue by wrapping spans around their table data cell elements to achieve the font they need.  Rest assured folks, CSS to the rescue, we can remedy the issue by making the table also inherit the font.  Just as easy as form items, we can whip up the following CSS rules:</p>
<p><code>table{<br />
	font-family:inherit;<br />
	font-size:inherit;<br />
	font-weight:inherit;<br />
}</code></p>
<p>These little tricks always save me&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2006/10/css-trickery-part-5-inheritance/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>CSS: Pimp my apple.com</title>
		<link>http://www.komodomedia.com/blog/2006/09/pimp-my-applecom/</link>
		<comments>http://www.komodomedia.com/blog/2006/09/pimp-my-applecom/#comments</comments>
		<pubDate>Sat, 16 Sep 2006 23:41:31 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Nerdlab]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2006/09/16/pimp-my-applecom/</guid>
		<description><![CDATA[So, usually I would take months to come up with some long-winded and very informative tutorial on CSS for my fellow blog readers.  However, today I am not feeling that kind&#8230;yet kind enough to post this.  
I respect Apple for quite a few things.  Design is one of them.  I think [...]]]></description>
			<content:encoded><![CDATA[<p>So, usually I would take months to come up with some long-winded and very informative tutorial on CSS for my fellow blog readers.  However, today I am not feeling that kind&#8230;yet kind enough to post this.  </p>
<p>I respect Apple for quite a few things.  Design is one of them.  I think that their site is very well layed out with a balance of images, text, video and interactivity.  Some times I come across a page that I think looks great.  But when I lift the hood, the insides are messed up.  So, that&#8230;my friends is what pimp my apple.com is all about.  I take a chunk of the site and redo it how I would want to do it.  </p>
<p>Keep in mind that when I redo some crazy XHTML/CSS/Javascript, I am <strong>not</strong> making a statement about how my code should be put on their site.  I understand that they have an audience and that their code needs to support as many browsers as possible, etc.  My goal in this little excercise is to help show people what can be done with CSS, not neccessarily at this particular time. I would probably wait till more browsers were up to speed.</p>
<p>Ok, enough witless banter from me.  Alright, because I&#8217;m an <a href="http://www.urbandictionary.com/define.php?term=tool">apple tool</a>, I was checking out <a href="http://www.apple.com/imac/graphics.html">their webpage on the new iMacs&#8217;  graphics</a>.  I found this sweet little gem of a rollover image that showed all three models, like so:</p>
<h3>Apple&#8217;s image thingy</h3>
<div style="text-align:center;">
<img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2006/09/imac_graphics.jpg" title="iMac viewer thingy" />
</div>
<p>And I like it.  First thing, I turn off Javascript.  It doesn&#8217;t work. Typical.  So, quickly now I view source and get the code.  Here is the code:</p>
<h3>Apple&#8217;s XHTML</h3>
<p><code>&lt;dl id="features1"&gt;<br />
	&lt;dt id="t1" class="hi"&gt;17-inch&lt;/dt&gt;<br />
	&lt;dd id="d1" class="hi"&gt;&lt;img src="http://images.apple.com/imac/images/graphicscompareimac17.jpg" alt="17-inch iMac" width="290" height="270" border="0"&gt;&lt;/dd&gt;<br />
	&lt;dt id="t2"&gt;20-inch&lt;/dt&gt;<br />
	&lt;dd id="d2"&gt;&lt;img src="http://images.apple.com/imac/images/graphicscompareimac20.jpg" alt="20-inch iMac" width="290" height="270" border="0"&gt;&lt;/dd&gt;<br />
	&lt;dt id="t3"&gt;24-inch&lt;/dt&gt;<br />
	&lt;dd id="d3"&gt;&lt;img src="http://images.apple.com/imac/images/graphicscompareimac24.jpg" alt="24-inch iMac" width="290" height="270" border="0"&gt;&lt;/dd&gt;<br />
&lt;/dl&gt;</code>	</p>
<p>Ok, honestly my first thought.  Holy crap they used a definition list.  That&#8217;s great!  Semantic markup!  Way to go apple!  But, I&#8217;m not writing this to praise apple.  I&#8217;m writing to use apple like they&#8217;ve used me. Quickly then I re-markup their markup to be more appealing and have much more betterness.  Check it here:</p>
<h3>My XHTML</h3>
<p><code>&lt;dl id="features-imac"&gt;<br />
	&lt;div title="17 inch imac" class="show"&gt;<br />
		&lt;dt&gt;17-inch&lt;/dt&gt;<br />
		&lt;dd&gt;<br />
			&lt;img src="http://images.apple.com/imac/images/graphicscompareimac17.jpg" alt="17-inch iMac" width="290" height="270"  /&gt;<br />
		&lt;/dd&gt;<br />
		&lt;/div&gt;<br />
	&lt;div  title="20 inch imac"&gt;<br />
		&lt;dt&gt;20-inch&lt;/dt&gt;<br />
		&lt;dd&gt;<br />
			&lt;img src="http://images.apple.com/imac/images/graphicscompareimac20.jpg" alt="20-inch iMac" width="290" height="270"  /&gt;<br />
		&lt;/dd&gt;<br />
	&lt;/div&gt;<br />
	&lt;div title="24 inch imac"&gt;<br />
		&lt;dt&gt;24-inch&lt;/dt&gt;<br />
		&lt;dd&gt;<br />
			&lt;img src="http://images.apple.com/imac/images/graphicscompareimac24.jpg" alt="24-inch iMac" width="290" height="270" /&gt;<br />
		&lt;/dd&gt;<br />
	&lt;/div&gt;<br />
&lt;/dl&gt;</code></p>
<p>Since this is a short article, let me give you the highlights of what I changed:</p>
<h3>My Changes</h3>
<ul>
<li>I indented the code in a way that was cooler aka readable</li>
<li>I removed the superfluous ids on every tag</li>
<li>I put some title attributes on the items</li>
<li>I changed the main DL id to be more appropriate</li>
<li>I added <em>div</em>&#8217;s you see to give structure to each definition list term and it&#8217;s definition.  In a perfect world, I would use a <a href="http://www.w3.org/TR/2005/WD-xhtml2-20050527/mod-list.html#sec_11.1.">DI</a>, used exactly for that purpose, but some company&#8217;s browsers suck and don&#8217;t adhere to standards much.  So, I decided to go with the oh-so-popular DIV.</li>
<li>I added a class of &#8220;show&#8221; to the grouping of terms and definitions that needed focus from the start&#8230;the initial image to show.</li>
</ul>
<p>After the code changes, I went all out writing some CSS to accomplish the behaviors  (without Javascript).  It worked like a gem, however, in one of the worst browsers ever, it failed&#8230;huh I wonder why?  Well, like you guessed, Internet Explorer won&#8217;t support the :hover pseudo state on anything but the anchor tag.  Now I could add some anchors and make it work or add links and link them to their specific model and that would fix that&#8230;maybe.  </p>
<p>But I didn&#8217;t want to do that because this was more of an excercise for good browsers just to see what our future might hold.  But alas, since I <strong>had</strong> to make it work in Internet Explorer 6, I wrote a little more CSS to do the trick.  So, instead of using the <a href="http://www.xs4all.nl/~peterned/csshover.html">CSS javascript :hover everything </a>, I just wanted to use my own methods (which im sure others have done) and here&#8217;s the code:</p>
<h3>The Simple CSS Hover Style for IE6</h3>
<p><code>&lt;!--[if IE 6]&gt;<br />
   &lt;style type="text/css" media="screen"&gt;<br />
	body *{<br />
		unicode-bidi: expression(<br />
		this.onmouseover = function(){this.className += ' hover';},<br />
		this.onmouseout = function(){this.className = this.className.replace('hover','');}<br />
		);<br />
	}<br />
   &lt;/style&gt;<br />
&lt;![endif]--&gt;</code></p>
<p>Basically, this behavior (only in IE6) applies a onmouseover and onmouseout function to all elements.  All the function does is add a class of hover and remove a class of hover to any element when it is mouseover&#8217;d and mouseouted.  So, like a good little CSS jockey, we know that now we can add additional rules to target <em>element:hover</em> for good browsers and <em>element.hover</em> for evil browsers.  And that&#8217;s that!  </p>
<h3>So here&#8217;s the CSS (you&#8217;ll have to figure this out yourself)</h3>
<p><code>&lt;style type="text/css" media="screen"&gt;<br />
	dl#features-imac{<br />
		width:290px;<br />
		margin:10px;<br />
		position:relative;<br />
		float:left;<br />
	}<br />
	dl#features-imac div,<br />
	dl#features-imac dt,<br />
	dl#features-imac dd{<br />
		padding:0px;<br />
		margin:0px;<br />
		display:block;<br />
	}<br />
	dl#features-imac dd{<br />
		width:290px;<br />
		height:270px;<br />
		border-bottom:2px solid #ccc;<br />
		position:absolute;<br />
		left:0px;<br />
		top:0px;<br />
		float:left;<br />
		z-index:1;<br />
	}<br />
	dl#features-imac dt{<br />
		float:left;<br />
		position:relative;<br />
		width:32%;<br />
		height:3em;<br />
		line-height:3em;<br />
		z-index:3;<br />
		text-align:center;<br />
		padding-top:270px;<br />
		cursor:default;<br />
		background:url(up_arrow.gif) center 267px no-repeat;<br />
		color:#ccc;<br />
	}<br />
	html>body dl#features-imac dt{<br />
		background:url(up_arrow.gif) center 263px no-repeat;<br />
	}<br />
	dl#features-imac dt:hover, dl#features-imac dt.hover{<br />
		background:url(up_arrow_over.gif) center 267px no-repeat;<br />
		color:#333;<br />
	}<br />
	dl#features-imac div:hover dd, dl#features-imac div.hover dd{<br />
		z-index:2;<br />
		border-bottom:2px solid #333;<br />
	}<br />
	html>body dl#features-imac dt:hover{<br />
		background:url(up_arrow_over.gif) center 263px no-repeat;<br />
		color:#333;<br />
	}<br />
	dl#features-imac div.show dd{<br />
		z-index:2;<br />
	}<br />
&lt;/style&gt;<br />
</code></p>
<h3>The final product</h3>
<p>I have the <a href="http://d2dnrmagaqciul.cloudfront.net/samples/pimp_my_apple/index.htm">complete file for view here</a>.  Take it, use it, enjoy it&#8230;but not too much.  Let me know if you can make it better.  Go ahead&#8230;view source&#8230;you know you want to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2006/09/pimp-my-applecom/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: komodomedia.com @ 2012-02-10 14:39:15 by W3 Total Cache -->
