<?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>PortFolio Shaion</title>
	<atom:link href="http://shaion.me/feed" rel="self" type="application/rss+xml" />
	<link>http://shaion.me</link>
	<description></description>
	<lastBuildDate>Sat, 28 Aug 2010 21:49:11 +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>Background animé sur un menu</title>
		<link>http://shaion.me/background-anime-sur-un-menu.html</link>
		<comments>http://shaion.me/background-anime-sur-un-menu.html#comments</comments>
		<pubDate>Sat, 21 Aug 2010 17:36:03 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[Tutoriels]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=161</guid>
		<description><![CDATA[Vous souhaitez créer un menu un peu stylé, animé avec du Jquery ? C&#8217;est possible =) ! Pour commencer nous allons créer la partie html, rien de compliqué, une liste comme on en voit beaucoup. 123456&#60;ul class=&#34;list&#34;&#62; &#160;&#60;li&#62;&#60;a href=&#34;#&#34;&#62;Menu 1&#60;/a&#62;&#60;/li&#62; &#160;&#60;li&#62;&#60;a href=&#34;#&#34;&#62;Menu 2&#60;/a&#62;&#60;/li&#62; &#160;&#60;li&#62;&#60;a href=&#34;#&#34;&#62;Menu 3&#60;/a&#62;&#60;/li&#62; &#160;&#60;li&#62;&#60;a href=&#34;#&#34;&#62;Menu 4&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; Ensuite nous allons faire le [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-204" title="bganimate" src="http://shaion.me/wp-content/uploads/2010/08/bganimate1.png" alt="" width="600" height="143" /></p>
<p>Vous souhaitez créer un menu un peu stylé, animé avec du Jquery ? C&#8217;est possible =) !</p>
<p>Pour commencer nous allons créer la partie html, rien de compliqué, une liste comme on en voit beaucoup.<br />
<span id="more-161"></span></p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;list&quot;</span>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Menu 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Menu 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Menu 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Menu 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>Ensuite nous allons faire le css de ce menu :</p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.list<span style="color: #00AA00;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
<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><br />
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">650px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.list</span> li a<span style="color: #00AA00;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">150px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
<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>images/fond1.jpg<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>L&#8217;image que vous allez donc créer pour ce fond, sera de la hauteur que vous le souhaitez mais de 150 pixels de large comme un lien dans le menu.<br />
Dans cette image vous aller faire une première partie qui fait 40 pixels de hauteur, un fond orange simple par exemple. Puis vous allez sur le reste de la hauteur (dépendant de la hauteur que vous aurez choisie) faire un dégradé, un motif, peu importe, tant que ça vous ressemble <img src='http://shaion.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Pour ma part ça ressemblera à ça :</p>
<p><img src="http://shaion.me/wp-content/uploads/2010/08/degrad.png" alt="" width="150" height="240" /></p>
<p>C&#8217;est clair c&#8217;est moche mais on s&#8217;en fou &gt;_&lt;.</p>
<p>Nous voilà pour la partie Jquery :</p>
<p>On importe Jquery (pour ce tutoriel je vous déconseillerais de le prendre depuis google parce que nous allons importer un plugin Jquery.<br />
Puis nous créons un fichier list.js que nous importons aussi :<br />
A mettre au préalable dans un dossier js évidemment.</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/jquery.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span> <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/list.js &quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>Ensuite nous collons ce <a href="http://plugins.jquery.com/files/jquery.backgroundPosition.js_7.txt" target="_blank">bout de script</a> (servant à l&#8217;animation du background) à la fin de Jquery.js.</p>
<p>Voilà la dernière partie Jquery (list.js) :</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</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><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.list li a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseover</span><span style="color: #009900;">&#40;</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><br />
$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0px -200px&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #006600; font-style: italic;">// &quot;-200px&quot; par ce que mon image de fond en fait 240 et que notre menu en prend 40.</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.list li a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseout</span><span style="color: #009900;">&#40;</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><br />
$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0px 0px&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Nous pouvons ajouter &laquo;&nbsp;.stop()&nbsp;&raquo; avant &laquo;&nbsp;.animate()&nbsp;&raquo; ce qui permet de stopper l&#8217;animation quand on passe assez vite d&#8217;un lien à un autre, mais d&#8217;après un ami ceci bloque l&#8217;animation sous chrome.</p>
<p>A vous de choisir <img src='http://shaion.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  !</p>
<p>Bon utilisation <img src='http://shaion.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  !</p>
<p style="text-align: center;"><a title="Démo" href="http://shaion.me/Demo/menu.html" target="_blank">Démo</a> &#8211; <a href="http://shaion.me/wp-content/uploads/2010/08/Demo-Menu.zip">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/background-anime-sur-un-menu.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Version Mobile</title>
		<link>http://shaion.me/version-mobile.html</link>
		<comments>http://shaion.me/version-mobile.html#comments</comments>
		<pubDate>Sat, 21 Aug 2010 13:04:29 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Version]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=157</guid>
		<description><![CDATA[Bonjour, je viens de passer le site en version mobile, pour pourrez donc accéder au site avec votre smartphone, la plus part sont integrés, si jamais ça ne fonctionne pas avec le votre, merci de me faire signe pour que je modifie le code. A++ Shaion.]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-208" title="smartphone" src="http://shaion.me/wp-content/uploads/2010/08/smartphone1.png" alt="" width="600" height="143" />Bonjour, je viens de passer le site en version mobile, pour pourrez donc accéder au site avec votre smartphone, la plus part sont integrés, si jamais ça ne fonctionne pas avec le votre, merci de me faire signe pour que je modifie le code.</p>
<p>A++ Shaion.</p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/version-mobile.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Site complet pour icônes web en tout genre</title>
		<link>http://shaion.me/site-complet-pour-icones-web-en-tout-genre.html</link>
		<comments>http://shaion.me/site-complet-pour-icones-web-en-tout-genre.html#comments</comments>
		<pubDate>Wed, 18 Aug 2010 22:32:18 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[Actu & Design]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[pack]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=152</guid>
		<description><![CDATA[Voici un petit site que j&#8217;aime beaucoup, un site complet pour tous les icônes que vous souhaitez ! Je tenais à le faire partager, plutôt que de vous laissez chercher sur google ou l&#8217;on trouve pas toujours ce que l&#8217;on souhaite ^^&#8217; ! Lien&#8230;]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-210" title="icon" src="http://shaion.me/wp-content/uploads/2010/08/icon.png" alt="" width="600" height="143" />Voici un petit site que j&#8217;aime beaucoup, un site complet pour tous les icônes que vous souhaitez !</p>
<p>Je tenais à le faire partager, plutôt que de vous laissez chercher sur google ou l&#8217;on trouve pas toujours ce que l&#8217;on souhaite ^^&#8217; !</p>
<p><span id="more-152"></span><a href="http://www.iconspedia.com/">Lien</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/site-complet-pour-icones-web-en-tout-genre.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Compresser son css en php ?</title>
		<link>http://shaion.me/compresser-son-css-en-php.html</link>
		<comments>http://shaion.me/compresser-son-css-en-php.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 22:04:26 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[Actu & Design]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=141</guid>
		<description><![CDATA[En naviguant sur twitter (Je suppose que tu connais tout autant que moi ) j&#8217;ai trouvé une petite astuce twitter par Emob qui peut servir à tout le monde ! 123456789101112131415161718192021222324252627282930313233343536373839&#38;lt;?php # Gzip ob_start&#40;&#34;ob_gzhandler&#34;&#41;; # Header infos : set to a reasonable interval. I.e. 3600 (sec.) = 1 hr. $expire_offset_time = 3600*24*7; header&#40;'Content-type: text/css'&#41;; header&#40;'Cache-Control: [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-216" title="php2" src="http://shaion.me/wp-content/uploads/2010/08/php2.png" alt="" width="600" height="143" /></p>
<p>En naviguant sur twitter (Je suppose que tu connais tout autant que moi <img src='http://shaion.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) j&#8217;ai trouvé une petite astuce twitter par Emob qui peut servir à tout le monde <img src='http://shaion.me/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  !<span id="more-141"></span></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>?php<br />
<span style="color: #666666; font-style: italic;"># Gzip<br />
</span><a href="http://www.php.net/ob_start"><span style="color: #990000;">ob_start</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ob_gzhandler&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Header infos : set to a reasonable interval. I.e. 3600 (sec.) = 1 hr.<br />
</span><span style="color: #000088;">$expire_offset_time</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">3600</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">24</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">;</span><br />
<br />
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-type: text/css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Cache-Control: must-revalidate'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Expires: '</span> <span style="color: #339933;">.</span> <a href="http://www.php.net/gmdate"><span style="color: #990000;">gmdate</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'D, d M Y H:i:s'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$expire_offset_time</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' GMT'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Compress output<br />
</span><span style="color: #000000; font-weight: bold;">function</span> compress<span style="color: #009900;">&#40;</span><span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #666666; font-style: italic;">/* remove comments */</span><br />
<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'!/\*[^*]*\*+([^/][^*]*\*+)*/!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">/* remove spaces before / after delimiters */</span><br />
<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(:|;|}|{)( |\r|\t|\n)+/'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'/ ({|;)/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'$1'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">/* remove tabs, extra spaces, newlines, etc. */</span><br />
<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot; <span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">/* keep some readable content */</span><br />
<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'}'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;}<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$buffer</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Output buffering<br />
</span><a href="http://www.php.net/ob_start"><span style="color: #990000;">ob_start</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;compress&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Global includes<br />
</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;_layout/reset.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;_layout/layout.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;_layout/typo.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">/* etc … */</span><br />
<br />
<span style="color: #666666; font-style: italic;"># flush output to client<br />
</span><br />
<a href="http://www.php.net/ob_end_flush"><span style="color: #990000;">ob_end_flush</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Il existe de nombreuses astuces autour du développement CSS, et en  particulier avec PHP. Mais en général ce sont les mêmes qui reviennent, à  savoir <strong></strong></p>
<p><strong>ne faire qu&#8217;un appel de style css par page</strong> : idéalement regrouper tous les scripts en un via un peu de réécriture, et du php pour &laquo;&nbsp;merger&nbsp;&raquo; vos fichiers.<strong></strong></p>
<p><strong>forcer le cache</strong> des fichiers css via une date  d&#8217;expiration lointaine ; se passe via votre fichier htaccess, ou depuis  les headers php que vous pourrez renvoyer<strong></strong></p>
<p><strong>compresser</strong> vos fichier : des outils online le font  pour vous, mais il y a aussi la solution maison, et c&#8217;est ce qui nous  interesse dans ce billet !</p>
<p>etc &#8230;</p>
<p>Voilà pour les principales. Pour le détail de toutes les bonnes pratiques les plugins firefox <a title="Yslow" hreflang="fr" href="https://addons.mozilla.org/fr/firefox/addon/5369/" target="_tab">Yslow</a> et <a title="Page Speed" hreflang="fr" href="http://code.google.com/intl/fr/speed/page-speed/" target="_tab">Page Speed</a> vous feront un bon reporting ^^</p>
<p><a href="http://www.emob.fr/dotclear/compressez-vos-css-avec-php-2783" target="_blank"><strong>[source]</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/compresser-son-css-en-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>L&#8217;avenir de PHP vu par Wilfried Ceron</title>
		<link>http://shaion.me/lavenir-de-php-vu-par-wilfried-ceron.html</link>
		<comments>http://shaion.me/lavenir-de-php-vu-par-wilfried-ceron.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 17:25:40 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Yacodo]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=135</guid>
		<description><![CDATA[Voilà un petit interview de mon codeur préféré, Alias Yacodo, sujet plutôt intéressant  sur l&#8217;avenir du php et l&#8217;arrêt du développement de PHP6. L&#8217;avenir de PHP vu par Wilfried Ceron&#8230;]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-213" title="php" src="http://shaion.me/wp-content/uploads/2010/08/php.png" alt="" width="600" height="143" /></p>
<p>Voilà un petit interview de mon codeur préféré, Alias Yacodo, sujet plutôt intéressant  sur l&#8217;avenir du php et l&#8217;arrêt du développement de PHP6.</p>
<p><a href="http://blog.mageekbox.net/?post/2010/08/17/L-avenir-de-PHP-vu-par-Wilfried-Ceron">L&#8217;avenir de PHP vu par Wilfried Ceron</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/lavenir-de-php-vu-par-wilfried-ceron.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hadopi Song III: Vivre ou survivre</title>
		<link>http://shaion.me/hadopi-song-iii-vivre-ou-survivre.html</link>
		<comments>http://shaion.me/hadopi-song-iii-vivre-ou-survivre.html#comments</comments>
		<pubDate>Mon, 16 Aug 2010 19:29:50 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Hadopi]]></category>
		<category><![CDATA[musique]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=130</guid>
		<description><![CDATA[A l&#8217;heure ou Hadopi fait parler de plus en plus de lui, certain arrive à faire dériver la chose et rendre ça assez drôle.]]></description>
			<content:encoded><![CDATA[<p>A l&#8217;heure ou Hadopi fait parler de plus en plus de lui, certain arrive à faire dériver la chose et rendre ça assez drôle.</p>
<p><span id="more-130"></span></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/8x5lIN6oBuk&amp;feature=youtu.be" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/8x5lIN6oBuk&amp;feature=youtu.be" wmode="transparent"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/hadopi-song-iii-vivre-ou-survivre.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Centrer un bloc horizontalement et verticalement ?</title>
		<link>http://shaion.me/centrer-un-bloc-horizontalement-et-verticalement.html</link>
		<comments>http://shaion.me/centrer-un-bloc-horizontalement-et-verticalement.html#comments</comments>
		<pubDate>Mon, 16 Aug 2010 12:20:00 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[Actu & Design]]></category>
		<category><![CDATA[bloc]]></category>
		<category><![CDATA[Css]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=101</guid>
		<description><![CDATA[Beaucoup de personne cherche ce code. Même moi qui touche assez au css, j&#8217;ai jamais réellement réussi à le faire (pas vraiment eu besoin de le faire non plus), et à ce moment là je me suis senti bien con. Voici donc ce bout de code ! 123456789&#160; &#160; position: absolute; &#160; &#160; left: 50%; [...]]]></description>
			<content:encoded><![CDATA[<p>Beaucoup de personne cherche ce code. Même moi qui touche assez au css, j&#8217;ai jamais réellement réussi à le faire (pas vraiment eu besoin de le faire non plus), et à ce moment là je me suis senti bien con.</p>
<p><span id="more-101"></span>Voici donc ce bout de code <img src='http://shaion.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  !</p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30em</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30em</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-15em</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-15em</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#990</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/centrer-un-bloc-horizontalement-et-verticalement.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Les Sprites en CSS</title>
		<link>http://shaion.me/sprites-css.html</link>
		<comments>http://shaion.me/sprites-css.html#comments</comments>
		<pubDate>Mon, 16 Aug 2010 09:13:14 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[Actu & Design]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[sprite]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=89</guid>
		<description><![CDATA[Voici un superbe article sur les sprites en css, quelque chose que je devrais utilisé plus souvent pour éviter d&#8217;alourdir mes pages avec un trop plein d&#8217;image. Le lien&#8230;]]></description>
			<content:encoded><![CDATA[<p>Voici un superbe article sur les sprites en css, quelque chose que je devrais utilisé plus souvent pour éviter d&#8217;alourdir mes pages avec un trop plein d&#8217;image.</p>
<p><a href="http://www.alsacreations.com/tuto/lire/1068-sprites-css-background-position.html" target="_blank"> Le lien&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/sprites-css.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Azureus Rising</title>
		<link>http://shaion.me/azureus-rising.html</link>
		<comments>http://shaion.me/azureus-rising.html#comments</comments>
		<pubDate>Wed, 26 May 2010 20:48:03 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[Actu & Design]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[vidéo]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=66</guid>
		<description><![CDATA[Comme à mon habitude, je me baladais sur certains sites quelconque, quand je suis tombé sur cette superbe vidéo. à Voir Absolument]]></description>
			<content:encoded><![CDATA[<p>Comme à mon habitude, je me baladais sur certains sites quelconque, quand je suis tombé sur cette superbe vidéo.</p>
<p>à Voir Absolument</p>
<p><span id="more-66"></span></p>
<p><object width="630" height="379"><param name="movie" value="http://www.youtube.com/v/agk2svo7svI?fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/agk2svo7svI?fs=1" type="application/x-shockwave-flash" width="630" height="379" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/azureus-rising.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mega Drop Down Menu w/ CSS &amp; jQuery</title>
		<link>http://shaion.me/mega-drop-down-menu-w-css-jquery-2.html</link>
		<comments>http://shaion.me/mega-drop-down-menu-w-css-jquery-2.html#comments</comments>
		<pubDate>Sun, 23 May 2010 07:55:53 +0000</pubDate>
		<dc:creator>Shaion</dc:creator>
				<category><![CDATA[Actu & Design]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://shaion.me/?p=52</guid>
		<description><![CDATA[While in the process of redesigning 4wheelparts.com, I decided to explore new methods of working with our huge number of inventory and categories. I did some research and noticed a new trend for ecommerce sites in having what they call “mega drop down menus”. According to usability expert Jakob Nielson, mega drop down menus tested [...]]]></description>
			<content:encoded><![CDATA[<p>While in the process of redesigning 4wheelparts.com, I decided to  explore new methods of working with our huge number of inventory and  categories. I did some research and noticed a new trend for ecommerce  sites in having what they call “mega drop down menus”.</p>
<p>According to usability expert Jakob Nielson, mega drop down menus tested to be more efficient for large scale websites.I decided to experiment with different ways of implementing this technique and would like to share how I achieved this method.</p>
<p><span id="more-52"></span></p>
<p>Given that regular drop-down menus are rife with  usability problems, it takes a lot for me to recommend a new form of  drop-down. But, as our testing videos show, mega drop-downs overcome the  downsides of regular drop-downs. Thus, I can recommend one while  warning against the other.  – <a href="http://www.useit.com/alertbox/mega-dropdown-menus.html" target="_blank">Jakob Nielsen – Alert Box</a></p>
<p>As I read his article he recommended that these kind of drop down  menus should have a subtle time delay when hovering in and out of them. I  decided to use the <a href="http://cherne.net/brian/resources/jquery.hoverIntent.html" target="_blank">Hover Intent jQuery plugin</a> to help me achieve this effect.</p>
<p><a href="http://www.sohtanaka.com/web-design/mega-drop-downs-w-css-jquery/" target="_blank">Voir le tutoriel&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://shaion.me/mega-drop-down-menu-w-css-jquery-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
