<?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; Tutoriales</title>
	<atom:link href="http://willxd.com/category/tutoriales/feed/" rel="self" type="application/rss+xml" />
	<link>http://willxd.com</link>
	<description>La magia no existe, la programación sí !</description>
	<lastBuildDate>Tue, 13 Sep 2011 20:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Como cambiar la contraseña al usuario System en Oracle</title>
		<link>http://willxd.com/como-cambiar-la-contrasena-al-usuario-system-en-oracle/</link>
		<comments>http://willxd.com/como-cambiar-la-contrasena-al-usuario-system-en-oracle/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 14:23:19 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Como Lo Hice]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=4840</guid>
		<description><![CDATA[Hoy me desperté relativamente temprano para practicar para mi examen de mañana, y cuando pretendía acceder a la página inicial de Base de Datos de Oracle, ¡oh sorpresa! no recordaba la contraseña del usuario System de Oracle. Eso me pasaba por no tener ningún gestor de contraseñas en Windows como si lo tengo en Mac. [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy me desperté relativamente temprano para practicar para mi examen de mañana, y cuando pretendía acceder a la página inicial de Base de Datos de Oracle, ¡oh sorpresa! <strong>no recordaba la contraseña del usuario System de Oracle</strong>. Eso me pasaba por no tener ningún gestor de contraseñas en Windows como si lo tengo en Mac.</p>
<p>Sin más preámbulo, pasamos a ver como <del datetime="2010-12-03T14:03:04+00:00">fucking</del> cambiar la contraseña del Usuario System de Oracle.</p>
<p>Primero abrimos la <strong>línea de Comandos SQL</strong>. (Y si andan algo despistados, lo pueden encontrar en Todos Los Programas -> Base de Datos Oracle -> Ejecutar línea de Comandos SQL).</p>
<p>Luego de eso, se tienen que conectar para poder realizar la última operación. (Sí ya casi terminamos)</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">conn<span style="color: #66cc66;">/</span> <span style="color: #993333; font-weight: bold;">AS</span> sysdba</pre></div></div>

<p>Y finalmente cambian la clave del usuario System.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">USER</span> system <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">&quot;tunuevaclave&quot;</span>;</pre></div></div>

<p>Y les saldrá "Usuario Modificado". Bueno eso es todo, ahora si me voy a practicar!</p>


<p>Related posts:<ol><li><a href='http://willxd.com/como-instalar-lamp-en-ubuntu/' rel='bookmark' title='Permanent Link: Como Instalar LAMP en Ubuntu'>Como Instalar LAMP en Ubuntu</a></li>
<li><a href='http://willxd.com/como-instalar-la-ultima-version-de-firefox-en-ubuntu/' rel='bookmark' title='Permanent Link: Como Instalar La Ultima Version de Firefox en Ubuntu'>Como Instalar La Ultima Version de Firefox en Ubuntu</a></li>
<li><a href='http://willxd.com/como-cambiar-el-icono-del-finder-en-mac-os-x-lion/' rel='bookmark' title='Permanent Link: Como cambiar el icono del Finder en Mac OS X Lion'>Como cambiar el icono del Finder en Mac OS X Lion</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/como-cambiar-la-contrasena-al-usuario-system-en-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatizar las Descargas de Rapidshare y Megaupload en Chrome</title>
		<link>http://willxd.com/automatizar-las-descargas-de-rapidshare-y-megaupload-en-chrome/</link>
		<comments>http://willxd.com/automatizar-las-descargas-de-rapidshare-y-megaupload-en-chrome/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 18:58:32 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Como Lo Hice]]></category>
		<category><![CDATA[google chrome]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=4444</guid>
		<description><![CDATA[Como saben siempre que queremos descargar de Rapidshare y Megaupload, debemos esperar un tiempo (para los usuarios no premium) que se muestra en cuenta regresiva. Pero a quién le gusta esperar todo ese tiempo, y lo peor es que a veces nos olvidamos y dejamos avanzando al contador, y cuando regresamos no podemos descargar, porque [...]]]></description>
			<content:encoded><![CDATA[<div class="tut_image">
<img src="http://willxd.com/wp-content/uploads/2010/04/rapidshare-megaupload-helper.jpg" alt="Automatizar descarga Rapidshare y Megaupload en Google Chrome" title="Rapidshare y Megaupload Download Helper" width="341" height="122" class="alignnone size-full wp-image-4451" />
</div>
<p>Como saben siempre que queremos descargar de <strong>Rapidshare y Megaupload</strong>, debemos esperar un tiempo (para los usuarios no premium) que se muestra en cuenta regresiva. </p>
<p>Pero a quién le gusta esperar todo ese tiempo, y lo peor es que a veces nos olvidamos y dejamos avanzando al contador, y cuando regresamos no podemos descargar, porque se venció el tiempo y debemos actualizar la página para volver a esperar.</p>
<p><span id="more-4444"></span></p>
<p>Para los usuarios de <strong>Google Chrome</strong> ya hay solución para eso. Solo debes instalar dos extensiones: <strong>RapidShare DownloadHelper</strong> y <strong>MegaUpload DownloadHelper</strong>.</p>
<p>Una vez instalado ya no te debes preocupar por esperar el tiempo del contador, las extensiones detectarán el tiempo que falta, y  cuando el contador llegue a cero, las descargas comenzarán automáticamente.</p>
<p>Enlace: <a href="https://chrome.google.com/extensions/detail/afpbkpjjkfakdcakapanjoeijlphieei">Descargar RapidShare DownloadHelper</a> y <a href="https://chrome.google.com/extensions/detail/leekjckogogidfhpejjmaaekecplpdcg">Descargar MegaUpload DownloadHelper</a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/instalar-extensiones-no-compatibles-con-firefox-3-5/' rel='bookmark' title='Permanent Link: Instalar extensiones no compatibles con firefox 3.5'>Instalar extensiones no compatibles con firefox 3.5</a></li>
<li><a href='http://willxd.com/como-probar-las-novedades-de-google-doc/' rel='bookmark' title='Permanent Link: Como Probar las novedades de Google Doc'>Como Probar las novedades de Google Doc</a></li>
<li><a href='http://willxd.com/descargar-google-chrome-3-final/' rel='bookmark' title='Permanent Link: Descargar Google Chrome 3 Final'>Descargar Google Chrome 3 Final</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/automatizar-las-descargas-de-rapidshare-y-megaupload-en-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Como redimensionar las miniaturas del Taskbar en Windows 7</title>
		<link>http://willxd.com/como-redimensionar-las-miniaturas-del-taskbar-en-windows-7/</link>
		<comments>http://willxd.com/como-redimensionar-las-miniaturas-del-taskbar-en-windows-7/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:06:48 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Como Lo Hice]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=4341</guid>
		<description><![CDATA[7 Taskbar Thumbnail Customizer, es una pequeña aplicación portable (no necesita instalarse), con la que podemos redimensionar los Thumbnail (miniaturas) del Taskbar (Barra de Tareas) de Windows 7. Por defecto el valor del tamaño de las miniaturas es de 200, pero podemos cambiarlo en "Maximun Size". Además esta aplicación nos permite cambiar el espacio y [...]]]></description>
			<content:encoded><![CDATA[<div class="tut_image"><img src="http://willxd.com/wp-content/uploads/2010/03/Taskbar-Thumbnail-Customizer-Redimensionar.jpg" alt="Taskbar Thumbnail Customizer Redimensionar" title="Taskbar Thumbnail Customizer Redimensionar" width="200" height="200" class="alignnone size-full wp-image-4379" /></div>
<p><strong>7 Taskbar Thumbnail Customizer</strong>, es una pequeña aplicación portable (no necesita instalarse), con la que podemos redimensionar los Thumbnail (miniaturas) del Taskbar (Barra de Tareas) de Windows 7.</p>
<p>Por defecto el valor del tamaño de las miniaturas es de 200, pero podemos cambiarlo en "Maximun Size". Además esta aplicación nos permite cambiar el espacio y los márgenes entre el Taskbar y las miniaturas, así como el tiempo que se demora en mostrar la miniatura.</p>
<p><span id="more-4341"></span></p>
<div class="tut_image">
	<img src="http://willxd.com/wp-content/uploads/2010/03/taskbar-thumbnail.jpg" alt="7 Taskbar Thumbnail Customizer" />
</div>
<div class="tut_image">
	<img src="http://willxd.com/wp-content/uploads/2010/03/taskbar-thumbnail-before.jpg" alt="Antes de redimensionar los Thumbnail del Taskbar" /></p>
<p>Antes de redimensionar los Thumbnail del Taskbar</p>
</div>
<div class="tut_image">
	<img src="http://willxd.com/wp-content/uploads/2010/03/taskbar-thumbnail-after.jpg" alt="Después de redimensionar los Thumbnail del Taskbar" /></p>
<p>Después de redimensionar los Thumbnail del Taskbar</p>
</div>
<p>Enlace: <a href="http://kishan-bagaria.deviantart.com/art/7-Taskbar-Thumbnail-Customizer-156609502">7 Taskbar Thumbnail Customizer</a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/miniaturas-con-jquery/' rel='bookmark' title='Permanent Link: Miniaturas con jQuery'>Miniaturas con jQuery</a></li>
<li><a href='http://willxd.com/como-cambiar-el-icono-del-finder-en-mac-os-x-lion/' rel='bookmark' title='Permanent Link: Como cambiar el icono del Finder en Mac OS X Lion'>Como cambiar el icono del Finder en Mac OS X Lion</a></li>
<li><a href='http://willxd.com/como-descargar-fotos-de-flickr/' rel='bookmark' title='Permanent Link: Como descargar Fotos de Flickr'>Como descargar Fotos de Flickr</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/como-redimensionar-las-miniaturas-del-taskbar-en-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Como agregar Caratulas o Covers a los CD</title>
		<link>http://willxd.com/como-agregar-caratulas-o-covers-a-los-cd/</link>
		<comments>http://willxd.com/como-agregar-caratulas-o-covers-a-los-cd/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 03:58:37 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Como Lo Hice]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=4276</guid>
		<description><![CDATA[Hay veces que descargamos CD's o mp3 sueltos de algún lugar de internet (mp3's de dudosa procedencia xD). Y cuando lo reproducimos con algún reproductor, no sale la carátula o el cover, o tal vez está con la carátula equivocada. Pero eso lo podemos solucionar con Mp3tag, que es una aplicación donde podemos cambiar o [...]]]></description>
			<content:encoded><![CDATA[<div class="tut_image">
<img src="http://willxd.com/wp-content/uploads/2010/01/caratula-cds.jpg" alt="" title="caratula-cds" class="aligncenter size-full wp-image-4277" />
</div>
<p>Hay veces que descargamos CD's o mp3 sueltos de algún lugar de internet (mp3's de dudosa procedencia xD). Y cuando lo reproducimos con algún reproductor, no sale la carátula o el cover, o tal vez está con la carátula equivocada.</p>
<p>Pero eso lo podemos solucionar con <strong>Mp3tag</strong>, que es una aplicación donde podemos cambiar o agregar las carátulas de una canción o varias canciones a la vez.</p>
<p><span id="more-4276"></span></p>
<p>Lo único que deben hacer es abrir el programa y dar click en Archivo -> Añadir Carpeta. Luego seleccionan la canción que quieran agregar la carátula. Y en el lado inferior izquierdo del programa, hay un cuadrado blanco, el cual deben dar click derecho y click en "Añadir Carátula".</p>
<p>De la misma manera pueden quitar la carátula, extraer la carátula, cortar la carátula, etc.</p>
<p>Además <strong>Mp3tag</strong>, es un programa completo en lo que es, la edición de tags de los mp3 como título, artista, álbum, año, etc.</p>
<p>Enlace: <a href="http://www.mp3tag.de/en/download.html">Descargar Mp3Tag</a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/como-excluir-taxonomias-en-los-posts/' rel='bookmark' title='Permanent Link: Como Excluir Taxonomias en los Posts'>Como Excluir Taxonomias en los Posts</a></li>
<li><a href='http://willxd.com/como-crear-dvd-con-cualquier-video/' rel='bookmark' title='Permanent Link: Como crear DVD con cualquier video'>Como crear DVD con cualquier video</a></li>
<li><a href='http://willxd.com/como-instalar-la-ultima-version-de-firefox-en-ubuntu/' rel='bookmark' title='Permanent Link: Como Instalar La Ultima Version de Firefox en Ubuntu'>Como Instalar La Ultima Version de Firefox en Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/como-agregar-caratulas-o-covers-a-los-cd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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-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;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-family:monospace;">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-family:monospace;">$<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/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>
<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/miniaturas-con-jquery/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Como Crear un Formulario Elegante con CSS e Imágenes</title>
		<link>http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/</link>
		<comments>http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 05:24:51 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Diseño web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=3919</guid>
		<description><![CDATA[¿Ya te aburriste de ver los mismos formularios sin gracia? Pues ahora puedes personalizarlos de formas sencillas, solo con un poco de conocimiento de CSS. Hay varias maneras de personalizar un formulario, esta vez les enseñaré 2 maneras, con resultados similares. Pero antes de comenzar a personalizar, debemos tener el boceto de lo que será [...]]]></description>
			<content:encoded><![CDATA[<h3>¿Ya te aburriste de ver los mismos formularios sin gracia?</h3>
<p>Pues ahora puedes personalizarlos de formas sencillas, solo con un poco de conocimiento de <strong>CSS</strong>.  Hay varias maneras de personalizar un formulario, esta vez les enseñaré 2 maneras, con resultados similares. Pero antes de comenzar a personalizar, debemos tener el boceto de lo que será nuestro formulario.</p>
<div class="tut_image">
<img src="http://willxd.com/wp-content/uploads/2009/08/formulario-base.jpg" alt="formulario-base" title="formulario-base" />
</div>
<p>Luego de ya saber cómo será la estructura, empezamos a hacer el html de nuestro formulario.</p>
<p><span id="more-3919"></span></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;">form</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">fieldset</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Registro<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;">p</span>&gt;</span>Registrate ahora! es gratis<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span>&gt;</span>
	Nombre
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Agrega tu nombre<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;">label</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span>&gt;</span>
	E-mail
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Agrega un correo valido<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;">label</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pass&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pass&quot;</span>&gt;</span>
	Password
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>5 caracteres como minimo<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;">label</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;password&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pass&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pass&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;registrar&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Registrarme&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">fieldset</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></div></div>

<p>Una vez que tenemos listo nuestro formulario, es hora de personalizarlo.</p>
<h4>1) Usando solo CSS</h4>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">fieldset<span style="color: #00AA00;">&#123;</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;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">475px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</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: #00AA00;">&#125;</span>
h1<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</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;">4.5em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
p<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">30px</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</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;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#cfe0e9</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
label<span style="color: #00AA00;">&#123;</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;">/* Importante, para la alineación */</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: #808080; font-style: italic;">/* ancho del label */</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">2.8em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
input<span style="color: #00AA00;">&#123;</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;">/* Importante, para la alineación */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">245px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">36px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Medidas del Input */</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</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;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;">2em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Tamaño más pequeño para las indicaciones */</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: #808080; font-style: italic;">/* hace que salte de linea */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Personzaliando el botón de registrar */</span>
<span style="color: #cc00cc;">#registrar</span><span style="color: #00AA00;">&#123;</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: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">140px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#d0e8f7</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#418eb6</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">185px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Hover a nuestro Botón 
   No funciona en IE6 (Uno de los peores navegadores) */</span>
<span style="color: #cc00cc;">#registrar</span><span style="color: #3333ff;">: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: #cc00cc;">#418eb6</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#d0e8f7</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Opcional - Bordes Redondeados
   Solo funciona con Firefox / Safari / Google Chrome */</span>
input<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#registrar</span><span style="color: #00AA00;">&#123;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Si usan esto ultimo no validara, porque aun no lo han estanderizado
   pero funciona a la perfección - salvo con IE (la oveja negra) */</span></pre></div></div>

<p>Es una forma fácil de personalizar, solo aprovechando lo que nos brinda <strong>CSS</strong>. Esta forma funciona perfectamente con IE6, IE7, Safari, Firefox y Google Chrome.</p>
<p><a href="http://willxd.com/demos/Formulario-CSS/">Demo - Personalizar el formulario usando solo CSS</a></p>
<h4>2) Usando Imágenes / CSS</h4>
<p>Ahora veremos como personalizar usando imágenes y CSS. Para este caso lo que hice fue    tratar de tener la menor cantidad de imágenes.</p>
<p>Comenzamos con todos los textos, para eso debes juntar todos los textos creados en algun editor de imágenes (aplicando los efectos que desees) a una sola imágen. Después de eso, jugamos un poco con CSS <img src='http://willxd.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  . </p>
<p>Lo que vamos a hacer va a ser algo parecido a lo que ya expiqué en <a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css">otro tutorial</a>, solo que esta vez jugaremos con las <strong>alturas</strong>.</p>
<p>Lo más importante en esto es saber usar "<strong>background-position</strong>".</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h1<span style="color: #00AA00;">,</span>p<span style="color: #00AA00;">,</span>label<span style="color: #00AA00;">,</span>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;">images/txt-form.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Imagen con todos los textos para h1,p,label,span */</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999em</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Hace desaparecer por arte de magia los textos xD! y solo quedaran las imagenes */</span>
<span style="color: #00AA00;">&#125;</span>
h1<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Posición inicial de la imágen */</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;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Medidas de nuestro título */</span>
<span style="color: #00AA00;">&#125;</span>
p<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">50px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* La posición disminuye según la altura donde se ubique la parte que quieres mostrar */</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-50px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">143px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">9px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
label<span style="color: #00AA00;">&#123;</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;">/* Importante para la alineación */</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: #808080; font-style: italic;">/* ancho que heredaran todos los label */</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">2em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
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;">block</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* hace que salte de linea */</span>
<span style="color: #00AA00;">&#125;</span>
.nombre<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Como esta parte comenzaba en Y = 59, le quitamos -59px a la posición */</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-59px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">23px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Importante poner la altura que queremos mostrar */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nombre</span> 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: #cc66cc;">0</span> <span style="color: #933;">-94px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.email<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-104px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">23px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.email</span> 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: #cc66cc;">0</span> <span style="color: #933;">-138px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.pass<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-148px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">23px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.pass</span> 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: #cc66cc;">0</span> <span style="color: #933;">-182px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora personalizamos los elementos que faltan que ya son más fáciles de entender</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">input<span style="color: #00AA00;">&#123;</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;">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/input.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* imagen con esquinas redondeadas para todos los input */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">245px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">36px</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: #cc66cc;">0</span> <span style="color: #933;">25px</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;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</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;">2em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#registrar</span><span style="color: #00AA00;">&#123;</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</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">140px</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</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/registrar.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-45px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Otra vez usando las posiciones */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">185px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* importante definir la altura*/</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#418eb6</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Hover a nuestro Boton 
   No funciona en IE6(para variar..) */</span>
<span style="color: #cc00cc;">#registrar</span><span style="color: #3333ff;">:hover</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#d0e8f7</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Y así hemos personalizado nuestro formulario usando imágenes y CSS (sobre todo usando <strong>background-position</strong>).<br />
Esta manera funciona bien en IE7, IE8, Firefox, Safari y Google Chrome. (No se ve bien en IE6)</p>
<p><a href="http://willxd.com/demos/Formulario-CSS-Images/">Demo - Personalizar formulario con imágenes / CSS</a></p>
<p>Ahora que ya saben usar las 2 maneras, pueden mejorarlo para que funcione para todos los navegadores (incluyendo el maldito IE6) combinando las 2 formas (Usar imágenes solo en las esquinas redondeadas y lo demás puro CSS).</p>
<p>Enlace: <a href="http://www.mediafire.com/download.php?bxtvqn3azjd">Descargar los 2 demos (Incluido el PSD del boceto)</a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/centrar-pagina-con-css/' rel='bookmark' title='Permanent Link: Centrar Pagina con CSS'>Centrar Pagina con CSS</a></li>
<li><a href='http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/' rel='bookmark' title='Permanent Link: Creando un excelente Menu con Photoshop y CSS'>Creando un excelente Menu con Photoshop y CSS</a></li>
<li><a href='http://willxd.com/sombra-con-css/' rel='bookmark' title='Permanent Link: Sombra con CSS'>Sombra con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Creando un excelente Menu con Photoshop y CSS</title>
		<link>http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/</link>
		<comments>http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 05:34:17 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Diseño web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu horizontal]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2806</guid>
		<description><![CDATA[¿Cansado de ver varios tutoriales sobre "Menus con CSS" y no entiendes nada? Pues haz llegado al sitio correcto x). Fuera de bromas, en este tutorial explicaré como poder crear un elegante menú en Photoshop ( la imagen que será el background de nuestro menú). Y lo maquetaremos con CSS, de una forma simple y [...]]]></description>
			<content:encoded><![CDATA[<p><strong>¿Cansado de ver varios tutoriales sobre "Menus con CSS" y no entiendes nada? </strong></p>
<p>Pues haz llegado al sitio correcto x). Fuera de bromas, en este tutorial explicaré como poder crear un elegante menú en Photoshop ( la imagen que será el background de nuestro menú). Y lo maquetaremos con CSS, de una forma simple y sobre todo validada, para no tener ningún problema con ningún explorador ( incluido IE6 xD ).</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/elegante-menu-con-photoshop-y-css/" rel="attachment wp-att-2906"><img src="http://willxd.com/wp-content/uploads/2009/06/elegante-menu-con-photoshop-y-css.jpg" alt="elegante-menu-con-photoshop-y-css" title="elegante-menu-con-photoshop-y-css" width="550" height="202" class="aligncenter size-full wp-image-2906" /></a></p>
<p><span id="more-2806"></span></p>
<h3>I) Creación del background de nuestro menú en Photoshop</h3>
<p>1.- Primero creamos un nuevo documento en Photoshop de <strong>500 x 40 pixeles.</strong></p>
<p>2.- Ahora con la herramienta <strong>Rectángulo Redondeado</strong>, crearemos un rectángulo del tamaño del documento ( 500 x 40 ) con un radio de <strong>7px</strong>. de color <strong>#5b4949</strong>.</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-1/" rel="attachment wp-att-2809"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-1.jpg" alt="menu-con-css-1" title="menu-con-css-1" width="550" height="591" class="aligncenter size-full wp-image-2809" /></a></p>
<p>3.- Ahora con la <strong>herramienta texto</strong> escribiremos las categorías de nuestro menú. </p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-2/" rel="attachment wp-att-2844"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-2.jpg" alt="menu-con-css-2" title="menu-con-css-2" width="550" height="354" class="aligncenter size-full wp-image-2844" /></a></p>
<p>4.- Luego crearemos lo que serán <strong>las seperaciones</strong> de las secciones del menú. Para eso usaremos <strong>la herramienta lápiz</strong> con 1px de grosor. Crearemos 2 líneas, una con un color <strong>#715555</strong> y la otra con <strong>#3e3232</strong>. (Debemos elegir colores que hagan contraste con el fondo del menú y también entre las 2 líneas).</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-3/" rel="attachment wp-att-2853"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-3.jpg" alt="menu-con-css-3" title="menu-con-css-3" width="550" height="426" class="aligncenter size-full wp-image-2853" /></a></p>
<p>5.- Seleccionamos todas las capas, y nos vamos a <strong>Capa > Nueva > Grupo</strong>. Se abrirá una nueva ventana, donde le pondremos por nombre <strong>"Nav"</strong></p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-4/" rel="attachment wp-att-2856"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-4.jpg" alt="menu-con-css-4" title="menu-con-css-4" width="550" height="768" class="aligncenter size-full wp-image-2856" /></a></p>
<p>6.- Ahora duplicaremos el grupo, para eso debemos seleccionar el grupo, luego ir a <strong>Capa > Duplicar Grupo</strong> y lo llamaremos <strong>"Nav Hover"</strong></p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-5/" rel="attachment wp-att-2859"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-5.jpg" alt="menu-con-css-5" title="menu-con-css-5" width="550" height="472" class="aligncenter size-full wp-image-2859" /></a></p>
<p>7.- Ahora en el nuevo grupo que creamos "Nav Hover", cambiaremos el color del fondo de nuestro menú. Para eso le damos doble click a la capa del fondo y le pondremos una <strong>superposición de degradado</strong> con la siguiente configuración. En esta parte también podemos cambiar el color del texto de las categorías.</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-6/" rel="attachment wp-att-2864"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-6.jpg" alt="menu-con-css-6" title="menu-con-css-6" width="550" height="362" class="aligncenter size-full wp-image-2864" /></a></p>
<p>8.- Ahora que ya tenemos 2 grupos, una que es la del menú en estado normal y la otra que será para el <strong>hover</strong> ( cuando pasamos el mouse por el menú). Nos vamos a <strong>Imagen > Tamaño de Lienzo</strong> y duplicaremos la altura, es decir pondremos 80px.<br />
<a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-7/" rel="attachment wp-att-2871"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-7.jpg" alt="menu-con-css-7" title="menu-con-css-7" width="550" height="476" class="aligncenter size-full wp-image-2871" /></a></p>
<p>9.- Ahora debemos posicionar nuestros 2 grupos, de tal manera de que quede uno arriba del otro. Para eso debemos seleccionar todo el documento y seleccionar el grupo "Nav" , seleccionar la herramienta <strong>Mover</strong> y posicionarlo en la parte superior. Lo mismo para "Nav Hover" solo que a este lo pondremos en la parte inferior.</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-8/" rel="attachment wp-att-2875"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-8.jpg" alt="menu-con-css-8" title="menu-con-css-8" width="550" height="449" class="aligncenter size-full wp-image-2875" /></a></p>
<p>10.- Solo queda guardar la imagen, que será el "background" de nuestro menú.</p>
<h3>II) Maquetación de nuestro Menú</h3>
<p>Ahora ya que acabamos con el diseño, procedemos a crear "el esqueleto" de nuestro menú en html.</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;nav&quot;</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> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ajax&quot;</span>&gt;</span>Ajax<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> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;css&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;&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> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js&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: #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> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jQ&quot;</span>&gt;</span>jQuery<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> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;php&quot;</span>&gt;</span>PHP<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> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wp&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: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Como verán, le he aplicado un id a cada categoría del menú. Esto es para poder diferenciarlos, a la hora de crear el CSS.</p>
<p>Ahora solo debemos "jugar" un poco con CSS <img src='http://willxd.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</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;">500px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</span> ul<span style="color: #00AA00;">&#123;</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;">/* Para quitar todos los estilos de la lista */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Definimos el ancho de nuestra lista */</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Definimos el alto de nuestra lista */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> ul li<span style="color: #00AA00;">&#123;</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;">/* Para hacer que el menú sea horizontal */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Posicionamos el texto, de tal manera que no sea visible */</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
	<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/menu-css.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* la imagen que hicimos en photoshop */</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: #808080; font-style: italic;">/* Hacemos que los links se muestren por bloques
                           y no en línea, es importante :) */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora, viene lo interesante <img src='http://willxd.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  , la idea es fácil. Solo debemos asignarle el ancho de cada categoría y posicionar la imagen de fondo. Acá es donde le damos uso a los <strong>"id"</strong> que le asignamos a cada categoría cuando creamos "el esqueleto" en HTML.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #cc00cc;">#ajax</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">68px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#css</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;">-68px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">52px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#js</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;">-120px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">106px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#jQ</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;">-226px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">86px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#php</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;">-312px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">62px</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#wp</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;">-374px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">126px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora de la misma forma, debemos posicionar el background, para el <strong>"hover"</strong> de nuestro menú. Para este caso ya no es necesareo asignarle el ancho, ya que este valor lo hereda del <strong>a#id</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#ajax</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: #cc66cc;">0</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#css</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;">-68px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#js</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;">-120px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#jQ</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;">-226px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#php</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;">-312px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#wp</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;">-374px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><a href="http://willxd.com/demos/Creando-un-excelente-Menu-con-Photoshop-y-CSS/" alt="Demo del menu hecho en Photoshop y CSS">Ver Demo del menú</a><br />
<a href="http://www.mediafire.com/download.php?noyj2wxguik" alt="Descargar el menú hecho con Photoshop y CSS">Descargar el menú con Photoshop y CSS</a> ( incluye el PSD) </p>
<p>El menú funciona perfectamente en IE 6, IE 7 , IE 8, Mozilla Firefox, Safari y Google Chrome. (Todos probados por mí). Y sobre todo está validada.</p>
<p>Como verán, no es nada del otro mundo crear un menú con Photoshop y CSS. Si tienes alguna duda, no dudes en comentar. Y si tienes otro método, o alguna parte que se pueda optimizar, bienvenido <img src='http://willxd.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  los comentarios están para eso.</p>


<p>Related posts:<ol><li><a href='http://willxd.com/5-menu-horizontales-con-css/' rel='bookmark' title='Permanent Link: 5 Menu Horizontales con CSS'>5 Menu Horizontales con CSS</a></li>
<li><a href='http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/' rel='bookmark' title='Permanent Link: Como Crear un Formulario Elegante con CSS e Imágenes'>Como Crear un Formulario Elegante con CSS e Imágenes</a></li>
<li><a href='http://willxd.com/sombra-con-css/' rel='bookmark' title='Permanent Link: Sombra con CSS'>Sombra con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/feed/</wfw:commentRss>
		<slash:comments>23</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-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;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-family:monospace;"><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-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: #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/miniaturas-con-jquery/' rel='bookmark' title='Permanent Link: Miniaturas con jQuery'>Miniaturas con jQuery</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>
<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-family:monospace;"><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-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;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/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/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/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/ultimo-tweet-con-jquery/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Diferencias entre ID y Class</title>
		<link>http://willxd.com/diferencias-entre-id-y-class/</link>
		<comments>http://willxd.com/diferencias-entre-id-y-class/#comments</comments>
		<pubDate>Thu, 07 May 2009 20:13:28 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2552</guid>
		<description><![CDATA[Econtrar diferencias entre los identificadores “ID” y las clases “Class” es una de las primeras dudas que aparecen en el aprendizaje de CSS. A simple vista no parece haber ninguna diferencia, pero sin embargo estamos muy equivocados, ya que sí existen grandes diferencias. Lo que siempre se estila decir para explicar es “ID solo se [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://willxd.com/wp-content/uploads/2009/05/diferencias-id-class.jpg" alt="diferencias-id-class" title="diferencias-id-class" width="200" height="200" class="alignleft size-full wp-image-2554" /></p>
<p>Econtrar diferencias entre los identificadores “ID” y las clases “Class” es una de las primeras dudas que aparecen en el aprendizaje de CSS.<br />
A simple vista no parece haber ninguna diferencia, pero sin embargo estamos muy equivocados, ya que sí existen grandes diferencias.</p>
<p><span id="more-2552"></span></p>
<p>Lo que siempre se estila decir para explicar es<br />
<em>“ID solo se usa una vez y Class se utiliza varias veces”</em><br />
¿Pero por qué? a mi parecer esa no es una explicación, sino una simple proposición. Sin embargo tienen razón, pero siempre es bueno saber el porqué  (no siempre crean todo lo que le dicen por más ducho que sea, siempre pregunten el ¿Por Qué? xD )</p>
<h2>Identificadores "ID"</h2>
<p>Para comenzar el “ID” es un identificador de un objeto, y un objeto solo puede tener un solo identificador, así como en la vida cotidiana, nosotros tenemos un DNI (documento de identidad) que es el cual nos identifica, y nadie más puede tener el mismo DNI.</p>
<p>Veamos un ejemplo:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#contenido</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#9CC</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;">padding</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;">#sidebar</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;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#99C</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#footer</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CCC</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;">#093</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">12px</span> <span style="color: #933;">20px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>


<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;contenido&quot;</span>&gt;&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;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidebar&quot;</span>&gt;&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;">id</span><span style="color: #ff0000;">&quot;=footer&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>En este ejemplo tenemos 3 identificadores que no se repiten.</p>
<h4>¿Qué pasa si repetimos un identificador?</h4>
<p>Una de los primeros problemas es que no podremos validar el CSS.  Ya que cuando en una web tenemos varios objetos con el mismo ID, hay errores en la interpretación de los navegadores.</p>
<p>El identificador no solo es importante en CSS sino también en el uso de JavaScript, Ajax con los que los identificadores toman un papel muy importante.</p>
<p>Otro de los usos de “id” es que podemos poner links en nuestros sitios que nos dirigirá a sitios específicos.  </p>
<p>Usando el ejemplo anterior.  Si tenemos un link así:</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;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#footer&quot;</span>&gt;</span>
Ir al footer
<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>el navegador nos dirigirá al elemento que tenga como “id” a footer.</p>
<h2>Clases (Class)</h2>
<p>En cambio las clases “class” son propiedades que un objeto o varios objetos pueden tener.<br />
Además a un objeto le podemos aplicar varias clases.</p>
<p>Veamos un ejemplo</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.texto</span> <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#069</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.negrita</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>


<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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;texto&quot;</span>&gt;</span>
	En este texto heredamos las propiedades de la clase texto
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
<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;texto&quot;</span>&gt;</span>
	Volvemos a heredar las propiedades de la clase texto
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
<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;texto negrita&quot;</span>&gt;</span>
	Este texto hereda las propiedades de las clases texto y negrita.
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<h2>Otros..</h2>
<p>Otro de los puntos que debemos saber es que si a un elemento le aplicamos un “ID” y un “Class” el elemento herederá preferentemente las propiedades del “ID”<br />
Por ejemplo:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.com<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#939</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;">18px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#fil</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#393</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;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>


<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;fil&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;com&quot;</span>&gt;</span>
Este texto hereda las propiedades tanto del identificador como de la clase. 
Pero si se repiten, toma como preferencia el del identificador.
<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>En ese ejemplo toma como preferencias las propiedades del “ID” que le asigné.<br />
Espero que haya despejado algunas dudas y si por el contrario si te di más dudas xD no dudes en comentar para saber tu opinión o duda.</p>
<p>Salu2!</p>


<p>Related posts:<ol><li><a href='http://willxd.com/sombra-con-css/' rel='bookmark' title='Permanent Link: Sombra con CSS'>Sombra con CSS</a></li>
<li><a href='http://willxd.com/fondo-transparente-con-css/' rel='bookmark' title='Permanent Link: Fondo transparente con CSS'>Fondo transparente con CSS</a></li>
<li><a href='http://willxd.com/centrar-pagina-con-css/' rel='bookmark' title='Permanent Link: Centrar Pagina con CSS'>Centrar Pagina con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/diferencias-entre-id-y-class/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Descargar Imagenes con un Click</title>
		<link>http://willxd.com/descargar-imagenes-con-un-click/</link>
		<comments>http://willxd.com/descargar-imagenes-con-un-click/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 20:43:54 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2155</guid>
		<description><![CDATA[Encontré una manera fácil de descargar imágenes con un solo click usando un pequeño script en PHP. El pequeño script será el siguiente: &#60;?php $enlace = &#34;imagenes/&#34;.$id; header &#40;&#34;Content-Disposition: attachment; filename=&#34;.$id.&#34;\n\n&#34;&#41;; header &#40;&#34;Content-Type: application/octet-stream&#34;&#41;; header &#40;&#34;Content-Length: &#34;.filesize&#40;$enlace&#41;&#41;; readfile&#40;$enlace&#41;; ?&#62; Lo guardaremos con el nombre "desc.php". Algo importante del código es "$enlace = "imagenes/".$id;" que es [...]]]></description>
			<content:encoded><![CDATA[<div class="tut_image"><img src="http://willxd.com/wp-content/uploads/2009/04/descargar-imagenes-con-1click.jpg" alt="descargar-imagenes-con-1click" title="descargar-imagenes-con-1click" width="200" height="200" class="aligncenter size-full wp-image-2157" /></div>
<p>Encontré una manera fácil de descargar imágenes con un solo click <img src='http://willxd.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  usando un pequeño script en PHP.</p>
<p><span id="more-2155"></span></p>
<p>El pequeño script será el siguiente:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$enlace</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;imagenes/&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$id</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Disposition: attachment; filename=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Type: application/octet-stream&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Length: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">filesize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$enlace</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">readfile</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$enlace</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Lo guardaremos con el nombre "desc.php".<br />
Algo importante del código es "<strong>$enlace = "imagenes/".$id;</strong>" que es donde estarán guardados nuestras imágenes, en este caso debemos guardar las imágenes en la carpeta "imagenes"</p>
<p>Luego en nuestra página colocamos esto:</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;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;desc.php?id=imagen1.jpg&quot;</span>&gt;</span>
<span style="color: #009900;">&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;imagenes/imagen1.jpg&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;256&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;192&quot;</span> &gt;</span>
<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>Donde imagen1 sería la imagen que podremos descargar con 1 solo click <img src='http://willxd.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Lo útil de este pequeño script, es que podemos poner la imagen en un tamaño menor y cuando lo descargamos, lo descargaremos en su tamaño real.</p>
<p>Espero les ayude <img src='http://willxd.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  !</p>


<p>Related posts:<ol><li><a href='http://willxd.com/marco-decorativo-para-imagenes-con-css/' rel='bookmark' title='Permanent Link: Marco decorativo para imagenes con CSS'>Marco decorativo para imagenes con CSS</a></li>
<li><a href='http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/' rel='bookmark' title='Permanent Link: Como Crear un Formulario Elegante con CSS e Imágenes'>Como Crear un Formulario Elegante con CSS e Imágenes</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/descargar-imagenes-con-un-click/feed/</wfw:commentRss>
		<slash:comments>5</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-family:monospace;"><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-family:monospace;"><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-family:monospace;">$<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-family:monospace;">$<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/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/ultimo-tweet-con-jquery/' rel='bookmark' title='Permanent Link: Ultimo Tweet con jQuery'>Ultimo Tweet con jQuery</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/ocultar-link-con-jquery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

