<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Article: Preparing For Widescreen</title>
	<atom:link href="http://mikemadaio.com/blog/i-wrote-an-article/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikemadaio.com/blog/i-wrote-an-article</link>
	<description>User Experience Theorist. Writer. Epicure.</description>
	<lastBuildDate>Mon, 18 Oct 2010 14:03:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Progettare un layout a prova di Widescreen - Laburno</title>
		<link>http://mikemadaio.com/blog/i-wrote-an-article#comment-25165</link>
		<dc:creator>Progettare un layout a prova di Widescreen - Laburno</dc:creator>
		<pubDate>Mon, 17 Sep 2007 05:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://mikemadaio.com/?p=58#comment-25165</guid>
		<description>[...] Preparing for Widescreen - Mike Mandaio. Sul blog dell&#8217;autore c&#8217;è una correzione successiva riguardo al javascript utilizzato. [...]</description>
		<content:encoded><![CDATA[<p>[...] Preparing for Widescreen &#8211; Mike Mandaio. Sul blog dell&#8217;autore c&#8217;è una correzione successiva riguardo al javascript utilizzato. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Douglas Clifton</title>
		<link>http://mikemadaio.com/blog/i-wrote-an-article#comment-219</link>
		<dc:creator>Douglas Clifton</dc:creator>
		<pubDate>Wed, 29 Mar 2006 06:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://mikemadaio.com/?p=58#comment-219</guid>
		<description>For the DWM article, the JavaScript code took some extra massaging. Keep in mind this is for the &quot;mini&quot; demo--not the full blown technique.

&lt;pre&gt;
function miniStyle(z) {

 var i, l, t, v;
 for (i = 0; l = document.getElementsByTagName(&#039;link&#039;)[i]; i++) {
  if (l.getAttribute(&#039;rel&#039;).indexOf(&#039;stylesheet&#039;) != -1) {
   t = l.getAttribute(&#039;title&#039;);
   if (t &amp;&amp; t.indexOf(&#039;Mini&#039;) != -1) {
    if (l.getAttribute(&#039;href&#039;).indexOf(z) != -1) l.disabled = false;
    else l.disabled = true;
   }
  }
 }
 switch(z) {
  case &#039;minihuge&#039;:
   v = &#039;1280x1024 and up&#039;;
   break;
  case &#039;minibig&#039;:
   v = &#039;1024x768&#039;;
   break;
  default:
   v = &#039;800x600&#039;;
 }
 document.getElementById(&#039;minisize&#039;).innerHTML = v;
 return false;
}

function addLoadEvent(f) {
 var o = window.onload;
 if (typeof window.onload != &#039;function&#039;) window.onload = f;
 else {
  window.onload = function() {
   o();
   f();
  }
 }
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>For the DWM article, the JavaScript code took some extra massaging. Keep in mind this is for the &#8220;mini&#8221; demo&#8211;not the full blown technique.</p>
<pre>
function miniStyle(z) {

 var i, l, t, v;
 for (i = 0; l = document.getElementsByTagName('link')[i]; i++) {
  if (l.getAttribute('rel').indexOf('stylesheet') != -1) {
   t = l.getAttribute('title');
   if (t &amp;&amp; t.indexOf('Mini') != -1) {
    if (l.getAttribute('href').indexOf(z) != -1) l.disabled = false;
    else l.disabled = true;
   }
  }
 }
 switch(z) {
  case 'minihuge':
   v = '1280x1024 and up';
   break;
  case 'minibig':
   v = '1024x768';
   break;
  default:
   v = '800x600';
 }
 document.getElementById('minisize').innerHTML = v;
 return false;
}

function addLoadEvent(f) {
 var o = window.onload;
 if (typeof window.onload != 'function') window.onload = f;
 else {
  window.onload = function() {
   o();
   f();
  }
 }
}
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">


  <title>Mike Madaio &raquo; Article: Preparing For Widescreen</title>

   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <meta name="generator" content="WordPress 3.1.2" /> <!-- leave this for stats -->

   <style type="text/css" media="screen">
       @import url( http://mikemadaio.com/wp-content/themes/theme06/style.css );
   </style>

   <link rel="stylesheet" type="text/css" media="print" href="http://mikemadaio.com/print.css" />
   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://mikemadaio.com/blog/feed" />
   <link rel="alternate" type="text/xml" title="RSS .92" href="http://mikemadaio.com/blog/feed/rss" />
   <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://mikemadaio.com/blog/feed/atom" />
   <link rel="pingback" href="http://mikemadaio.com/xmlrpc.php" />
   	<link rel='archives' title='January 2012' href='http://mikemadaio.com/blog/2012/01' />
	<link rel='archives' title='June 2011' href='http://mikemadaio.com/blog/2011/06' />
	<link rel='archives' title='April 2010' href='http://mikemadaio.com/blog/2010/04' />
	<link rel='archives' title='March 2009' href='http://mikemadaio.com/blog/2009/03' />
	<link rel='archives' title='January 2009' href='http://mikemadaio.com/blog/2009/01' />
	<link rel='archives' title='August 2008' href='http://mikemadaio.com/blog/2008/08' />
	<link rel='archives' title='May 2008' href='http://mikemadaio.com/blog/2008/05' />
	<link rel='archives' title='November 2007' href='http://mikemadaio.com/blog/2007/11' />
	<link rel='archives' title='October 2007' href='http://mikemadaio.com/blog/2007/10' />
	<link rel='archives' title='September 2007' href='http://mikemadaio.com/blog/2007/09' />
	<link rel='archives' title='August 2007' href='http://mikemadaio.com/blog/2007/08' />
	<link rel='archives' title='June 2007' href='http://mikemadaio.com/blog/2007/06' />
	<link rel='archives' title='May 2007' href='http://mikemadaio.com/blog/2007/05' />
	<link rel='archives' title='April 2007' href='http://mikemadaio.com/blog/2007/04' />
	<link rel='archives' title='March 2007' href='http://mikemadaio.com/blog/2007/03' />
	<link rel='archives' title='February 2007' href='http://mikemadaio.com/blog/2007/02' />
	<link rel='archives' title='January 2007' href='http://mikemadaio.com/blog/2007/01' />
	<link rel='archives' title='December 2006' href='http://mikemadaio.com/blog/2006/12' />
	<link rel='archives' title='October 2006' href='http://mikemadaio.com/blog/2006/10' />
	<link rel='archives' title='September 2006' href='http://mikemadaio.com/blog/2006/09' />
	<link rel='archives' title='August 2006' href='http://mikemadaio.com/blog/2006/08' />
	<link rel='archives' title='July 2006' href='http://mikemadaio.com/blog/2006/07' />
	<link rel='archives' title='June 2006' href='http://mikemadaio.com/blog/2006/06' />
	<link rel='archives' title='May 2006' href='http://mikemadaio.com/blog/2006/05' />
	<link rel='archives' title='April 2006' href='http://mikemadaio.com/blog/2006/04' />
	<link rel='archives' title='March 2006' href='http://mikemadaio.com/blog/2006/03' />
	<link rel='archives' title='February 2006' href='http://mikemadaio.com/blog/2006/02' />
	<link rel='archives' title='January 2006' href='http://mikemadaio.com/blog/2006/01' />
	<link rel='archives' title='December 2005' href='http://mikemadaio.com/blog/2005/12' />
	<link rel='archives' title='November 2005' href='http://mikemadaio.com/blog/2005/11' />
	<link rel='archives' title='October 2005' href='http://mikemadaio.com/blog/2005/10' />
	<link rel='archives' title='September 2005' href='http://mikemadaio.com/blog/2005/09' />
	<link rel='archives' title='August 2005' href='http://mikemadaio.com/blog/2005/08' />
	<link rel='archives' title='July 2005' href='http://mikemadaio.com/blog/2005/07' />
	<link rel='archives' title='June 2005' href='http://mikemadaio.com/blog/2005/06' />
	<link rel='archives' title='May 2005' href='http://mikemadaio.com/blog/2005/05' />
	<link rel='archives' title='April 2005' href='http://mikemadaio.com/blog/2005/04' />

   <link rel="alternate" type="application/rss+xml" title="Mike Madaio &raquo; Article: Preparing For Widescreen Comments Feed" href="http://mikemadaio.com/blog/i-wrote-an-article/feed" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://mikemadaio.com/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://mikemadaio.com/wp-includes/wlwmanifest.xml" /> 
<link rel='index' title='Mike Madaio' href='http://mikemadaio.com/blog' />
<link rel='start' title='eCatalogs: Don&#8217;t Do It!' href='http://mikemadaio.com/blog/ecatalogs-dont-do-it' />
<link rel='prev' title='Customer Loyalty: How Loyal Are You?' href='http://mikemadaio.com/blog/how-loyal-are-you' />
<link rel='next' title='ESPN Mobile' href='http://mikemadaio.com/blog/espn-mobile' />
<meta name="generator" content="WordPress 3.1.2" />
<link rel='canonical' href='http://mikemadaio.com/blog/i-wrote-an-article' />
<link rel='shortlink' href='http://mikemadaio.com/blog/?p=58' />

	<!-- BDP RSS Aggregator version 0.4.10 (test) -->
<link rel="stylesheet" type="text/css" href="http://mikemadaio.com/wp-content/plugins/friendfeed-activity-widget/widget.css" />
	<link rel="stylesheet" type="text/css" href="http://mikemadaio.com/wp-content/plugins/slightbox/css/slightbox.css" />
	<script type="text/javascript" src="http://mikemadaio.com/wp-content/plugins/slightbox/scripts/mootools.js"></script>
	<script type="text/javascript" src="http://mikemadaio.com/wp-content/plugins/slightbox/scripts/slightbox.js"></script>
	<script language="JavaScript" type="text/javascript" src="http://mikemadaio.com/wp-content/plugins/sociable/description_selection.js"></script><link rel="stylesheet" type="text/css" media="screen" href="http://mikemadaio.com/wp-content/plugins/sociable/sociable.css" />
<style>

body {text-align:center; font-family:trebuchet MS, serif; font-size:0.9em; margin:auto; background-image:url(/images/new/mmc_sliver_top.gif); background-repeat:repeat-x;}
#home-header {text-align:left; width:800px; height:150px; }
#home-wrap {width:900px; margin:auto;}
#text {position:relative; top:-50px; left:200px; color:#fff;}
#home-content {text-align:left; width:800px; height:480px;}
#about {float:left; width:350px; padding-left:15px;}
#iPhone {float:right; width:350px;}
#home-footer {text-align:center; width:100%; height:20px; padding:10px 0; background-color:#ddd; font-size:0.7em; clear:both; position:absolute; bottom:0; left:0;}
#about h3 {margin:0; padding:0; position:relative; top:-20px; left:180px;}

table {width:333px; background-color:#eee;}
table a {font-size:0.8em; font-weight:bold; text-decoration:none; color:#666;}
table a:hover {text-decoration:underline;}
td {text-align: -moz-center; width:111px;}
td img {border:0px solid white;}
.mid {padding:20px 0;}

td {text-align:center; }
UL {margin:0; padding:0; margin-left:25px;}
LI {margin-bottom:10px;}

#home-header img {border:0px;}

*html table {margin-top:-5px;}


</style>
</head>
<body>
<div id="home-wrap">

<div id="home-header"><a href="/"><img src="/images/new/mmc_logo.jpg"></a><div id="text">User Experience Theorist. Writer. Epicure.</div></div>
  <DIV ID="gray">
    <div ID="gleft">
      <form method="get" id="theform" action="/blog/index.php">
        <input type="text" value="" name="s" id="searchform" />
        <input type="image" src="/images/search.gif" id="search"/>
</form>    </div>
    <div ID="gright"><IMG SRC="/images/gray_right.gif" WIDTH=17 HEIGHT=33></div>
  </DIV>
<style>
body {background-color:#ccc;}
#home-header {height:130px;}
</style>
<DIV ID="main">

<style>
/* LEFT NAVIGATION */
#thenav {float:left; width:188px; border:1px solid #eaeaea; text-align:left; padding:0 5px; margin:8px;}
#thenav UL {margin:0; padding:0; list-style-type:none;}
#thenav LI {border-bottom:2px #cccccc dotted; }
#thenav A {display:block; text-decoration:none; color:#929292; padding:10px 5px 10px 10px;}
#thenav A:hover {color:#FFA401; background-color:#f6f6f6;}
#thenav B {font-weight:bold; color:#FFA401; font-size:20px;}
#thenav A:hover B {text-decoration:none;}
#thenav {display:none;}
</style>

<DIV ID="thenav">
		<UL>
			<li><a href="/about-me/"><b>></b> About Me</a></li>
                        <li><a href="/resume/"><b>></b> Resume</a></li>
			<li><a href="/skills/"><b>></b> Skills</a></li>
                        <!--<li><a href="/blog/category/work-success/"><b>></b> Work Success</a></li>-->
			<li><a href="/blog/category/writingspeaking/"><b>></b> Writing / Speaking</a></li>
                        <li><a href="/education/"><b>></b> Education</a></li>
                        <li><a href="/contact-me/"><b>></b> Contact Me</a></li>
			<li style="border-bottom:0px;"><a href="/blog/"><b>></b> Blog</a></li>
		</UL>

</DIV>

<DIV id="leftnav" style="clear:left;">
<DIV>
<span><img src="/images/archives.gif"> BLOG ARCHIVES</span>
	<UL>
	   <LI><a href="http://mikemadaio.com/archives_date.php">By Date</LI>
            <LI><a href="http://mikemadaio.com/archives_tag.php">By Tag/Category</LI></UL>
</DIV>
<DIV>
<span><img src="/images/tag.gif" width=40 height=36> CATEGORIES</span>
  <ul>
     	<li class="cat-item cat-item-21"><a href="http://mikemadaio.com/blog/category/blogging" title="View all posts filed under blogging">blogging</a>
</li>
	<li class="cat-item cat-item-6"><a href="http://mikemadaio.com/blog/category/digital-music" title="View all posts filed under digital music">digital music</a>
</li>
	<li class="cat-item cat-item-33"><a href="http://mikemadaio.com/blog/category/ecommerce" title="View all posts filed under eCommerce">eCommerce</a>
</li>
	<li class="cat-item cat-item-11"><a href="http://mikemadaio.com/blog/category/events" title="View all posts filed under events">events</a>
<ul class='children'>
	<li class="cat-item cat-item-18"><a href="http://mikemadaio.com/blog/category/events/shoporg-summit-06" title="View all posts filed under Shop.org Summit &#039;06">Shop.org Summit &#039;06</a>
</li>
	<li class="cat-item cat-item-13"><a href="http://mikemadaio.com/blog/category/events/ui10" title="View all posts filed under UI10">UI10</a>
</li>
</ul>
</li>
	<li class="cat-item cat-item-31"><a href="http://mikemadaio.com/blog/category/evite" title="View all posts filed under evite">evite</a>
</li>
	<li class="cat-item cat-item-27"><a href="http://mikemadaio.com/blog/category/firefox" title="View all posts filed under firefox">firefox</a>
</li>
	<li class="cat-item cat-item-1"><a href="http://mikemadaio.com/blog/category/uncategorized" title="View all posts filed under general tech">general tech</a>
</li>
	<li class="cat-item cat-item-17"><a href="http://mikemadaio.com/blog/category/hci" title="View all posts filed under HCI">HCI</a>
</li>
	<li class="cat-item cat-item-10"><a href="http://mikemadaio.com/blog/category/humor" title="View all posts filed under humor">humor</a>
</li>
	<li class="cat-item cat-item-5"><a href="http://mikemadaio.com/blog/category/interactive-tv" title="View all posts filed under interactive TV">interactive TV</a>
</li>
	<li class="cat-item cat-item-23"><a href="http://mikemadaio.com/blog/category/ipod" title="View all posts filed under ipod">ipod</a>
</li>
	<li class="cat-item cat-item-29"><a href="http://mikemadaio.com/blog/category/online-banking" title="View all posts filed under online banking">online banking</a>
</li>
	<li class="cat-item cat-item-9"><a href="http://mikemadaio.com/blog/category/personal" title="View all posts filed under personal">personal</a>
</li>
	<li class="cat-item cat-item-3"><a href="http://mikemadaio.com/blog/category/product-usability" title="View all posts filed under product usability">product usability</a>
<ul class='children'>
	<li class="cat-item cat-item-14"><a href="http://mikemadaio.com/blog/category/product-usability/food" title="View all posts filed under food">food</a>
</li>
</ul>
</li>
	<li class="cat-item cat-item-7"><a href="http://mikemadaio.com/blog/category/reviews" title="View all posts filed under reviews">reviews</a>
</li>
	<li class="cat-item cat-item-30"><a href="http://mikemadaio.com/blog/category/software" title="View all posts filed under software">software</a>
</li>
	<li class="cat-item cat-item-36"><a href="http://mikemadaio.com/blog/category/writingspeaking" title="View all posts filed under Speaking">Speaking</a>
</li>
	<li class="cat-item cat-item-16"><a href="http://mikemadaio.com/blog/category/topic-of-the-week" title="View all posts filed under Topic of the Week">Topic of the Week</a>
</li>
	<li class="cat-item cat-item-24"><a href="http://mikemadaio.com/blog/category/ux" title="View all posts filed under ux">ux</a>
<ul class='children'>
	<li class="cat-item cat-item-15"><a href="http://mikemadaio.com/blog/category/ux/customer-service" title="View all posts filed under customer service">customer service</a>
</li>
</ul>
</li>
	<li class="cat-item cat-item-22"><a href="http://mikemadaio.com/blog/category/videos" title="View all posts filed under videos">videos</a>
</li>
	<li class="cat-item cat-item-19"><a href="http://mikemadaio.com/blog/category/web-20" title="View all posts filed under web 2.0">web 2.0</a>
<ul class='children'>
	<li class="cat-item cat-item-28"><a href="http://mikemadaio.com/blog/category/web-20/ajax" title="View all posts filed under AJAX">AJAX</a>
</li>
</ul>
</li>
	<li class="cat-item cat-item-2"><a href="http://mikemadaio.com/blog/category/user-interface" title="View all posts filed under web UI">web UI</a>
<ul class='children'>
	<li class="cat-item cat-item-20"><a href="http://mikemadaio.com/blog/category/user-interface/site-reviews" title="View all posts filed under site reviews">site reviews</a>
</li>
</ul>
</li>
	<li class="cat-item cat-item-35"><a href="http://mikemadaio.com/blog/category/work-success" title="View all posts filed under work success">work success</a>
</li>
	<li class="cat-item cat-item-37"><a href="http://mikemadaio.com/blog/category/writing" title="View all posts filed under writing">writing</a>
</li>
  </ul>
</div>
</DIV>


<DIV ID="content">
<div class="post">
	<h2 id="post-58"><a href="http://mikemadaio.com/blog/i-wrote-an-article" rel="bookmark" title="Permanent Link to Article: Preparing For Widescreen">Article: Preparing For Widescreen</a></h2>
		<small>March 28th, 2006 <!-- by Administrator --></small>

			<div class="entry">
					<p>I wrote an article called “<a href="http://www.digital-web.com/articles/preparing_for_widescreen/">Preparing for Widescreen</a>” for Digital-Web. Please read it! </p>
<p>One thing to note – the D-W staff accidentally published an outdated version of my JavaScript, so the code referenced in my article is not the same script I used in my demo. I&#8217;ve outlined the differences on below, so come back here and read the details after you get through the article.</p>
<p><span id="more-58"></span></p>
<style>
code {display:block; background-color:#FFCC66; }
</style>
<p>Here&#8217;s the  code from my demo:</p>
<p>First, determine screen width,  using a conditional operator (basically a condensed<em> if..else</em> statement),  via <em>document.body.clientWidth</em> (IE, Firefox) or <em>innerWidth</em> (Opera,  Firefox, Netscape).</p>
<p><code>  var  screenW = (document.all) ? document.body.clientWidth : innerWidth </code></p>
<p>  Next, again using a  conditional operator, I set a variable to tell which stylesheet should be  active. It is crucial to give this variable a name that is consistent with what  each stylesheet has been named, as later it will be used within the <em>indexOf</em> command. </p>
<p><code> var  theStyle = (screenW &gt; 1200) ? 'huge' : (screenW &gt; 1000) ? 'big' :  'small'; </code></p>
<p> Once that variable is set,  use it within a for loop that enables the correct stylesheet and disables the  others. </p>
<p><code>  var  i, a;<br />
  for  (i = 0; a = document.getElementsByTagName('link')[i]; i++) {<br />
&nbsp;if  (a.getAttribute('href').indexOf(theStyle) != -1) {<br />
&nbsp;&nbsp;&nbsp;a.disabled  = false;<br />
&nbsp;}  else {<br />
&nbsp;&nbsp;&nbsp;a.disabled  = true;<br />
&nbsp;}<br />
} </code></p>
<p>  The three previous snippets  of code need to be placed into a function, which I&#8217;ve called dynamicStyle().  Once this is created, the following command is placed within the script tag  (outside of the function), in order for the content to adjust when the page is  loaded or when a user resizes their browser:</p>
<p><code>window.onload  = window.onresize = dynamicStyle;</code></p>
<p>Same basic idea, but a slightly smoother solution.</p>

<div class="sociable">
<span class="sociable_tagline">

	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmikemadaio.com%2Fblog%2Fi-wrote-an-article&amp;title=Article%3A+Preparing+For+Widescreen" title="Digg" onfocus="sociable_description_link(this, 'bodytext')"><img src="http://mikemadaio.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fmikemadaio.com%2Fblog%2Fi-wrote-an-article&amp;title=Article%3A+Preparing+For+Widescreen" title="del.icio.us"><img src="http://mikemadaio.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fmikemadaio.com%2Fblog%2Fi-wrote-an-article&amp;title=Article%3A+Preparing+For+Widescreen" title="Reddit"><img src="http://mikemadaio.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fmikemadaio.com%2Fblog%2Fi-wrote-an-article&amp;bm_description=Article%3A+Preparing+For+Widescreen&amp;plugin=soc" title="MisterWong"><img src="http://mikemadaio.com/wp-content/plugins/sociable/images/misterwong.gif" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
</ul>
</div>
		</div>

		<p class="postmetadata">Tags: <a href="http://mikemadaio.com/blog/category/user-interface" title="View all posts in web UI" rel="category tag">web UI</a>, <a href="http://mikemadaio.com/blog/category/writing" title="View all posts in writing" rel="category tag">writing</a> <strong>|</strong>   <a href="http://mikemadaio.com/blog/i-wrote-an-article#comments" title="Comment on Article: Preparing For Widescreen">2 Comments &#187;</a></p>

<!--
	<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
			xmlns:dc="http://purl.org/dc/elements/1.1/"
			xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
		<rdf:Description rdf:about="http://mikemadaio.com/blog/i-wrote-an-article"
    dc:identifier="http://mikemadaio.com/blog/i-wrote-an-article"
    dc:title="Article: Preparing For Widescreen"
    trackback:ping="http://mikemadaio.com/blog/i-wrote-an-article/trackback" />
</rdf:RDF>	-->
</div>


<!-- You can start editing here. -->

	<h3 id="comments">2 Responses to &#8220;Article: Preparing For Widescreen&#8221;</h3>

	<div class="navigation">
		<div class="alignleft"></div>
		<div class="alignright"></div>
	</div>

	<ol class="commentlist">
			<li class="comment even thread-even depth-1" id="comment-219">
				<div id="div-comment-219" class="comment-body">
				<div class="comment-author vcard">
				<cite class="fn"><a href='http://loadaveragezero.com/' rel='external nofollow' class='url'>Douglas Clifton</a></cite> <span class="says">says:</span>		</div>

		<div class="comment-meta commentmetadata"><a href="http://mikemadaio.com/blog/i-wrote-an-article#comment-219">
			March 28, 2006 at 11:20 pm</a>		</div>

		<p>For the DWM article, the JavaScript code took some extra massaging. Keep in mind this is for the &#8220;mini&#8221; demo&#8211;not the full blown technique.</p>
<pre>
function miniStyle(z) {

 var i, l, t, v;
 for (i = 0; l = document.getElementsByTagName('link')[i]; i++) {
  if (l.getAttribute('rel').indexOf('stylesheet') != -1) {
   t = l.getAttribute('title');
   if (t &amp;&amp; t.indexOf('Mini') != -1) {
    if (l.getAttribute('href').indexOf(z) != -1) l.disabled = false;
    else l.disabled = true;
   }
  }
 }
 switch(z) {
  case 'minihuge':
   v = '1280x1024 and up';
   break;
  case 'minibig':
   v = '1024x768';
   break;
  default:
   v = '800x600';
 }
 document.getElementById('minisize').innerHTML = v;
 return false;
}

function addLoadEvent(f) {
 var o = window.onload;
 if (typeof window.onload != 'function') window.onload = f;
 else {
  window.onload = function() {
   o();
   f();
  }
 }
}
</pre>

		<div class="reply">
				</div>
				</div>
		</li>
		<li class="pingback odd alt thread-odd thread-alt depth-1" id="comment-25165">
				<div id="div-comment-25165" class="comment-body">
				<div class="comment-author vcard">
				<cite class="fn"><a href='http://www.laburno.net/2007/09/17/progettare-un-layout-a-prova-di-widescreen/' rel='external nofollow' class='url'>Progettare un layout a prova di Widescreen - Laburno</a></cite> <span class="says">says:</span>		</div>

		<div class="comment-meta commentmetadata"><a href="http://mikemadaio.com/blog/i-wrote-an-article#comment-25165">
			September 16, 2007 at 10:06 pm</a>		</div>

		<p>[...] Preparing for Widescreen &#8211; Mike Mandaio. Sul blog dell&#8217;autore c&#8217;è una correzione successiva riguardo al javascript utilizzato. [...]</p>

		<div class="reply">
				</div>
				</div>
		</li>
	</ol>

	<div class="navigation">
		<div class="alignleft"></div>
		<div class="alignright"></div>
	</div>
 


      


</div>

</div>

<DIV ID="bottom"> <IMG SRC="/images/bottom_left.gif" WIDTH=23 HEIGHT=15 ID="bleft"><IMG SRC="/images/bottom_right.gif" WIDTH=19 HEIGHT=15 ID="bright"></DIV>

<div id="footer">
	<p>
		Mike Madaio is proudly powered by
		<a href="http://wordpress.org">WordPress</a>.<br />Subscribe to <a href="http://feeds.feedburner.com/MikeMadaio">Entries (RSS Feed)</a>.
		<!-- 19 queries. 0.263 seconds. -->
	</p>
<!-- Creative Commons License -->
			<br /><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.gif" /></a>
				<!-- /Creative Commons License -->
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-171793-2";
urchinTracker();
</script>
<!--<script type='text/javascript' src='http://track3.mybloglog.com/js/jsserv.php?mblID=2007032622245640'></script>-->
<div id="sk2-footer" style="color:#FFF; background-color:#444; padding: 3px 2px 3px 2px; border-top: #888 solid 1px;">This blog is protected by <a href="http://unknowngenius.com/blog/" title="Dave">dr Dave</a>'s <strong><a href="http://unknowngenius.com/blog/wordpress/spam-karma/" title="SK2">Spam Karma 2</a></strong>: <strong>259375</strong>  Spams eaten and counting...</div></body>
</html>
