<?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>(function() { &#187; css</title>
	<atom:link href="http://maxb.net/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://maxb.net/blog</link>
	<description>// MAXB.NET LABS</description>
	<lastBuildDate>Mon, 16 May 2011 19:12:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>black&#8217;n&#039;white 1.0</title>
		<link>http://maxb.net/blog/2008/06/17/blacknwhite/</link>
		<comments>http://maxb.net/blog/2008/06/17/blacknwhite/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 13:41:01 +0000</pubDate>
		<dc:creator>Massimiliano Balestrieri</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[blacknwhite]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://maxb.net/blog/?p=77</guid>
		<description><![CDATA[&#8230;because IE sucks. This plugin is a tribute to the &#8220;Firefox Download Day 2008&#8243;. This plugin helps people moving away from Internet Explorer turning the colors of your website to a grayscaled version (using a property of Explorer itself!). It &#8230; <a href="http://maxb.net/blog/2008/06/17/blacknwhite/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>&#8230;because IE sucks.</strong></p>
<p>This plugin is a tribute to the &#8220;Firefox Download Day 2008&#8243;.</p>
<p>This plugin helps people moving away from Internet Explorer turning the colors of your website to a grayscaled version (using a property of Explorer itself!).</p>
<p>It was written from an idea of <strong><a href="http://www.stuffandnonsense.co.uk/" target="_blank">Andy Clarke</a></strong> and a suggest of <strong><a href="http://www.eightballed.net" target="_blank">Simone Parato</a></strong></p>
<p><a href="/scripts/blacknwhite/blacknwhite.js" target="_blank">DOWNLOAD</a></p>
<pre class="brush: jscript; title: ; notranslate">
/*
 *
 * Black'n'White plugin 1.0
 * $Date: 2008-06-17 15:38:15 +0200 (mar, 17 giu 2008) $
 * $Rev: 177 $
 * @requires jQuery v1.2.6
 *
 * Copyright (c) 2008 Massimiliano Balestrieri
 * Examples and docs at: http://maxb.net/blog/
 * Licensed GPL licenses:
 * http://www.gnu.org/licenses/gpl.html
 *
 */

if(!window.BlacknWhite)
    var BlacknWhite = {};

BlacknWhite = {
    init     : function(options)
    {
        options = jQuery.extend({minor : 7}, options);

       	if(jQuery.browser.msie &amp;&amp; jQuery.browser.version &lt; options.minor)
        	jQuery("html").css("filter","gray");
    }
};

jQuery(document).ready(function(){
    BlacknWhite.init();
    //BlacknWhite.init({minor : 8});
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://maxb.net/blog/2008/06/17/blacknwhite/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>ie sucks – black’n&#8217;white</title>
		<link>http://maxb.net/blog/2008/06/17/ie-sucks-blacknwhite/</link>
		<comments>http://maxb.net/blog/2008/06/17/ie-sucks-blacknwhite/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 13:14:11 +0000</pubDate>
		<dc:creator>Massimiliano Balestrieri</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://maxb.net/blog/?p=73</guid>
		<description><![CDATA[Da un idea di Andy Clarke. Grazie alla segnalazione di Simone. Da oggi questo sito verrà visualizzato in bianco e nero da tutti gli utenti che utilizzano ancora internet explorer 6. Non ho la forza, ne la voglia di spiegare &#8230; <a href="http://maxb.net/blog/2008/06/17/ie-sucks-blacknwhite/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Da un idea di <a href="http://www.stuffandnonsense.co.uk/">Andy Clarke</a>. </p>
<p>Grazie alla segnalazione di <a href="http://www.eightballed.net">Simone</a>.</p>
<p>Da oggi questo sito verrà visualizzato in bianco e nero da tutti gli utenti che utilizzano ancora internet explorer 6.</p>
<p>Non ho la forza, ne la voglia di spiegare cosa non vada in ie. In ie6 come in ie7&#8230; e tra poco in ie8.</p>
<blockquote><p><strong>Internet explorer dovrebbe sparire. Ma questi sono sogni&#8230;</strong></p></blockquote>
<p>Per chi volesse aderire alla campagna &#8220;bianco e nero su ie&#8221; può usare un paio di tecniche.</p>
<p><strong>1) SOLUZIONE CSS PURA</strong></p>
<p><strong>Css (anche se un bel if IE senza troppi maggiori/minori&#8230;.):</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;!--[if lt IE 7]&gt;
&lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;ie6.css&amp;quot; type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&gt;&lt;/link&gt;
 &lt;![endif]--&gt;
</pre>
<p>e all&#8217;interno del css:</p>
<pre class="brush: css; title: ; notranslate">
html{filter:gray;}
</pre>
<p><strong>2) SOLUZIONE JS JQUERY</strong></p>
<p><strong>Js &#8211; dopo aver incluso la libreria <a href="http://jquery.com">jQuery</a>, in un tag &#8220;script&#8221; o in un js incluso inserire la seguente funzione</strong></p>
<pre class="brush: jscript; title: ; notranslate">
jQuery(document).ready(function(){
    if(jQuery.browser.msie &amp;&amp; jQuery.browser.version &lt; 7)
        jQuery("html").css("filter","gray");
});
</pre>
<p><strong>3) SOLUZIONE JS PURA</strong></p>
<pre class="brush: jscript; title: ; notranslate">
window.onload = function(){if(document.all)document.all.tags('html')[0].style.setAttribute('filter','gray()','false')};
</pre>
]]></content:encoded>
			<wfw:commentRss>http://maxb.net/blog/2008/06/17/ie-sucks-blacknwhite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

