<?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>Eliseos.net &#187; jQuery</title> <atom:link href="http://eliseos.net/category/jquery/feed/" rel="self" type="application/rss+xml" /><link>http://eliseos.net</link> <description>Wordpress, Diseño, jQuery and Coffee</description> <lastBuildDate>Mon, 26 Jul 2010 06:33:44 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Mostra tus imagenes de Tumblr via JSON</title><link>http://eliseos.net/mostra-imagenes-tumblr-via-json/</link> <comments>http://eliseos.net/mostra-imagenes-tumblr-via-json/#comments</comments> <pubDate>Thu, 24 Jun 2010 22:58:07 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Tumblr]]></category><guid
isPermaLink="false">http://eliseos.net/?p=3032</guid> <description><![CDATA[Seguramente muchos de ustedes están familiarizados o cuenta con un Tumblr Blog, la plataforma relativamente nueva que nos permite bloggear de manera simple y rápida]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Seguramente muchos de ustedes estan familiarizados o cuenta con un <strong>Tumblr Blog</strong>, la plataforma relativamente nueva que nos permite bloggear de manera simple y rápida.</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2010/06/tumblr-API.gif" alt="tumblr API Mostra tus imagenes de Tumblr via JSON" title="tumblr API" width="600" height="250" class="alignnone size-full wp-image-3033" /></p><p
style="text-align: left;">Tumblr nos permite <strong>subir imágenes</strong> a su servidor y luego utilizarlas dentro de nuestro, siempre en Tumblr. Pero que sucede cuando queremos <strong>utilizar</strong> esas imágenes fuera de esa plataforma? La respuesta es simple: Debemos recurrir al método JSON para poder leer y acceder a las imágenes.</p><p
style="text-align: left;">Mediante <strong>jQuery</strong> podemos realizar un simple llamado para lograr lo que buscamos:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</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> 
  $.<span style="color: #660066;">getJSON</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://eliseos.tumblr.com/api/read/json?callback=?&quot;</span><span style="color: #339933;">,</span> 
  <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     $.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span>data.<span style="color: #660066;">posts</span>.<span style="color: #660066;">slice</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span>posts<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> type <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> photo <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;photo-url-75&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>type <span style="color: #339933;">===</span> <span style="color: #3366CC;">&quot;photo&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ul#tumblr'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;li&gt;&lt;img src=&quot;'</span> <span style="color: #339933;">+</span> photo <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; <span style="color: #000099; font-weight: bold;">\/</span>&gt;&lt;<span style="color: #000099; font-weight: bold;">\/</span>li&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p
style="text-align: left;">Solo resta que introduzcas tu usuario en la linea <strong>2</strong> y que establezcas que imagen querés utilizar. Recordá que Tumblr permite usar imágenes en <strong>75px, 100x, 250px, 400px y 500px</strong> respectivamente; por lo que podes ajustar el valor a utilizar en la linea <strong>6</strong>.</p><p
style="text-align: left;">Este llamado solo mostrara las ultimas <strong>10 imágenes</strong>, si necesitas cambiar el valor lo podes hacer especificando la cantidad de imágenes a mostrar en la linea <strong>4</strong>.</p><p
style="text-align: left;">Ahora solo resta el llamado correspondiente dentro de nuestro <strong>HTML</strong></p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tumblr&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div><p
style="text-align: left;">Esta es una opción si utiliza Tumblr a modo de Portfolio y querés mostrar tus ultimas creaciones en otra plataforma, o simplemente hacer uso de algunas fotos en concreto.</p><p
style="text-align: left;">Modificado desde <a
href="http://jsdo.it/sw_lucchini/tumblr">Js do.it</a></p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/mostra-imagenes-tumblr-via-json/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>jTweetsAnywhere: Un widget para integrar @anywhere</title><link>http://eliseos.net/jtweetsanywhere-widget-integrar-anywhere/</link> <comments>http://eliseos.net/jtweetsanywhere-widget-integrar-anywhere/#comments</comments> <pubDate>Fri, 11 Jun 2010 00:35:06 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[twitter]]></category><guid
isPermaLink="false">http://eliseos.net/?p=3004</guid> <description><![CDATA[jTweetsAnywhere es un plugin que mezcla las bondades de jQuery y @anywhere para poder integrar todos los servicios que el API de @anywhere nos ofrece. Con unas simples lineas de código tendremos un Widget corriendo y funcional]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="jTweetsAnywhere" href="http://thomasbillenstein.com/jTweetsAnywhere/">jTweetsAnywhere</a> es un plugin que mezcla las bondades de <strong>jQuery</strong> y @anywhere para poder integrar todos los servicios que el API de @anywhere nos ofrece. Con unas simples lineas de código tendremos un <strong>Widget</strong> corriendo y funcional.</p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-3005" title="jTweetsAnywhere" src="http://eliseos.net/wp-content/uploads/2010/06/jTweetsAnywhere.jpg" alt="jTweetsAnywhere jTweetsAnywhere: Un widget para integrar @anywhere" width="600" height="250" /></p><p><span
id="more-3004"></span></p><p
style="text-align: left;">Su principal característica por llamarla de algun modo es la que ofrecer un paquete en el que podemos, por ejemplo mostrar nuestros Tweets, mostrar resultados de una búsqueda, integrar/mostrar un Tweetbox, mostrar el botón de Twitter Connect y autentificar usuarios de manera segura via el API.</p><p
style="text-align: left;">Su uso es de lo mas simple, una vez integrados los archivos necesarios solo debemos hacer el llamado correspondiente:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#twts'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jTweetsAnywhere</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
    username<span style="color: #339933;">:</span> <span style="color: #3366CC;">'tbillenstein'</span><span style="color: #339933;">,</span>
    count<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">jTweetsAnywhere cuenta con muchas opciones y servicios, por lo cual te recomiendo que veas la pagina con todos los ejemplos para ver como se comporta este plugin.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/jtweetsanywhere-widget-integrar-anywhere/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Redescubre el atributo Hover</title><link>http://eliseos.net/redescubre-atributo-hover/</link> <comments>http://eliseos.net/redescubre-atributo-hover/#comments</comments> <pubDate>Sat, 08 May 2010 02:55:56 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Diseño]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2953</guid> <description><![CDATA[La idea detrás de HoverAttribute es brindar un poco mas información inline a nuestros usuarios mediante el hovering y tomando el atributo del tag &#60;a&#62;  y mostrándolo]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">La idea detrás de <a
title="HoverAttribute jQuery plugin" href="http://www.afekenholm.se/hoverattribute-jquery-plugin/">HoverAttribute</a> es brindar un poco mas información <strong>inline</strong> a nuestros usuarios mediante el <strong>hovering</strong> y tomando el atributo del tag <em><code>&lt;a&gt;</code></em> y mostrándolo. En otras palabras que al posicionarnos sobre el link podamos ver inline la URI del link que se hace referencia.</p><p
style="text-align: center;"><a
href="http://www.afekenholm.se/hoverattribute-jquery-plugin/"><img
class="alignnone size-full wp-image-2954" title="HoverAttribute" src="http://eliseos.net/wp-content/uploads/2010/05/HoverAttribute.jpg" alt="HoverAttribute Redescubre el atributo Hover" width="500" height="250" /></a></p><p><span
id="more-2953"></span></p><p
style="text-align: left;">Quizás suena un tanto confuso de explicar por lo creo que es mejor dirigirse a la pagina del plugin para poder apreciar el efecto.Las funcionalidades de este plugin nos permiten que en el hovering se muestre el atributo <em><code>href</code></em> o <em><code>title</code></em>, segun nuestras necesidades y poder controlar también (un poco) la animación.</p><p
style="text-align: left;">Otra de sus opciones es la de poder resaltar un parte de la URI, ideal para cuando queremos centrar la atención en una sección importante de la URI. También limitar el numero de caracteres en la URI a mostrar, algo pensado para cuando nos referimos a la URI de una búsqueda.</p><h2>Uso</h2><p
style="text-align: left;">HoverAttribute cuenta con un puñado de opciones para confiurar, entre ellas se encunetra:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.mi_selector&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hoverAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
   attribute<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// atributo a mostrar, puede ser cualquier atributo</span>
   animationTime<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.3</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// tiempo de la animación</span>
   animationEase<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// easing en al animacion, puede ser linear o swing</span>
   tweenInFrom<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;left&quot;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// posicion de la animacion, right, left etc.</span>
   parseAsURL<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// true y el elemento es tratado como URI</span>
   removeProtocol<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">// remover el protocolo en URI por ej: http://</span>
   removeWWW<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// remover www de la URI</span>
   wrapLink<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;after&quot;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// recortar caracteres, puede ser desdde after, middle, before o none</span>
   wrapLength<span style="color: #339933;">:</span> <span style="color: #CC0000;">60</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//  cantidad de caracteres en la URI</span>
   highlightURLPart<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;host&quot;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// texto a resaltar, domain path, query o lastURIPart</span>
   cssSettings<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
      canExpandFullWidth<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span> <span style="color: #006600; font-style: italic;">// expandir al 100% dentro del elemento padre</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://eliseos.net/redescubre-atributo-hover/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Crear multiples columnas de una misma lista</title><link>http://eliseos.net/crear-multiples-columnas-de-una-misma-lista/</link> <comments>http://eliseos.net/crear-multiples-columnas-de-una-misma-lista/#comments</comments> <pubDate>Fri, 30 Apr 2010 00:05:07 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2923</guid> <description><![CDATA[
Easy List Splitter es uno de esos plugins que a veces nos llegan del cielo. Seguramente más de una vez te habrá pasado que necesitas dividir o separar una lista en diferentes columnas]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="jQuery plugin: Easy List Splitter" href="http://www.madeincima.eu/blog/jquery-plugin-easy-list-splitter/">Easy List Splitter</a> es uno de esos plugins que a veces nos llegan del cielo. Seguramente más de una vez te habrá pasado que necesitas <strong>dividir o separar una lista</strong> en diferentes columnas, y la única solución es trabajar,como siempre con <strong>CSS</strong>.</p><p
style="text-align: center;"><a
href="http://www.madeincima.eu/blog/jquery-plugin-easy-list-splitter/"><img
src="http://eliseos.net/wp-content/uploads/2010/04/Easy-List-Splitter.jpg" alt="Easy List Splitter Crear multiples columnas de una misma lista" title="Easy List Splitter" width="500" height="289" class="alignnone size-full wp-image-2924" /></a></p><p><span
id="more-2923"></span></p><p
style="text-align: left;">Este pequeño plugin se encarga de hacer trabajo por nosotros, es decir creara la cantidad de columnas que se le indiquen devolviendo un código <em><code>HTML</code></em> valido y sin necesidad de añadir o modificar nuestro hoja de estilo, es decir no se añaden ningún tipo de elemento innecesario o elemento <em><code>inline</code></em>.</p><h2>Caracteristicas</h2><ul><li>Crea columnas a partir de listas ordenadas (<em><code>&lt;ol&gt;</code></em>) y desordenadas (<em><code>&lt;ul&gt;</code></em>)</li><li>Podemos definir la cantidad de columnas en las que se dividirá la lista</li><li>Todo lo referido al CSS es independiente del plugin (fácil de controlar)</li><li>Se añade un class <strong>last</strong> al ultimo <em><code>&lt;ol&gt;</code></em> o <em><code>&lt;ul&gt;</code></em> para controlar el <em><code>padding</code></em> o <em><code>margin</code></em></li><li>Podemos ordenar nuestras columnas vertical u horizontalmente</li></ul><h2>Uso</h2><p
style="text-align: left;">Como lo mencione anteriormente, su uso es de lo mas sencillo, por ejemplo podemos tener este markup:</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;my-list&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Lorem ipsum 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Donec pede 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Fringilla vel 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Eget arcu 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>In enim 5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Lorem farem 6<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div><p
style="text-align: left;">Para dividir nuestra lista en tres columnas diremos:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.my-list'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">easyListSplitter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> colNumber<span style="color: #339933;">:</span> <span style="color: #CC0000;">3</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Lo que nos mostrar esta nueva lista</p><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">list item 1      list item 4      list item 7
list item 2      list item 5      list item 8
list item 3      list item 6</pre></div></div><p
style="text-align: left;">Por defecto la alineación es vertical, si necesitamos lograr una alineación horizontal, escribiremos:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.my-list'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">easyListSplitter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> 
   colNumber<span style="color: #339933;">:</span> <span style="color: #CC0000;">3</span><span style="color: #339933;">,</span> 
   direction<span style="color: #339933;">:</span> <span style="color: #3366CC;">'horizontal'</span> 
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Lo que se vera reflejado como:</p><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">list item 1      list item 2      list item 3      list item 4
list item 5      list item 6      list item 7      list item 8</pre></div></div><p
style="text-align: left;">Hermoso, no?</p><p
style="text-align: left;">En el site del plugin encontraras algunos ejemplos más, junto con toda la documentación necesaria para que puedas implementar este plugin en tu diseño</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/crear-multiples-columnas-de-una-misma-lista/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>equalWidths jQuery Plugin</title><link>http://eliseos.net/equalwidths-jquery-plugin/</link> <comments>http://eliseos.net/equalwidths-jquery-plugin/#comments</comments> <pubDate>Mon, 19 Apr 2010 23:00:40 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2886</guid> <description><![CDATA[Si algunas vez te ha tocado diseñar una barra de navegación te habrás encontrado en más de una ocasión con que es bastante tedioso lograr que cada elemento interno tenga el mismo ancho para lograr un efecto uniforme]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Si algunas vez te ha tocado diseñar una barra de navegación te habrás encontrado en más de una ocasión con que es bastante tedioso lograr que cada elemento interno tenga el mismo ancho para lograr un efecto uniforme. <a
title="equalWidths jQuery Plugin" href="http://aloestudios.com/tools/jquery/equalwidths/">equalWidths</a> es un plugin para <strong>jQuery</strong> que hace justamente eso, toma cada elemento seleccionado y le aplica un <em>width</em> uniforme.</p><p><span
id="more-2886"></span></p><p
style="text-align: left;">Es plugin esta pensado para lograr un <em>width</em> para los <em>child elements</em> (<em><code>&lt;li&gt;</code></em>) de una lista, ya sea ordenada (<em><code>&lt;ol&gt;</code></em>) o desordenada (<em><code>&lt;ul&gt;</code></em>), pero no se limita a estos elementos ya que podemos integrarlo con lo que necesitemos.</p><p
style="text-align: left;">En esta captura vemos como funciona el plugin:</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2010/04/equalWidths.jpg" alt="equalWidths equalWidths jQuery Plugin" title="equalWidths" width="500" height="250" class="alignnone size-full wp-image-2887" /></p><p
style="text-align: left;">Por defecto el plugin no eliminara el <strong>padding</strong> de nuestros elementos, pero si lo necesitamos se puede indicar que elimine el <strong>padding</strong> izquierdo, el derecho o ambos.</p><p
style="text-align: left;">Su uso es de lo mas simple. Tenemos 3 opciones:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ul#main-nav'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">equalWidths</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'stripPadding'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'child'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ul#main-nav'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">equalWidths</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'stripPadding'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'grand-child'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ul#main-nav'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">equalWidths</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'stripPadding'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'both'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Asumiendo que vamos a aplicar equalWidths a una lista (&lt;ul&gt;) con una estructura como la siguiente: <em><code>ul &gt; li &gt; a</code></em> Entonces el elemento &#8220;<strong>child</strong>&#8221; será <span
style="text-decoration: underline;">LI</span> y se eliminara su padding. El elemento &#8220;<strong>grand-child</strong>&#8221; sera <span
style="text-decoration: underline;">A</span> y se eliminara su padding. Y si seleccionamos &#8220;<strong>both</strong>&#8221; evidentemente, se eliminara el padding de ambos elementos.</p><p
style="text-align: left;">El plugin se encuentra en el código fuente de la pagina, pero te lo transcribo para que este más a mano:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">		<span style="color: #006600; font-style: italic;">/*!
		 * equalWidths jQuery Plugin
		 * Examples and documentation at: hhttp://aloestudios.com/tools/jquery/equalwidths/
		 * Copyright (c) 2010 Andy Ford
		 * Version: 0.1 (2010-04-13)
		 * Dual licensed under the MIT and GPL licenses:
		 * http://www.opensource.org/licenses/mit-license.php
		 * http://www.gnu.org/licenses/gpl.html
		 * Requires: jQuery v1.2.6+
		 */</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>
			$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">equalWidths</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #003366; font-weight: bold;">var</span> opts <span style="color: #339933;">=</span> $.<span style="color: #660066;">extend</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
					stripPadding<span style="color: #339933;">:</span> <span style="color: #3366CC;">'none'</span> <span style="color: #006600; font-style: italic;">// options: 'child', 'grand-child', 'both'</span>
				<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</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>
					<span style="color: #003366; font-weight: bold;">var</span> child_count <span style="color: #339933;">=</span> $<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;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>child_count <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// only proceed if we've found any children</span>
						<span style="color: #003366; font-weight: bold;">var</span> w_parent <span style="color: #339933;">=</span> $<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;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #003366; font-weight: bold;">var</span> w_child <span style="color: #339933;">=</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>w_parent <span style="color: #339933;">/</span> child_count<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #003366; font-weight: bold;">var</span> w_child_last <span style="color: #339933;">=</span> w_parent <span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span> w_child <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span>child_count <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$<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;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'width'</span> <span style="color: #339933;">:</span> w_child <span style="color: #339933;">+</span> <span style="color: #3366CC;">'px'</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$<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;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':last-child'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'width'</span> <span style="color: #339933;">:</span> w_child_last <span style="color: #339933;">+</span> <span style="color: #3366CC;">'px'</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>opts.<span style="color: #660066;">stripPadding</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'child'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span>opts.<span style="color: #660066;">stripPadding</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'both'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
							$<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;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
								<span style="color: #3366CC;">'padding-right'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'0'</span><span style="color: #339933;">,</span>
								<span style="color: #3366CC;">'padding-left'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'0'</span>
							<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span>
						<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>opts.<span style="color: #660066;">stripPadding</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'grand-child'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span>opts.<span style="color: #660066;">stripPadding</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'both'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
							$<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;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
								<span style="color: #3366CC;">'padding-right'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'0'</span><span style="color: #339933;">,</span>
								<span style="color: #3366CC;">'padding-left'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'0'</span>
							<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
		$<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>
&nbsp;
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#ejemplo-2'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">equalWidths</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// config por defecto</span>
&nbsp;
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#ejemplo-3'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">equalWidths</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'stripPadding'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'both'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//sin padding</span>
&nbsp;
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Este es un plugin que te solucionara muchos problemas en unas simples lineas, y hará que tu barra de navegación se luzca todavía más.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/equalwidths-jquery-plugin/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>jQuery.popeye: Un Slider inline para tus entradas</title><link>http://eliseos.net/jquery-popeye-slider-inline-entradas/</link> <comments>http://eliseos.net/jquery-popeye-slider-inline-entradas/#comments</comments> <pubDate>Wed, 14 Apr 2010 22:28:35 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[slider]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2851</guid> <description><![CDATA[jQuery.popeye es un Slider/Galería potenciado por jQuery que a diferencia de otros competidores esta pensado para mostrar imágenes de manera inline con el animo de ahorrar espacio. ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="jQuery popeye" href="http://dev.herr-schuessler.de/jquery/popeye/index.html">jQuery.popeye</a> es un Slider/Galería potenciado por <strong>jQuery</strong> que a diferencia de otros competidores esta pensado para mostrar imágenes de manera <em><code>inline</code></em> con el animo de ahorrar espacio. Es posible que que hayas visto algo similar en algún periódico online, donde el espacio es muy preciado y es necesario mostrar un conjunto de imágenes dentro de la entrada.</p><p
style="text-align: center;"><a
href="http://dev.herr-schuessler.de/jquery/popeye/index.html"><img
class="alignnone size-full wp-image-2852" title="jQuery popeye" src="http://eliseos.net/wp-content/uploads/2010/04/jQuery.popeye.jpg" alt="jQuery.popeye jQuery.popeye: Un Slider inline para tus entradas" width="500" height="250" /></a></p><p><span
id="more-2851"></span></p><p
style="text-align: left;">Debo decir que esta galería es extremamente fácil de implementar y ajustar a nuestras necesidades. jQuery.popeye toma las capturas y links proporcionados y rápidamente los transforma en un Slider/Galería.</p><h2>Uso básico</h2><p
style="text-align: left;">Su estructura es muy simple de comprender, por ejemplo podes escribir:</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ppy-imglist&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;URI_de_la_imagen&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;URI_de_la_Captura&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ppy-extcaption&quot;</span>&gt;</span>
            Textto a modo de introducción
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div><p
style="text-align: left;">Luego iniciar la librería:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</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>
    <span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
        caption<span style="color: #339933;">:</span>    <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
        navigation<span style="color: #339933;">:</span> <span style="color: #3366CC;">'permanent'</span><span style="color: #339933;">,</span>
        direction<span style="color: #339933;">:</span>  <span style="color: #3366CC;">'left'</span>
    <span style="color: #009900;">&#125;</span>
    $<span style="color: #009900;">&#40;</span>ID_del_Selector<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">popeye</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Como veras es muy simple de integrar y la cantidad de opciones que se nos proporcionan son mas que suficientes. Por ejemplo podemos controlar el menu de navegación, mostrar o no mostrar una introducción a la imagen, decidir de que lado se abrirá el menu del Slider; y mucho mas.</p><p
style="text-align: left;">No te olvides de visitar <a
title="jQuery popeye Demo" href="http://dev.herr-schuessler.de/jquery/popeye/demo.html">los demos de este Slider</a> donde encontraras mas detalles de como personalizar y modificar este librería.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/jquery-popeye-slider-inline-entradas/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Menu en el Footer al estilo Tumblr</title><link>http://eliseos.net/menu-footer-estilo-tumblr/</link> <comments>http://eliseos.net/menu-footer-estilo-tumblr/#comments</comments> <pubDate>Tue, 23 Mar 2010 07:04:48 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[hack]]></category> <category><![CDATA[menu]]></category> <category><![CDATA[Tumblr]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2792</guid> <description><![CDATA[Hoy quería compartir una técnica muy sencilla pero muy poco implementada. Asumo que alguno de ustedes son usuarios de esa Maravillosa plataforma, de Tumblr, por supuesto estoy hablando]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Hoy quería compartir una técnica muy sencilla pero muy poco implementada. Asumo que alguno de ustedes son usuarios de esa Maravillosa plataforma, de <strong>Tumblr</strong>, por supuesto estoy hablando. Cuando nos encontramos en el <strong>Dashboard</strong> en el <em>footer</em> se encuentra un menú que solo es visible cuando posicionamos el <strong>mouse</strong> sobre él.</p><p
style="text-align: center;"><a
href="http://eliseos.net/test/tumblr_footer/"><img
src="http://eliseos.net/wp-content/uploads/2010/03/tumblr_menu.jpg" alt="tumblr menu Menu en el Footer al estilo Tumblr" title="Menu en el Footer al estilo Tumblr" width="500" height="250" class="alignnone size-full wp-image-2796" /></a></p><p
style="text-align: left;">A mi entender es un técnica muy buena para cuando disponemos de muy poco espacio y queremos añadir un poco más de funcionalidad a nuestro diseño.</p><h2>Demo</h2><p
style="text-align: left;">Antes de empezar quizás quieras<a
href="http://eliseos.net/test/tumblr_footer/" title="Menu en el Footer al estilo Tumblr"> mirar un poco lo que vamos a crear</a>,  el demo para este ejemplo es bien sencillo y contundente.</p><h2>Introducción</h2><p
style="text-align: left;">Como ya lo remarque anteriormente esta es una técnica de lo mas sencilla que no te dará mayores complicaciones. Este footer al que hago referencia, se encuentra potenciado por jQuery (solo unas pocas lineas) y CSS.</p><h2>Markup</h2><p
style="text-align: left;">Para este ejemplo, me encuentro trabajando con una grilla, pero vos podes utilizarlo dentro de tu diseño sin problemas. La única parte que debe llamar tu atención es el footer que es lo que vamos a construir.  Para esto he creado el siguiente markup solo focalizandome en el footer</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;row container&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;column grid_12&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span><span style="color: #ddbb00;">&amp;copy;</span> Tumblr, Inc.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Help<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>About<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tumblr Themes&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Themes<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Meetups<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>What's New<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>API<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Content Policy<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Terms of Service<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Privacy Policy<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div><p
style="text-align: left;">En este caso he decido llamar el <em><code>container</code></em> footer, esto queda en vos, lo único importante es que debe ser el ultimo bloque antes de la etiqueta <em><code>body</code></em> para que el efecto funcione correctamente.</p><h2>CSS</h2><p
style="text-align: left;">Daré por sentado que ya sabemos como trabajar con listas y como darles formato, y pasare al bloque más importante</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">11px</span> <span style="color: #ff0000;">'Lucida Grande'</span><span style="color: #00AA00;">,</span>Verdana<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">700</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">80px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* centramos el texto verticalmente */</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">56px</span><span style="color: #00AA00;">;</span>
<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><span style="color: #ff0000;">&quot;/images/gradient.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #993333;">scroll</span> <span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">fixed</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* footer siempre visible */</span>
<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* footer siempre al pie */</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* 100% del viewport */</span>
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* sombras a modo de detalle */</span>
opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* nunca visible hasta activar el hover */</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">Como veras el código esta fuertemente comentado, lo único relevante es que estamos usando la posición <em><code>fixed</code></em> para que nuestro bloque este siempre visible y <em><code>bottom</code></em> en 0 para que se ubique al pie siempre. Luego liberamos cualquier margin que podamos haber heredado.</p><h2>jQuery</h2><p
style="text-align: left;">Como siempre la magia para el final. Lo que vamos a buscar es que el bloque este siempre oculto (anteriormente lo ocultamos en nuestro CSS) y que al posicionar el mouse sobre él este se muestre con un bonito efecto.</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</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>
&nbsp;
 $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#footer&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>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeTo</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">1.0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</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>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeTo</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0.0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;"> Cuando se hace <em><code>hover</code></em> la visibilidad del bloque se degrada desde 0 a 100 para lograr un lindo efecto. Esta es la pieza final de este pequeño rompecabezas</p><h2>Consideraciones Finales</h2><p
style="text-align: left;">EL contenido del bloque puede ser casi cualquiera, un guía de navegación, algunos anuncios de texto, lo que necesites incluir. Espero que este mini tutorial les sea de utilidad, cualquier duda no tienen mas que preguntar</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/menu-footer-estilo-tumblr/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Crea una barra para compartir tus entradas al estilo Mashable</title><link>http://eliseos.net/crea-barra-compartir-entradas-estilo-mashable/</link> <comments>http://eliseos.net/crea-barra-compartir-entradas-estilo-mashable/#comments</comments> <pubDate>Mon, 15 Mar 2010 20:16:31 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Destacadas]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2761</guid> <description><![CDATA[Ayer me preguntaban si conocía algún plugin o al por estilo para poder emular el comportamiento de la barra horizontal que acompaña a los post en Mashable. Esta barra se "mueve" a lo largo de la entrada acompañando al scroll y en la que se encuentran botones para]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Ayer me preguntaban si conocía algún plugin o al por estilo para poder emular el comportamiento de la barra horizontal que acompaña a los post en <a
href="http://mashable.com/">Mashable</a>. Esta barra se &#8220;mueve&#8221; a lo largo de la entrada acompañando al scroll y en la que se encuentran botones para socializar contenido, como ser Tweetmeme, Facebook, etc.</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2010/03/mashable.jpg" alt="mashable Crea una barra para compartir tus entradas al estilo Mashable" title="mashable" width="500" height="250" class="alignnone size-full wp-image-2763" /></p><p><span
id="more-2761"></span></p><p
style="text-align: left;">Sinceramente nunca le había prestado demasiada atención a esa barra, por la que me puse a investigar un poco mas sobre su comportamiento y como funciona. Después de mirar un poco pude recrear el efecto sin demasiadas complicaciones con un poco de CSS y jQuery.</p><p
style="text-align: left;">Surgieron dos alternativas, la replica exacta (solo me tome el trabajo de explicar el código) de Mashable y otro un poco mas simple.</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2010/03/Social-bar-al-estilo-Mashable.png" alt="Social bar al estilo Mashable Crea una barra para compartir tus entradas al estilo Mashable" title="Social bar al estilo Mashable" width="500" height="250" class="alignnone size-full wp-image-2762" /></p><p
style="text-align: left;">Si entramos a cualquier post en Mashable, veremos que la barra se acompaña al Scroll sin animaciones. Al usar valores negativos en el <em><code>margin</code></em>, esta barra no es visible en resoluciones menores (1024), por lo cual mediante <strong>jQuery </strong>se transforma en otra barra horizontal para mostrar el contenido; lo mismo sucede si redimencionamos la ventana.</p><p
style="text-align: left;">La alternativa mas simple ofrece las mismas funcionalidades y un efecto en el <em>scroll</em>, pero si te excedes en el <strong>viewport</strong>, los visitantes que tengan una resolución de pantalla menor, no podrán apreciarla. A que me refiero con el exceso en el <strong>viewport</strong>? Simple, si tu <em><code>container</code> </em>es de <strong>960px</strong> de ancho y posicionamos la barra a unos <strong>-80px</strong>, <strong>nos excedimos en el viewport</strong> (960px + 80px = 1040) para resoluciones menores o iguales a 1024&#215;768; ya que el <strong>safe area</strong> para esta resolución es de <strong>975px</strong> de ancho.</p><p
style="text-align: left;">Cualquiera de las dos alternativas es válida y funcional, queda en vos utilizar la que creas que mejor se adapte.</p><h2>Replica de Mashable</h2><p
style="text-align: left;">Esta opción requiere un poco mas de código dada la complejidad. Al utilizar la posición <em><code>fixed</code></em>, esta opción no sera compatible con <strong>IE6 </strong>ya que este navegador desconoce esta propiedad.</p><h3><a
href="http://eliseos.net/test/easy/demo1.html">Demo Replica de Mashable</a></h3><p
style="text-align: left;">No te olvides de redimensionar la ventana para apreciar el efecto completo</p><h2>HTML</h2><p
style="text-align: left;">Como lo podemos apreciar en Mashable tenemos botones para sindicar contenido en Twitter, Google Buzz, Facebook y otras. Cada botón funciona por medio de un <em>script </em>para que les sea mas sencillo de integrar, podes usar e incluir los botones que necesitas por medio de algún plugin o simple código, eso queda en vos.</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;">			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_bar&quot;</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_grandes&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gbuzz s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tweetmeme s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">tweetmeme_source <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'baires'</span>; <span style="color: #66cc66;">//</span> Mi usuario en Twitter <span style="color: #66cc66;">//</span></span>
<span style="color: #009900;">tweetmeme_url <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'&lt;?php the_permalink(); ?&gt;</span></span>'; // URL a socializar en este caso para Wordpress //
//]]&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;faceboook s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://widgets.fbshare.me/files/fbshare.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_chicos&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small gbuzz_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">var njuice_buzz_size <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'small'</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small twwetmeme_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">tweetmeme_style <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'compact'</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small facebook_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">var fbShare <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;"><span style="color: #000066;">size</span>: <span style="color: #ff0000;">'small'</span>,</span>
<span style="color: #009900;"><span style="color: #66cc66;">&#125;</span></span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://widgets.fbshare.me/files/fbshare.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=Eliseos%20Net&amp;amp;linkurl=eliseos.net&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">a2a_linkname<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;My Sitio&quot;</span>;a2a_linkurl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mi-url.com&quot;</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=My%20Sitio&amp;amp;linkurl=mi-url.com&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">a2a_linkname<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;My Sitio&quot;</span>;a2a_linkurl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mi-url.com&quot;</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div><p
style="text-align: left;">Nuestro <strong>markup </strong>es de lo mas sencillo, como se puede hay dos clases de botones: grandes y chicos. Los botones grandes son los que se aprecian a simple vista, los chicos se encuentran escondidos para las resoluciones inferiores o en caso de redimensioanarse la pantalla. Es necesario que edites los datos de cada botón para que coincida con los tuyos, en URL, Nombre del Sitio, etc.</p><p
style="text-align: left;">Recomiendo introducir la barra justo después del titulo y antes del contendido para poder desplazarnos sin problemas. Para el caso de WordPress dentro del archivo <em><code>single.php</code></em></p><h2>CSS</h2><p
style="text-align: left;">Esto es parte de la magia, otra vez es algo extremadamente simple de entender. Intente comentar lo mas posible el código para que sea de fácil entendimiento.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;">&nbsp;
<span style="color: #cc00cc;">#social_bar</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">none</span> </span>repeat <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<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;">#DDDDDD</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-80px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* // La distacia de la barra que queremos tener en relacion al post */</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones grandes */</span>
<span style="color: #6666ff;">.s_boton</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones chicos */</span>
.s_boton_small<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Ocultamos los botones chicos de momento */</span>
<span style="color: #6666ff;">.botones_chicos</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* //Iconos para los links de Share y Email */</span>
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-32px</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">-14px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<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><span style="color: #ff0000; font-style: italic;">../images/social_sprites.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<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;">#E8E8E8</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#989898</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span>/<span style="color: #cc66cc;">1.625</span> verdana<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">44px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">En caso que lo necesites <a
href="http://eliseos.net/wp-content/uploads/2010/03/social_sprites.png">esta es la imagen</a> que utilice en los links de <em>share </em>&amp; <em>e-mail</em>. Los iconos pertenecen al set <a
href="http://glyphish.com/">Glyphish</a>.</p><h2>jQuery</h2><p
style="text-align: left;">Y aquí viene la magia que hará que el comportamiento de la barra acompañe al <em>scroll </em>y diferencie las distintas resoluciones de pantalla.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">$<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>	
&nbsp;
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#social_bar'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">msie</span> <span style="color: #339933;">&amp;&amp;</span> parseInt<span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">version</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> descripY <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.main'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">offset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">top</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">20</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> $postShare <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#social_bar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> pullX <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'margin-left'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003366; font-weight: bold;">function</span> positionShareScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> scrollY <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> fixedShare <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'position'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'fixed'</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> scrollY <span style="color: #339933;">&gt;</span> descripY <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>fixedShare <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                $postShare.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                    position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'fixed'</span><span style="color: #339933;">,</span>
                    left<span style="color: #339933;">:</span> <span style="color: #3366CC;">'50%'</span><span style="color: #339933;">,</span>
                    top<span style="color: #339933;">:</span> <span style="color: #CC0000;">20</span><span style="color: #339933;">,</span>
                    marginLeft<span style="color: #339933;">:</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">540</span> <span style="color: #006600; font-style: italic;">// Este valor se debe ajustar ya que depende de cada diseño//</span>
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> scrollY <span style="color: #339933;">&lt;</span> descripY <span style="color: #339933;">&amp;&amp;</span> fixedShare <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                    position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'relative'</span><span style="color: #339933;">,</span>
                    left<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
                    top<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
                    marginLeft<span style="color: #339933;">:</span> pullX
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">resize</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>
            <span style="color: #003366; font-weight: bold;">var</span> windowW <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> pulledOutside <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'margin-left'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> pullX<span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> windowW <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">1137</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>pulledOutside <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        $postShare.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginLeft<span style="color: #339933;">:</span> pullX <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #006600; font-style: italic;">//Crear barra Vertical</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_chicos'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_grandes'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border-width'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'1px'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'auto'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
							marginRight<span style="color: #339933;">:</span> <span style="color: #CC0000;">7</span><span style="color: #339933;">,</span>
							marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span>
						<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #009900;">&#125;</span>
                    $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scroll.positionShare'</span><span style="color: #339933;">,</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>
                            positionShareScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
                        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
                    positionShareScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> pulledOutside <span style="color: #339933;">||</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    $postShare
                        .<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'relative'</span><span style="color: #339933;">,</span> left<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> top<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span> <span style="color: #009900;">&#125;</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>marginLeft<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
					<span style="color: #006600; font-style: italic;">//Crear barra Horizontal</span>
					<span style="color: #006600; font-style: italic;">//$postShare.append(smallButtons);</span>
					<span style="color: #006600; font-style: italic;">//smallButtons = '';</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_grandes'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_chicos'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
						marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span><span style="color: #339933;">,</span>
						marginBottom<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span>
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border-width'</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
					<span style="color: #003366; font-weight: bold;">var</span> content_width <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.main'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>content_width <span style="color: #339933;">==</span> <span style="color: #3366CC;">'undefined'</span><span style="color: #009900;">&#41;</span> content_width <span style="color: #339933;">=</span> <span style="color: #CC0000;">600</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> $postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span>$postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #003366; font-weight: bold;">var</span> block_width <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
						$postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #339933;">,</span> $postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #003366; font-weight: bold;">var</span> block_width <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
					$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span>content_width<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #003366; font-weight: bold;">var</span> add_padding <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>content_width <span style="color: #339933;">-</span> block_width<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #009900;">&#40;</span>$postShare.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton_small'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">*</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">4</span><span style="color: #339933;">;</span>
&nbsp;
					<span style="color: #006600; font-style: italic;">//var add_padding = (642 - (88 + 120 * (buttons_count - 2) )) / (buttons_count * 2);</span>
					<span style="color: #006600; font-style: italic;">//var add_padding = ( ( 642 - ( 88 * buttons_count ) ) / (buttons_count * 2) ) + 5;</span>
					$postShare.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton_small'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
						paddingLeft<span style="color: #339933;">:</span> add_padding<span style="color: #339933;">,</span>
						paddingRight<span style="color: #339933;">:</span> add_padding
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
                    $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">unbind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scroll.positionShare'</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">resize</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p
style="text-align: left;">Solamente dos cosas debemos tener presentes, la primera es definir en la linea 4 cual sera nuestro valor de referencia para el comportamiento de la barra, es decir el ancho; generalmente corresponde al <em><code>container</code> </em>en el que se encuentra el post. En mi caso he utilizado la clase <em><code>main</code></em>, que se vuelve a utilizar en la linea <strong>76 </strong>y en la <strong>77 </strong>con su ancho.</p><p
style="text-align: left;">Luego procederemos a adaptar la distancia a la que se posicionara la barra cuando nos desplacemos, al utilizar la posición <em><code>fixed</code></em>, el valor difiere de los 80px originales. Este ejemplo muestra la barra posicionada a unos -540px (linea 18). Este valor tenes que ajustarlo vos ya que depende de tu diseño. Una aproximación a este numero responde a: <strong>Ancho del container (en este ejemplo: main) &#8211;  80px</strong></p><p
style="text-align: left;">Una vez presentadas todas las partes solo tenemos que integrarlas en nuestro Site, dependiendo de la plataforma con lo que estemos trabajando pude variar algún detalle, pero este código sirve tanto para WordPress como para cualquier otro <strong>CMS</strong>.</p><h2>Replica de Mashable Simple</h2><p
style="text-align: left;">A diferencia de la opción anterior esta barra es <strong>compatible </strong>con <strong>IE6</strong>, pero no podrá ser apreciada en resoluciones menores. El <em>scroll </em>para este caso es una animación del <em><code>padding</code> </em>que produce un simpático efecto final.</p><h3><a
href="http://eliseos.net/test/easy/demo2.html">Demo Replica de Mashable</a></h3><h2>HTML</h2><p
style="text-align: left;">Es casi el mismo <em>markup </em>de la primera opción pero sin incluir los botones pequeños ya que no son necesarios.</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;">	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_bar_wrapper&quot;</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_bar&quot;</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_contenedor&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gbuzz s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tweetmeme s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
tweetmeme_source = 'baires';
tweetmeme_url = '<span style="color: #009900;">&lt;?php the_permalink<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>';
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;faceboook s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://widgets.fbshare.me/files/fbshare.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=My%20Sitio&amp;amp;linkurl=mi-url.com&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
a2a_linkname=&quot;My Sitio&quot;;a2a_linkurl=&quot;mi-url.com&quot;;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div><p
style="text-align: left;">También se ha añadido un <em><code>wrapper</code></em>a la barra para poder controlar el <em><code>margin</code></em>.</p><h2>CSS</h2><p
style="text-align: left;">Es exactamente el mismo de la primera opción, con el adicional de <em><code>wrapper</code> </em> y sin los botones pequeños.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#social_bar_wrapper</span><span style="color: #00AA00;">&#123;</span>
	<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>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">none</span> </span>repeat <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<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;">#DDDDDD</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-80px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* // La distancia de la barra que queremos tener en relacion al post */</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones grandes */</span>
<span style="color: #6666ff;">.s_boton</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* //Iconos para los links de Share y Email */</span>
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-32px</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">-14px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</span><span style="color: #00AA00;">;</span>
<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>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<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><span style="color: #ff0000; font-style: italic;">../images/social_sprites.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<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;">#E8E8E8</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#989898</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span>/<span style="color: #cc66cc;">1.625</span> verdana<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">44px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">Quizás lo único que tengas que modificar es la distancia a la que se encuentra la barra con respecto del contenido, para este ejemplo es -80px (dentro de <em><code>#social_bar</code></em>). No te excedas en mas de <strong>-100px </strong>o no sera visible en varias resoluciones.</p><h2>jQuery</h2><p
style="text-align: left;">Como te lo adelante anteriormente solamente animamos el <em><code>padding</code> </em>(gracias <a
href="http://css-tricks.com/scrollfollow-sidebar/">CSS Tricks</a>), no es necesario modificar este código a no ser que sepas lo que estas haciendo.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">	$<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>
&nbsp;
    <span style="color: #003366; font-weight: bold;">var</span> $sidebar   <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#social_bar&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        $window    <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        offset     <span style="color: #339933;">=</span> $sidebar.<span style="color: #660066;">offset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        topPadding <span style="color: #339933;">=</span> <span style="color: #CC0000;">15</span><span style="color: #339933;">;</span>
&nbsp;
    $window.<span style="color: #000066;">scroll</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>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$window.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> offset.<span style="color: #660066;">top</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $sidebar.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</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>
                marginTop<span style="color: #339933;">:</span> $window.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> offset.<span style="color: #660066;">top</span> <span style="color: #339933;">+</span> topPadding
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
            $sidebar.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</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>
                marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><h2> Bug encontrado</h2><p
style="text-align: left;">No la había notado la semana pasada, pero me lo remarcan en un e-mail, al contar con un contenido &#8220;muy&#8221; largo; la barra empuja ciertas secciones dentro del container en el que introducimos la barra. Una opción es cambiar a un container mas &#8220;chico&#8221; (poco practico) o para esas secciones problemáticas que se desplazan tenes que usar la regla: <em><code>display: inline-block</code></em></p><p
style="text-align: left;"> Al añadir esta nueva regla, veras que todos los problemas se solucionan, el único inconveniente que se genera, es que <em><code>display: inline-block</code></em> no se comporta de manera homogénea en IE por lo que tendríamos que trabajar un poco más. Pero eso es tema para cortar otra tela, por ahora lo dejo como un pendiente.</p><h2>Consideraciones finales</h2><p
style="text-align: left;">Por ultimo solo resta presentar todo en nuestro diseño y tendremos otra alternativa a a barra de Mashable.</p><p
style="text-align: left;">Cualquier duda que tengas, hacémelo saber.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/crea-barra-compartir-entradas-estilo-mashable/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Crea un Slider vistoso con jqFancyTransitions</title><link>http://eliseos.net/crea-slider-vistoso-jqfancytransitions/</link> <comments>http://eliseos.net/crea-slider-vistoso-jqfancytransitions/#comments</comments> <pubDate>Thu, 04 Mar 2010 22:58:41 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[slider]]></category> <category><![CDATA[slideshow]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2738</guid> <description><![CDATA[jqFancyTransitions es un Slideshow potenciado por jQuery que te permitirá crear Slideshows con la particularidad de añadir destacados efectos a cada transición, de ahi su nombre]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="jqFancyTransitions  slideshow with strip effects" href="http://workshop.rs/projects/jqfancytransitions/">jqFancyTransitions</a> es un Slideshow potenciado por <strong>jQuery</strong> que te permitirá crear <strong>Slideshows</strong> con la particularidad de añadir destacados efectos a cada transición, de ahí su nombre. La idea base de jqFancyTransitions es lograr el efecto cortina en las transiciones, junto con algunos efectos adicionales y la posibilidad de crear los nuestros.</p><p
style="text-align: center;"><a
href="http://workshop.rs/projects/jqfancytransitions/"><img
class="alignnone size-full wp-image-2739" title="jqFancyTransitions  slideshow with strip effects" src="http://eliseos.net/wp-content/uploads/2010/03/jqFancyTransitions.jpg" alt="jqFancyTransitions Crea un Slider vistoso con jqFancyTransitions " width="500" height="250" /></a></p><p
style="text-align: left;">Su funcionamiento es de lo mas simple, solo debemos crear un <em>container</em> con algunas imágenes dentro:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;div id='slideshowHolder'&gt;
&lt;img src='img1.jpg' alt='img1' /&gt;
&lt;img src='img2.jpg' alt='img2' /&gt;
&lt;img src='img3.jpg' alt='img3' /&gt;
&lt;/div&gt;</pre></div></div><p
style="text-align: left;">Y luego iniciar el plugin:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#slideshowHolder'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jqFancyTransitions</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> width<span style="color: #339933;">:</span> <span style="color: #CC0000;">400</span><span style="color: #339933;">,</span> height<span style="color: #339933;">:</span> <span style="color: #CC0000;">300</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Esta es la configuración por defecto, donde solo indicamos el ancho y el alto del Slider, si lo necesitáramos (seguramente) podemos indicar que efecto necesitamos, delay en las transiciones, etc.</p><p
style="text-align: left;">jqFancyTransitions cuenta con un demo online, donde podrás observar todos los efecto que comente anteriormente junto con la <a
title="jqFancyTransitions Docs" href="http://workshop.rs/2009/12/image-gallery-with-fancy-transitions-effects/">documentación necesaria</a>.Y por ultimo, este plugin prueba ser compatible con Safari 2+, Internet Explorer 6+, Firefox 2+, Google Chrome 3+, Opera 9+.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/crea-slider-vistoso-jqfancytransitions/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>YoxView: Una alternativa para Lightbox</title><link>http://eliseos.net/yoxview-alternativa-para-lightbox/</link> <comments>http://eliseos.net/yoxview-alternativa-para-lightbox/#comments</comments> <pubDate>Mon, 22 Feb 2010 22:44:04 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Lightbox]]></category> <category><![CDATA[slideshow]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2698</guid> <description><![CDATA[YoxView es otro clon del ya conocido Lightbox, con la salvedad de estar potenciado por jQuery. A diferencia de otros clones este lightbox cuanta con algunas opciones que lo hacen una alternativa mas que interesante]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="YoxView jQuery image viewer plugin" href="http://www.yoxigen.com/yoxview/Default.aspx">YoxView</a> es otro clon del ya conocido Lightbox, con la salvedad de estar potenciado por jQuery.</p><p
style="text-align: center;"><a
href="http://www.yoxigen.com/yoxview/Default.aspx"><img
class="alignnone size-full wp-image-2699" title="YoxView jQuery image viewer plugin" src="http://eliseos.net/wp-content/uploads/2010/02/YoxView.jpg" alt="YoxView YoxView: Una alternativa para Lightbox" width="500" height="250" /></a></p><p><span
id="more-2698"></span></p><p
style="text-align: left;">A diferencia de otros clones este lightbox cuanta con algunas opciones que lo hacen una alternativa mas que interesante:</p><ul><li>Las imágenes son se &#8220;auto-acomodan&#8221; a la resolución de pantalla</li><li>Se puede hacer un pre-cache de las imágenes, para mejorar la experiencia del usuario</li><li>Múltiples instancias de la misma imagen</li><li>Multilenguaje, el plugin cuenta con los packs de lenguajes para su traducción</li><li>Slideshow automático</li><li>Control de las transiciones a través del teclado</li><li>SEO amigable, los spiders almacenaran tanto los links de las thumbnails como los links de la imagen original</li></ul> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/yoxview-alternativa-para-lightbox/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Served from: eliseos.net @ 2010-07-31 16:30:37 by W3 Total Cache -->