<?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>WillxD &#187; JavaScript</title>
	<atom:link href="http://willxd.com/category/tutoriales/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://willxd.com</link>
	<description>La magia no existe, la programación sí !</description>
	<lastBuildDate>Wed, 23 Jun 2010 21:28:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Miniaturas con jQuery</title>
		<link>http://willxd.com/miniaturas-con-jquery/</link>
		<comments>http://willxd.com/miniaturas-con-jquery/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 05:32:10 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=3672</guid>
		<description><![CDATA[Gracias a jQuery podemos crear grandiosos efectos sin la necesidad de utilizar tanto código. Esta vez les explicaré un efecto de "miniaturas" usando CSS y jQuery. El cual lo podemos usar en distintos proyectos como en galerías de imágenes y otro que se les ocurra (ya depende de su imaginación). 1) XHTML Comenzamos creando la [...]]]></description>
			<content:encoded><![CDATA[<p>Gracias a <strong>jQuery</strong> podemos crear grandiosos efectos sin la necesidad de utilizar tanto código. Esta vez les explicaré un efecto de "miniaturas" usando <strong>CSS y jQuery</strong>. El cual lo podemos usar en distintos proyectos como en galerías de imágenes y otro que se les ocurra (ya depende de su imaginación).</p>
<div class="tut_image"><img src="http://willxd.com/wp-content/uploads/2009/08/miniaturas-con-jquery.jpg" alt="miniaturas-con-jquery" title="miniaturas-con-jquery" width="500" height="335" class="aligncenter size-full wp-image-3952" />
</div>
<p><span id="more-3672"></span></p>
<h2>1) XHTML</h2>
<p>Comenzamos creando la base para aplicar el efecto de miniaturas. Solo creamos una simple lista, con algunas imágenes.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><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;mini&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;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mini1.jpg&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;">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;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mini2.jpg&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;">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;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mini3.jpg&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;">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;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mini4.jpg&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;">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;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mini5.jpg&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;">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;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mini6.jpg&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;">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>

<h2>2) CSS</h2>
<p>Una vez que acabamos con la base, pasamos a aplicarle los estilos. Debemos enfocarnos en la <strong>posición de las imágenes y de las listas</strong>, ya que estas serán la base para aplicarle los efectos con jQuery.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;">ul<span style="color: #6666ff;">.mini</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">140px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">840px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Definimos el Tamaño de nuestra lista */</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* mantener espaciado de los demás elementos de tu web */</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* para no tener problema al momento de agrandar la imagen de la miniatura */</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Importante! para que no salgan los estilos de las listas */</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #6666ff;">.mini</span> li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</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: #808080; font-style: italic;">/* alineación de la lista */</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: #808080; font-style: italic;">/* importante para aplicar el centrado vertical */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">130px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span> <span style="color: #933;">130px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Definimos el tamaño de las miniaturas de la lista */</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #6666ff;">.mini</span> li img <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">120px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">120px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* tamaño las imagenes en miniatura */</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;">#ccc</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* borde de las imágenes */</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: #808080; font-style: italic;">/* teníamos 120px de Ancho/Alto + 10px Ancho/Alto(padding) da los 130px del tamaño de la lista*/</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f0f0f0</span><span style="color: #00AA00;">;</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: #808080; font-style: italic;">/* importante definir la posición absoluta */</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* posición por defecto */</span>
	-ms-interpolation-mode<span style="color: #00AA00;">:</span> bicubic<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* hack IE para la la escala bicúbica */</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #6666ff;">.mini</span> li img<span style="color: #6666ff;">.hover</span> <span style="color: #00AA00;">&#123;</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;">miniatura.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">center</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Un PNG de fondo que le da un efecto de sombra */</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h2>3) jQuery</h2>
<p>El efecto se basa principalmente en <strong>cambiar la posición y aumentar el tamaño</strong> de la lista a un tamaño mayor (de preferencia al tamaño de la imágen), pues así cuando pasamos encima de las imágenes, éstas se agrandarán según el tiempo que le apliquemos en el código de jQuery.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-size:13px;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;ul.mini li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</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: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'z-index'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">'10'</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;">// aumentamos el z-index para que quede encima de los demás elementos</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;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hover&quot;</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;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">'-110px'</span><span style="color: #339933;">,</span> marginLeft<span style="color: #339933;">:</span> <span style="color: #3366CC;">'-110px'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// centramos los thumbnail verticalmente</span>
			top<span style="color: #339933;">:</span> <span style="color: #3366CC;">'50%'</span><span style="color: #339933;">,</span> left<span style="color: #339933;">:</span> <span style="color: #3366CC;">'50%'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// Posicionamos a la mitad</span>
			width<span style="color: #339933;">:</span> <span style="color: #3366CC;">'180px'</span><span style="color: #339933;">,</span> height<span style="color: #339933;">:</span> <span style="color: #3366CC;">'180px'</span><span style="color: #339933;">,</span>  padding<span style="color: #339933;">:</span> <span style="color: #3366CC;">'20px'</span> <span style="color: #006600; font-style: italic;">// EL tamaño del thumbnail</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">// Tiempo que demora en hacer el efecto</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">// Regresando a su posición inicial</span>
	<span style="color: #009900;">&#125;</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>
	$<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;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'z-index'</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: #006600; font-style: italic;">// regresamos el z-index a cero</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;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hover&quot;</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;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">'0'</span><span style="color: #339933;">,</span> marginLeft<span style="color: #339933;">:</span> <span style="color: #3366CC;">'0'</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">// Posición incial</span>
			top<span style="color: #339933;">:</span> <span style="color: #3366CC;">'0'</span><span style="color: #339933;">,</span> left<span style="color: #339933;">:</span> <span style="color: #3366CC;">'0'</span><span style="color: #339933;">,</span> 
			width<span style="color: #339933;">:</span> <span style="color: #3366CC;">'120px'</span><span style="color: #339933;">,</span> height<span style="color: #339933;">:</span> <span style="color: #3366CC;">'120px'</span><span style="color: #339933;">,</span> padding<span style="color: #339933;">:</span> <span style="color: #3366CC;">'5px'</span> <span style="color: #006600; font-style: italic;">// Tamaño inicial de la miniatura</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">// Tiempo que demora en hacer el efecto</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><a href="http://willxd.com/demos/Miniaturas-jQuery/">Demo - Miniaturas con jQuery</a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/esquinas-redondeadas-con-jquery/' rel='bookmark' title='Permanent Link: Esquinas redondeadas con jQuery'>Esquinas redondeadas con jQuery</a></li>
<li><a href='http://willxd.com/menu-desplegable-jquery-i/' rel='bookmark' title='Permanent Link: Menu Desplegable jQuery (I)'>Menu Desplegable jQuery (I)</a></li>
<li><a href='http://willxd.com/jplayer-un-reproductor-mp3-con-jquery/' rel='bookmark' title='Permanent Link: JPlayer un reproductor MP3 con jQuery'>JPlayer un reproductor MP3 con jQuery</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/miniaturas-con-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Menu Desplegable jQuery (I)</title>
		<link>http://willxd.com/menu-desplegable-jquery-i/</link>
		<comments>http://willxd.com/menu-desplegable-jquery-i/#comments</comments>
		<pubDate>Fri, 29 May 2009 13:26:35 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2734</guid>
		<description><![CDATA[jQuery es una grandiosa librería JavaScript con la cual podemos hacer infinidad de cosas. Veamos como hacer un Menú desplegable con jQuery en tan solo 5 líneas de código: Primero debemos tener un fichero HTML con la siguiente estructura: &#60;div id=&#34;menu1&#34;&#62; &#60;h1&#62;Articulos&#60;/h1&#62; &#60;ul&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Noticias&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Tecnologia&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Wordpress&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;h1&#62;Recursos&#60;/h1&#62; &#60;ul&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Brushes&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://willxd.com/menu-desplegable-jquery-i/menu-desplegable-jquery-i/" rel="attachment wp-att-2738"><img src="http://willxd.com/wp-content/uploads/2009/05/menu-desplegable-jquery-i.jpg" alt="menu-desplegable-jquery-i" title="menu-desplegable-jquery-i" width="550" height="200" class="aligncenter size-full wp-image-2738" /></a><br />
jQuery es una grandiosa librería JavaScript con la cual podemos hacer infinidad de cosas. </p>
<p>Veamos como hacer un Menú desplegable con jQuery en tan solo <strong>5 líneas de código</strong>:</p>
<p><span id="more-2734"></span></p>
<p>Primero debemos tener un fichero HTML con la siguiente estructura:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><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;menu1&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Articulos<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</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>Noticias<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>Tecnologia<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>Wordpress<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: #000000; font-weight: bold;">h1</span>&gt;</span>Recursos<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</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>Brushes<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>Pattern<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>Texturas<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>Vectores<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: #000000; font-weight: bold;">h1</span>&gt;</span>Tutoriales<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</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>CSS<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: #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>Java<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>Javascript<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: #808080; font-style: italic;">&lt;!-- end menu1 --&gt;</span></pre></div></div>

<p>En el CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #cc00cc;">#menu1</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</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;">100px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu1</span> h1<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#b66737</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu1</span> ul<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: #808080; font-style: italic;">/* Importante! esto hace que las listas esten ocultas */</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu1</span> a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#b66737</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Y ahora las <strong>5 líneas de código</strong> que harán un sencillo pero grandioso menú desplegable:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-size:13px;">  $<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: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#menu1 h1&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: #660066;">next</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#menu1 ul&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">siblings</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#menu1 ul&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</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></div></div>

<p>Demo:<a href="http://willxd.com/demos/Menu-con-jQuery(1)/">Menu Desplegable jQuery (I)</a><br />
Enlace:<a href="http://www.mediafire.com/download.php?uhnmy0wmjym">Descargar Menu Desplegable jQuery (I)</a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/ocultar-link-con-jquery/' rel='bookmark' title='Permanent Link: Ocultar Link con jQuery'>Ocultar Link con jQuery</a></li>
<li><a href='http://willxd.com/ultimo-tweet-con-jquery/' rel='bookmark' title='Permanent Link: Ultimo Tweet con jQuery'>Ultimo Tweet con jQuery</a></li>
<li><a href='http://willxd.com/esquinas-redondeadas-con-jquery/' rel='bookmark' title='Permanent Link: Esquinas redondeadas con jQuery'>Esquinas redondeadas con jQuery</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/menu-desplegable-jquery-i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ultimo Tweet con jQuery</title>
		<link>http://willxd.com/ultimo-tweet-con-jquery/</link>
		<comments>http://willxd.com/ultimo-tweet-con-jquery/#comments</comments>
		<pubDate>Thu, 21 May 2009 22:44:57 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2620</guid>
		<description><![CDATA[Con la utilidad de la API de Twitter, que es un excelente servicio de microblogging, podemos crear nuestras propias aplicaciones. Veamos como con la ayuda de la jQuery y la función "$. GetJSON" poder mostrar en nuestra web el último "Tweet" enviado desde nuestro twitter. &#60;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;relative_time.js&#34;&#62;&#60;/script&#62; &#160; &#60;script type=&#34;text/javascript&#34;&#62; $(document).ready(function() [...]]]></description>
			<content:encoded><![CDATA[<p>Con la utilidad de la API de Twitter, que es un excelente servicio de microblogging, podemos crear nuestras propias aplicaciones.<br />
Veamos como con la ayuda de la jQuery y la función "$. GetJSON" poder mostrar en nuestra web el último "Tweet" enviado desde nuestro twitter.</p>
<p><span id="more-2620"></span></p>
<div class="salto"></div>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><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://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span>&gt;&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;relative_time.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
&nbsp;
<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>
$(document).ready(function() {
var tutwitter = &quot;willxd&quot;;
	$.getJSON(&quot;http://twitter.com/statuses/user_timeline/&quot;+ tutwitter +&quot;.json?count=1<span style="color: #ddbb00;">&amp;callback=?&quot;, function(json){</span>
<span style="color: #ddbb00;"> 		var lastTweet = json[0].text;</span>
		var tweetTime = json[0].created_at;
		var tweetTime = relative_time(json[0].created_at);
		$(&quot;#twittexto&quot;).html(lastTweet);
		$(&quot;#twittiempo&quot;).html(tweetTime);
	});
});
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>Ahora lo que debemos hacer es cambiar en la variable "tutwitter" a tu cuenta de Twitter. Y crear en tu web los siguientes "divs"</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><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;twittexto&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span> // Texto del tweet
<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;twittiempo&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span> // Hace cuanto escribiste el tweet</pre></div></div>

<p>Demo: <a href="http://willxd.com/demos/apitwitter/index.html">Ultimo Tweet con jQuery</a><br />
Enlace: <a href="http://www.mediafire.com/download.php?uyjzzgwzjmn">Descargar Ultimo Tweet con jQuery</a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/esquinas-redondeadas-con-jquery/' rel='bookmark' title='Permanent Link: Esquinas redondeadas con jQuery'>Esquinas redondeadas con jQuery</a></li>
<li><a href='http://willxd.com/menu-desplegable-jquery-i/' rel='bookmark' title='Permanent Link: Menu Desplegable jQuery (I)'>Menu Desplegable jQuery (I)</a></li>
<li><a href='http://willxd.com/ocultar-link-con-jquery/' rel='bookmark' title='Permanent Link: Ocultar Link con jQuery'>Ocultar Link con jQuery</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/ultimo-tweet-con-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ocultar Link con jQuery</title>
		<link>http://willxd.com/ocultar-link-con-jquery/</link>
		<comments>http://willxd.com/ocultar-link-con-jquery/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 00:29:45 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2093</guid>
		<description><![CDATA[Con jQuery podemos ocultar un vínculo dentro de otro vínculo con tan solo algunos pasos. En realidad lo que hace es que si hacemos 1 click nos envía al primer link, pero si damos doble click sobre el enlace, este nos muestra el enlace oculto. Veamos, primero creamos un enlace normal: &#60;a href=&#34;http://google.com&#34;&#62;Búscalo en Google&#60;/a&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Con jQuery podemos ocultar un vínculo dentro de otro vínculo con tan solo algunos pasos. </p>
<p><span id="more-2093"></span></p>
<p>En realidad lo que hace es que si hacemos 1 click nos envía al primer link, pero si damos doble click sobre el enlace, este nos muestra el enlace oculto.</p>
<div class="salto"></div>
<p>Veamos, primero creamos un enlace normal:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><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;http://google.com&quot;</span>&gt;</span>Búscalo en Google<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<p>Ahora le asignamos un ID para nuestro código jQuery.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkoculto&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://google.com&quot;</span>&gt;</span>Búscalo en Google<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<p>Ahora usaremos jQuery, lo que hace el siguiente código es que se retrase medio segundo en rederigir al enlace, para tener tiempo suficiente para dar doble click:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-size:13px;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a#linkoculto&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</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> timeout <span style="color: #339933;">=</span> setTimeout<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>
    location.<span style="color: #660066;">href</span><span style="color: #339933;">=</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a#linkoculto&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</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: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</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>Ahora lo que haremos será definir el link oculto, al cual redireccionará siempre y cuando demos doble click.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-size:13px;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a#linkoculto&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dblclick</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>
  location.<span style="color: #660066;">href</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://youtube.com&quot;</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>Related posts:<ol><li><a href='http://willxd.com/menu-desplegable-jquery-i/' rel='bookmark' title='Permanent Link: Menu Desplegable jQuery (I)'>Menu Desplegable jQuery (I)</a></li>
<li><a href='http://willxd.com/ultimo-tweet-con-jquery/' rel='bookmark' title='Permanent Link: Ultimo Tweet con jQuery'>Ultimo Tweet con jQuery</a></li>
<li><a href='http://willxd.com/esquinas-redondeadas-con-jquery/' rel='bookmark' title='Permanent Link: Esquinas redondeadas con jQuery'>Esquinas redondeadas con jQuery</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/ocultar-link-con-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Corregir CSS en Internet Explorer</title>
		<link>http://willxd.com/corregir-css-en-internet-explorer/</link>
		<comments>http://willxd.com/corregir-css-en-internet-explorer/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 01:47:36 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2065</guid>
		<description><![CDATA[IE7.js es una librería Javascript que permite hacer que tanto Internet Explorer 5 como Internet Explorer 6 sean compatible con los estándares, lo que hace es corregir los problemas de selectores de CSS y corrigiendo los PNG transparentes. Entre los puntos que corrige esta librería tenemos: HTML PNGs transparentes Doble margen Contenido sin scroll Selectores [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/ie7-js/">IE7.js</a> es una librería Javascript que permite hacer que tanto Internet Explorer 5 como Internet Explorer 6 sean compatible con los estándares, lo que hace es corregir los problemas de selectores de CSS y corrigiendo los<strong> PNG transparentes</strong>.</p>
<p><span id="more-2065"></span></p>
<p>Entre los puntos que corrige esta librería tenemos:</p>
<h3>HTML</h3>
<ul>
<li>PNGs transparentes</li>
<li> Doble margen</li>
<li> Contenido sin scroll</li>
</ul>
<h3>Selectores CSS</h3>
<ul>
<li> parent &gt; child</li>
<li>:hover</li>
<li>:active</li>
<li> :first-child</li>
<li> [attr]</li>
<li> [attr="value"]</li>
<li>[attr*="value"]</li>
</ul>
<h3>CSS</h3>
<ul>
<li>Soporta hojas de estilo importadas.</li>
<li>Preserva la cascada de la hoja de estilo.</li>
<li>background-image</li>
<li>overflow:visible</li>
<li>cursor</li>
<li> position</li>
<li>display</li>
<li>max-height</li>
<li>max-width</li>
<li>min-height</li>
<li>min-width</li>
</ul>
<h2>Utilizando la Libreria IE7</h2>
<p>Para utilizar esta excelente librería lo que debemos hacer es colocar el siguiente código dentro del header de nuestra página.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-size:13px;"><span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">if</span> lt IE <span style="color: #CC0000;">7</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>endif<span style="color: #009900;">&#93;</span><span style="color: #339933;">--&gt;</span></pre></div></div>

<p>Y listo ahora nuestra web se visualizará correctamente tanto en IE6 como en IE5 <img src='http://willxd.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Podemos descargar la librería desde <a href="http://ie7-js.googlecode.com/svn/version/">acá</a></p>
<p>También esta disponible la versión de compatibilidad para el nuevo IE8, solo debemos colocar el código siguiente:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-size:13px;"><span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">if</span> lt IE <span style="color: #CC0000;">8</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>endif<span style="color: #009900;">&#93;</span><span style="color: #339933;">--&gt;</span></pre></div></div>



<p>Related posts:<ol><li><a href='http://willxd.com/internet-explorer-8-mas-rapido-y-seguro/' rel='bookmark' title='Permanent Link: Internet Explorer 8 más rápido y seguro'>Internet Explorer 8 más rápido y seguro</a></li>
<li><a href='http://willxd.com/internet-explorer-8-final/' rel='bookmark' title='Permanent Link: Internet Explorer 8 Final'>Internet Explorer 8 Final</a></li>
<li><a href='http://willxd.com/estilo-retro/' rel='bookmark' title='Permanent Link: Estilo Retro'>Estilo Retro</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/corregir-css-en-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Esquinas redondeadas con jQuery</title>
		<link>http://willxd.com/esquinas-redondeadas-con-jquery/</link>
		<comments>http://willxd.com/esquinas-redondeadas-con-jquery/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 21:25:22 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=604</guid>
		<description><![CDATA[jQuery Corners es un plugin que nos permite crear esquinas redondeadas de una manera muy fácil, sin necesidad de imágenes o de estar maquetando &#124;-) . Simplemente definimos una clase y se aplica a un elemento HTML. Primero necesitas descargar jQuery y jQuery corners. Luego en el HTML hacemos el llamado de los "js" dentro [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery Corners es un plugin que nos permite crear esquinas redondeadas de una manera muy fácil, sin necesidad de imágenes o de estar maquetando |-) . Simplemente definimos una clase y se aplica a un elemento HTML.</p>
<p>Primero necesitas descargar <a title="jQuery" href="http://docs.jquery.com/Downloading_jQuery">jQuery</a> y <a title="jQuery esquinas redondeadas" href="http://plugins.jquery.com/project/corners">jQuery corners</a>.</p>
<p>Luego en el HTML hacemos el llamado de los "js" dentro de las etiquetas "head"</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html4strict" style="font-size:13px;"><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;jquery.js&quot;</span>&gt;&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;jquery.corner.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>Luego definimos la clase que creara las esquinas redondeadas:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-size:13px;"><span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>$<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: #009900;">&#40;</span><span style="color: #3366CC;">'.redondeados'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">corners</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;">&#41;</span><span style="color: #339933;">;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Ahora lo aplicamos a la etiqueta DIV:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-size:13px;"><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;redondeados&quot;</span>&gt;</span>
	El contenedor con las esquinas redondeadas.
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Bueno esa es solo la aplicación más simple, pero puedes configurarlo a tus medidas =P , más información en su <a href="http://www.atblabs.com/jquery.corners.html">sitio oficial</a>.</p>


<p>Related posts:<ol><li><a href='http://willxd.com/ultimo-tweet-con-jquery/' rel='bookmark' title='Permanent Link: Ultimo Tweet con jQuery'>Ultimo Tweet con jQuery</a></li>
<li><a href='http://willxd.com/menu-desplegable-jquery-i/' rel='bookmark' title='Permanent Link: Menu Desplegable jQuery (I)'>Menu Desplegable jQuery (I)</a></li>
<li><a href='http://willxd.com/jplayer-un-reproductor-mp3-con-jquery/' rel='bookmark' title='Permanent Link: JPlayer un reproductor MP3 con jQuery'>JPlayer un reproductor MP3 con jQuery</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/esquinas-redondeadas-con-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detectar navegador con JavaScript</title>
		<link>http://willxd.com/detectar-navegador-con-javascript/</link>
		<comments>http://willxd.com/detectar-navegador-con-javascript/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 04:49:00 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=393</guid>
		<description><![CDATA[Despúes de días sin postear nada por varios motivos U.u les traigo este código JavaScript que encontré y me fue de gran ayuda. Hay veces tenemos la necesidad de saber cual es el navegador que está usando el usuario para poder mostrar su respectivo estilo o correcciones que pudiera haber con los diferentes navegadores (sobre [...]]]></description>
			<content:encoded><![CDATA[<p>Despúes de días sin postear nada por varios motivos U.u les traigo este código JavaScript que encontré y me fue de gran ayuda.</p>
<p>Hay veces tenemos la necesidad de saber cual es el navegador que está usando el usuario para poder mostrar su respectivo estilo o correcciones que pudiera haber con los diferentes navegadores (sobre todo IE 6 xD).</p>
<p>Acá les dejo las condicionales que les ayudarán que tipo de navegador está usando el usuario, ya es solo su trabajo adaptarla a sus necesidades.</p>
<p><span id="more-393"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-size:13px;"><span style="color: #006600; font-style: italic;">//Detectando si es Safari</span>
<span style="color: #003366; font-weight: bold;">var</span> is_safari <span style="color: #339933;">=</span> navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">toLowerCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'safari/'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>  
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>is_safari <span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Su navegador es Safari'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Detectando si es Chrome</span>
<span style="color: #003366; font-weight: bold;">var</span> is_chrome<span style="color: #339933;">=</span> navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">toLowerCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'chrome/'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>  
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>is_chrome<span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Su navegador es Google Chrome'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Detectando si es Firefox</span>
<span style="color: #003366; font-weight: bold;">var</span> is_firefox <span style="color: #339933;">=</span> navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">toLowerCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'firefox/'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>  
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>is_firefox <span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Su navegador es Firefox'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Detectando Cualquier version de IE</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\v</span>'</span><span style="color: #339933;">==</span><span style="color: #3366CC;">'v'</span><span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Su navegador es Internet Explorer !'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Detectando si es IE6</span>
<span style="color: #003366; font-weight: bold;">var</span> is_ie6 <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">external</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000066; font-weight: bold;">typeof</span> window.<span style="color: #660066;">XMLHttpRequest</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;undefined&quot;</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>is_ie6 <span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Su navegador es Internet Explorer 6'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>



<p>Related posts:<ol><li><a href='http://willxd.com/google-chrome-portable-201670-beta/' rel='bookmark' title='Permanent Link: Google Chrome Portable 2.0.167.0 Beta'>Google Chrome Portable 2.0.167.0 Beta</a></li>
<li><a href='http://willxd.com/google-chrome-201661/' rel='bookmark' title='Permanent Link: Google Chrome 2.0.166.1'>Google Chrome 2.0.166.1</a></li>
<li><a href='http://willxd.com/firefox-3-6-3-liberado-actualiza-ahora/' rel='bookmark' title='Permanent Link: Firefox 3.6.3 Liberado, Actualiza ahora!'>Firefox 3.6.3 Liberado, Actualiza ahora!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/detectar-navegador-con-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
