<?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>FlavioMuniz » Blog &#187; Css</title>
	<atom:link href="http://flaviomuniz.com/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://flaviomuniz.com/blog</link>
	<description>Simples assim</description>
	<lastBuildDate>Sat, 31 Jul 2010 00:50:16 +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>Cookie com jQuery</title>
		<link>http://flaviomuniz.com/blog/cookie-com-jquery/</link>
		<comments>http://flaviomuniz.com/blog/cookie-com-jquery/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 14:28:41 +0000</pubDate>
		<dc:creator>flaviomuniz</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[cookie]]></category>

		<guid isPermaLink="false">http://flaviomuniz.com/blog/?p=358</guid>
		<description><![CDATA[Olá, hoje vou mostrar como é simples trabalhar com cookie usando a jQuery. Primeiro, vamos baixar o framework ja na nova versão 1.4 e o jquery.cookie. Pronto, ja tendo os plugins, vamos por a mão na massa. Abaixo no código, as linhas do js estão comentadas de acordo com a sua ação, não tem segredo,]]></description>
			<content:encoded><![CDATA[<p>Olá, hoje vou mostrar como é simples trabalhar com cookie usando a jQuery.</p>
<p>Primeiro, vamos baixar o framework ja na nova versão <a href="http://code.jquery.com/jquery-1.4.2.min.js" target="blank">1.4</a> e o <a href="http://plugins.jquery.com/project/cookie" target="blank">jquery.cookie</a>.</p>
<p>Pronto, ja tendo os plugins, vamos por a mão na massa.<br />
Abaixo no código, as linhas do js estão comentadas de acordo com a sua ação,<br />
não tem segredo, não é copiar e colar, prestar atenção nos comentários e alem de tudo, entender.<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pt-BR"><br />
	<head><br />
		<title></title></p>
<div class="codecolorer-container javascript vibrant" style="overflow:auto;white-space:nowrap;width:700px;height:400px"><div class="javascript codecolorer" style="font-family:Monaco,Lucida Console,monospace">&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.4.2.min.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;http://stilbuero.de/jquery/cookie/jquery.cookie.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>script type<span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.<span class="me1">ready</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//Usamos a função find para buscar o &quot;a&quot; dentro da div &quot;link&quot; na ação do click</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;#link&quot;</span><span class="br0">&#41;</span>.<span class="me1">find</span><span class="br0">&#40;</span><span class="st0">&quot;a&quot;</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//Declaramos que idBg vai ter o mesmo valor do ID do link clicado</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> idBg <span class="sy0">=</span> $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">attr</span><span class="br0">&#40;</span><span class="st0">&quot;id&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//Setamos o cookie com o nome de bg_fundo e passamos o valor do idBg, expirando em 7 dias.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.<span class="me1">cookie</span><span class="br0">&#40;</span><span class="st0">&quot;bg_fundo&quot;</span><span class="sy0">,</span> <span class="st0">&quot;&quot;</span> <span class="sy0">+</span> idBg <span class="sy0">+</span> <span class="st0">&quot;&quot;</span><span class="sy0">,</span> <span class="br0">&#123;</span> expires<span class="sy0">:</span> <span class="nu0">7</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//Adicionamos uma classe ao body ou alguma div que você queira, passando o nome</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//do cookie que no nosso caso é o bg_fundo.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;body&quot;</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span>$.<span class="me1">cookie</span><span class="br0">&#40;</span><span class="st0">&quot;bg_fundo&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//Ao abrir a página ou recarregar, ele traz o cookie adicionando a classe bg_fundo.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;body&quot;</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span>$.<span class="me1">cookie</span><span class="br0">&#40;</span><span class="st0">&quot;bg_fundo&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;/</span>script<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /*Definimos a cor do bg em cada classe.*/<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .bg1 {background:#000000;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .bg2 {background:#00ff00;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .bg3 {background:#ff0000;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/style&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;link&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;javascript:void(0);&quot; id=&quot;bg1&quot;&gt;Background preto&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;javascript:void(0);&quot; id=&quot;bg2&quot;&gt;Background verde&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;javascript:void(0);&quot; id=&quot;bg3&quot;&gt;Background vermelho&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&lt;html&gt;</div></div>
<p><a href="http://www.flaviomuniz.com/demos/05/" target="blank">Veja o exemplo</a></p>
<p>Qualquer coisa, postem que eu tiro dúvidas.</p>
<p>Até a próxima.</p>
]]></content:encoded>
			<wfw:commentRss>http://flaviomuniz.com/blog/cookie-com-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>15 plugins da jquery que não podem faltar no seu projeto.</title>
		<link>http://flaviomuniz.com/blog/15-plugins-da-jquery-que-nao-podem-faltar-no-seu-projeto/</link>
		<comments>http://flaviomuniz.com/blog/15-plugins-da-jquery-que-nao-podem-faltar-no-seu-projeto/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 16:46:09 +0000</pubDate>
		<dc:creator>flaviomuniz</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://flaviomuniz.com/blog/?p=235</guid>
		<description><![CDATA[Lightbox; http://leandrovieira.com/projects/jquery/lightbox/ Accordion; http://bassistance.de/jquery-plugins/jquery-plugin-accordion/ Form Validate; http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Pagination; http://plugins.jquery.com/project/pagination DataTables http://www.datatables.net/examples/example_zero_config.html Jquery Flash http://jquery.lukelutman.com/plugins/flash/ jCarrousel http://sorgalla.com/jcarousel/ Stylish Select Box http://www.scottdarby.com/2009/05/jquery-plugin-stylish-select-unobstrusive-select-box-replacement/ Feature List http://jqueryglobe.com/article/feature-list Masked Input http://digitalbush.com/projects/masked-input-plugin/ Password Strength Meter http://mypocket-technologies.com/jquery/password_strength/ Custom Check Box and Radio Buttons http://mypocket-technologies.com/jquery/cust_radio_buttons/ AutoComplete http://dyve.net/jquery/?autocomplete DatePicker http://www.jqueryui.com/demos/datepicker/ File Upload http://www.fyneworks.com/jquery/multiple-file-upload/ Ta ai, alguns plugins que não podem faltar nos nossos projetos.]]></description>
			<content:encoded><![CDATA[<p>Lightbox;<br />
<a href="http://leandrovieira.com/projects/jquery/lightbox/" target="blank">http://leandrovieira.com/projects/jquery/lightbox/</a></p>
<p>Accordion;<br />
<a href="http://bassistance.de/jquery-plugins/jquery-plugin-accordion/" target="blank">http://bassistance.de/jquery-plugins/jquery-plugin-accordion/</a></p>
<p>Form Validate;<br />
<a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="blank">http://bassistance.de/jquery-plugins/jquery-plugin-validation/</a></p>
<p>Pagination;<br />
<a href="http://plugins.jquery.com/project/pagination" target="blank">http://plugins.jquery.com/project/pagination</a></p>
<p>DataTables<br />
<a href="http://www.datatables.net/examples/example_zero_config.html" target="blank">http://www.datatables.net/examples/example_zero_config.html</a></p>
<p>Jquery Flash<br />
<a href="http://jquery.lukelutman.com/plugins/flash/" target="blank">http://jquery.lukelutman.com/plugins/flash/</a></p>
<p>jCarrousel<br />
<a href="http://sorgalla.com/jcarousel/" target="blank">http://sorgalla.com/jcarousel/</a></p>
<p>Stylish Select Box<br />
<a href="http://www.scottdarby.com/2009/05/jquery-plugin-stylish-select-unobstrusive-select-box-replacement/" target="blank">http://www.scottdarby.com/2009/05/jquery-plugin-stylish-select-unobstrusive-select-box-replacement/</a></p>
<p>Feature List<br />
<a href="http://jqueryglobe.com/article/feature-list" target="blank">http://jqueryglobe.com/article/feature-list</a></p>
<p>Masked Input<br />
<a href="http://digitalbush.com/projects/masked-input-plugin/" target="blank">http://digitalbush.com/projects/masked-input-plugin/</a></p>
<p>Password Strength Meter<br />
<a href="http://mypocket-technologies.com/jquery/password_strength/" target="blank">http://mypocket-technologies.com/jquery/password_strength/</a></p>
<p>Custom Check Box and Radio Buttons<br />
<a href="http://mypocket-technologies.com/jquery/cust_radio_buttons/" target="blank">http://mypocket-technologies.com/jquery/cust_radio_buttons/</a></p>
<p>AutoComplete<br />
<a href="http://dyve.net/jquery/?autocomplete" target="blank">http://dyve.net/jquery/?autocomplete</a></p>
<p>DatePicker<br />
<a href="http://www.jqueryui.com/demos/datepicker/" target="blank">http://www.jqueryui.com/demos/datepicker/</a></p>
<p>File Upload<br />
<a href="http://www.fyneworks.com/jquery/multiple-file-upload/" target="blank">http://www.fyneworks.com/jquery/multiple-file-upload/</a></p>
<p>Ta ai, alguns plugins que não podem faltar nos nossos projetos.<br />
Até a próxima.</p>
<p class="error"><strong>[ad]</strong> Empty ad slot (#2)!</p>
]]></content:encoded>
			<wfw:commentRss>http://flaviomuniz.com/blog/15-plugins-da-jquery-que-nao-podem-faltar-no-seu-projeto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
