<?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>Cuadernodeapuntes.es &#187; Tutoriales</title>
	<atom:link href="http://www.cuadernodeapuntes.es/category/tutoriales/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cuadernodeapuntes.es</link>
	<description>Apuntes de informática</description>
	<lastBuildDate>Wed, 23 Jun 2010 17:58:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Iniciación al desarrollo web con Java</title>
		<link>http://www.cuadernodeapuntes.es/2010/06/iniciacion-al-desarrollo-web-con-java/</link>
		<comments>http://www.cuadernodeapuntes.es/2010/06/iniciacion-al-desarrollo-web-con-java/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 12:40:39 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[Memorias]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=632</guid>
		<description><![CDATA[
			
				
			
		
Hace mas o menos de 6 meses empece una serie de post titulados &#8220;Memorias de un Webmaster&#8221; en el que posteaba tutoriales para realizar diseño web, ya que en la universidad estaba dando clases de diseño web por lado cliente. Este cuatrimestre ha tocado dar lado servidor con Java, asi que ahora toca hacer los ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2010%2F06%2Finiciacion-al-desarrollo-web-con-java%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2010%2F06%2Finiciacion-al-desarrollo-web-con-java%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://tomcat.apache.org/"><img class="alignleft" title="Apache Tomcat" src="http://tomcat.apache.org/images/tomcat10.jpg" alt="Apache Tomcat" width="157" height="102" /></a>Hace mas o menos de 6 meses empece una serie de post titulados &#8220;Memorias de un Webmaster&#8221; en el que posteaba tutoriales para realizar diseño web, ya que en la universidad estaba dando clases de diseño web por lado cliente. Este cuatrimestre ha tocado dar lado servidor con Java, asi que ahora toca hacer los tutoriales del lado servidor, y hoy vamos a aprender como empezar, utilizando Apache Tomcat y NetBeans.</p>
<p><span id="more-632"></span></p>
<p>Lo primero es tener instalado <a href="http://netbeans.org/">Netbeans</a>, que es el IDE en el que vamos a trabajar, y descargarnos <a href="http://tomcat.apache.org/">Apache Tomcat</a>, que es el servidor que utilizaremos para desarrollar.</p>
<p>Por supuesto, necesitaremos tener instalado java en el ordenador, pero obviare la explicacacion de como instalarlo, si tienes dudas comentalo, y si mucha gente pregunta, hare un tutorial solo para eso.</p>
<p>Una vez instalado y abierto NetBeans, tenemos que darle a crear nuevo proyecto, seleccionamos Java Web -&gt; Web Application y damos a Next. Ahora le damos un nombre al proyecto, escribimos la ruta en la que queremos que se guarde y le volvemos a dar a Next.<br />
En este momento nos pedira configurar el servidor, asi que instalaremos Tomcat en NetBeans, hacemos click en Add y elegimos Tomcat 6.0 en la ventana que se nos abre. Descomprimimos el fichero que nos hemos bajado de la web de Tomcat en alguna carpeta que no vayamos a borrar accidentalmente y copiamos la ruta de la carpeta en la ventana de NetBeans, de Username ponemos admin y de contraseña lo mismo, ya que va a ser una versión para desarrollo.<br />
Ya podemos hacer click en Finish y tendremos nuestro nuevo proyecto con Tomcat instalado.</p>
<p><a rel="attachment wp-att-634" href="http://www.cuadernodeapuntes.es/2010/06/iniciacion-al-desarrollo-web-con-java/pantallazo12/"><img class="alignleft size-medium wp-image-634" title="Estructura ficheros" src="http://www.cuadernodeapuntes.es/wp-content/uploads/2010/06/pantallazo12-300x148.png" alt="Estructura ficheros proyecto web Java" width="300" height="148" /></a>Si desplegamos la pestaña Projects, nos aparecera una estructura como la de la imagen de la izquierda. En mi caso Qraces es el nombre del proyecto.<br />
La carpeta Web Pages es la que contiene la esctructura de la web, si desde el navegador de archivos explorais la carpeta que ha creado NetBeans con el proyecto, corresponde a la carpeta &#8220;web&#8221; dentro del proyecto.<br />
Source Packages se refiere a &#8220;la parte Java&#8221; de la página, donde van las clases java y los Servlets, y corresponde con &#8220;src/java&#8221;.<br />
Test Packages incluira los paquetes de prueba que se emplearan en la web.<br />
Libraries las librerias que necesitemos para que funcione correctamente el proyecto y Test Libraries las librerias de prueba.<br />
Y para terminar, Configuration Files hace referencia a los ficheros de configuración de la web.<br />
Todo esto lo veremos más detalle según vayamos avanzando en futuros tutoriales.</p>
<p>Puede que te preguntes que para que sistema operativo es lo que acabo de contar, pero al tratarse de Java, y al existir NetBeans para multitud de S.O, este tutorial debería de valer para Windows, Linux y Mac, aunque yo trabajo en Ubuntu (Linux).</p>
<p>En el siguiente tutorial empezaremos con la carpeta &#8220;Web Pages&#8221; y con los ficheros *.jsp, ya que son los mas sencillos.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2010/06/iniciacion-al-desarrollo-web-con-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sincronización de Gmail en el Iphone / Ipod Touch con Google Sync</title>
		<link>http://www.cuadernodeapuntes.es/2010/02/sincronizacion-de-gmail-en-el-iphone-ipod-touch-con-google-sync/</link>
		<comments>http://www.cuadernodeapuntes.es/2010/02/sincronizacion-de-gmail-en-el-iphone-ipod-touch-con-google-sync/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 17:41:09 +0000</pubDate>
		<dc:creator>yamac614</dc:creator>
				<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=381</guid>
		<description><![CDATA[
			
				
			
		
En este video hago un pequeño tutorial mostrando cómo sincronizar Gmail con Exchange en el Iphone / Ipod Touch. Si tenéis uno de estos gadgets o alguno de los compatibles con Google Sync (Blackberry, Nokia.. ).
 Os recomiendo 100% que lo sincronicéis de esta manera ya que la experiencia de usuario es optimizada radicalmente, hasta ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2010%2F02%2Fsincronizacion-de-gmail-en-el-iphone-ipod-touch-con-google-sync%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2010%2F02%2Fsincronizacion-de-gmail-en-el-iphone-ipod-touch-con-google-sync%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>En este video hago un pequeño tutorial mostrando cómo sincronizar Gmail con Exchange en el Iphone / Ipod Touch. Si tenéis uno de estos gadgets o alguno de los compatibles con Google Sync (Blackberry, Nokia.. ).<br />
 Os recomiendo 100% que lo sincronicéis de esta manera ya que la experiencia de usuario es optimizada radicalmente, hasta el punto de sincronizar el email de forma automática. </p>
<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/tYrxhqil-Gg&#038;hl=es_ES&#038;fs=1&#038;rel=0&#038;color1=0x2b405b&#038;color2=0x6b8ab6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/tYrxhqil-Gg&#038;hl=es_ES&#038;fs=1&#038;rel=0&#038;color1=0x2b405b&#038;color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2010/02/sincronizacion-de-gmail-en-el-iphone-ipod-touch-con-google-sync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Arreglar la pantalla Ubuntu Remix &#8211; Acer Aspire One Za3</title>
		<link>http://www.cuadernodeapuntes.es/2010/01/arreglar-la-pantalla-ubuntu-remix-acer-aspire-one-za3/</link>
		<comments>http://www.cuadernodeapuntes.es/2010/01/arreglar-la-pantalla-ubuntu-remix-acer-aspire-one-za3/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 21:41:38 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[Acer Aspire One]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=256</guid>
		<description><![CDATA[
			
				
			
		
Estas navidades pasadas me ha caido un Acer Aspire One Za3, en el cual nada más recibirlo instalé Ubuntu Remix, sin los resultados esperados.
Primero no detectaba la batería, ya comenté la solución, y ahora quiero enlazar a la solución para arreglar la pantalla, incluso después de la última actualización del Kernel, que hizo que tuviera ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2010%2F01%2Farreglar-la-pantalla-ubuntu-remix-acer-aspire-one-za3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2010%2F01%2Farreglar-la-pantalla-ubuntu-remix-acer-aspire-one-za3%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Estas navidades pasadas me ha caido un Acer Aspire One Za3, en el cual nada más recibirlo instalé Ubuntu Remix, sin los resultados esperados.</p>
<p>Primero <a href="http://www.cuadernodeapuntes.es/2009/12/bateria-de-acer-aspire-one-za3-y-ubuntu-remix/">no detectaba la batería</a>, ya comenté la solución, y ahora quiero enlazar a la solución para arreglar la pantalla, incluso después de la última actualización del Kernel, que hizo que tuviera que estar una semana con la versión antigua.</p>
<p><a href="http://www.ubuntu.org.uy/main/?q=node/2063">Aquí está el tutorial</a>, en la web Ubuntu Urugay (creo que es esa).</p>
<p>Espero que te sea de utilidad.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2010/01/arreglar-la-pantalla-ubuntu-remix-acer-aspire-one-za3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax con JQuery</title>
		<link>http://www.cuadernodeapuntes.es/2010/01/ajax-con-jquery/</link>
		<comments>http://www.cuadernodeapuntes.es/2010/01/ajax-con-jquery/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 17:46:07 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Memorias]]></category>
		<category><![CDATA[Sinpastaenelbolsillo.com]]></category>
		<category><![CDATA[TEWC]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=214</guid>
		<description><![CDATA[
			
				
			
		
Después de la "resaca" de la nochevieja, y de felicitar el 2010 (o 1948), es hora de ponerse las pilas y empezar con algo serio.
Esta vez voy a contar como utilizar JQuery para implementar AJAX en tu página web, y de qué manera puedes solventar el mayor problema que tiene AJAX ahora mismo, que no ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2010%2F01%2Fajax-con-jquery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2010%2F01%2Fajax-con-jquery%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Después de la "resaca" de la nochevieja, y de <a href="http://www.cuadernodeapuntes.es/2009/12/feliz-ano-a-todos-los-lectores/">felicitar el 2010</a> (o <a href="http://generacionnegativa.blogspot.com/2007/01/feliz-1984.html">1948</a>), es hora de ponerse las pilas y empezar con algo serio.<br />
Esta vez voy a contar como utilizar JQuery para implementar AJAX en tu página web, y de qué manera puedes solventar el mayor problema que tiene AJAX ahora mismo, que no es otro que la indexacion por parte de los buscadores como Google.</p>
<p>Antes de empezar voy a realizar una breve introducción a AJAX,y a comentar las ventajas y desventajas que trae, y para empezar, tengo que decir que AJAX, siglas de <em><strong>A</strong>synchronous <strong>J</strong>avaScript <strong>A</strong>nd <strong>X</strong>ML</em>, es un conjunto de 4 tecnologías que sirve para comunicar el navegador con el servidor sin necesidad de recargar la página.<br />
Esto nos brinda muchas oportunidades, ya que, junto con los efectos de JQuery se pueden lograr cosas sorprendentes, y además, como no hace falta recargar la página, podemos ahorrar ancho de banda, lo que reduce la carga del servidor.</p>
<p>No voy a entrar más en detalle, para más información puedes acceder a la <a href="http://es.wikipedia.org/wiki/AJAX">Wikipedia</a>, o buscar en Google, pero ahora vamos a implementarlo.</p>
<h2><span id="more-214"></span>Funciones AJAX de JQuery</h2>
<p>JQuery ya viene con <a href="http://docs.jquery.com/Ajax">AJAX </a>de serie, y tiene multitud de funciones muy simples que se encargan de realizar toda la labor "chunga", pero de momento con la función <a href="http://docs.jquery.com/Ajax/load">load()</a>, de momento , nos vale.</p>
<p>El funcionamiento es muy sencillo, aunque se puede complicar más para realizar peticiones mas complejas, no es necesario, y para ellas recurriremos a la función <a href="http://docs.jquery.com/Ajax/jQuery.ajax">ajax()</a>.</p>
<h3>Load()</h3>
<p>Espero que no te importe estimado navegante, que para explicar la función utilice el código de mi <a href="http://www.sinpastaenelbolsillo.com/empresas/1.html">web para ganar dinero</a>, ya que es un código que de momento funciona, y puedes ver en cualquier momento.</p>
<p>La solución al problema de los buscadores es "sencilla" pero laboriosa, ya que se trata de realizar la página sin AJAX y de manera que funcione, y después introducir el atributo <em>rel</em> en donde pondremos la url que queramos llamar para cargar, de manera que los navegadores que no tienen Javascript (como los rastreadores de Google) puedan navegar por la página, y así también, si alguien abre algún enlace en una pestaña nueva, se cargará correctamente.</p>
<p>Para la función <em>load()</em> voy a usar de ejemplo el calendario que hay en Sinpasta, ya que funciona tanto por AJAX como sin el, y su funcionamiento es muy sencillo.<br />
Antes de poner el código HTML, tengo que decir que hay un fichero, llamado <em>ajax.php</em> que simplemente recibe por parámetro una url de un archivo, y lo incluye, lo uso para evitar tener líos con las rutas relativas, y que es el que se encarga de llamar a <em>calendar.php</em>, que es el que genera toda la vista HTML del calendario.</p>
<p>El código HTML de los enlaces que hacen que el calendario cambie la vista del mes es el siguiente:</p>
<div class="igBar"><span id="lhtml-4"><a href="#" onclick="javascript:showPlainTxt('html-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-4">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>a title=&quot;Diciembre&quot; href=&quot;/index.php?fecha=2009-12&quot; rel=&quot;ajax.php?var=includes/sidebar/calendar.php<span style="color: #ddbb00;">&amp;amp;</span>amp;fecha=2009-12&quot;<span style="color: #ddbb00;">&amp;gt;</span>« Diciembre<span style="color: #ddbb00;">&amp;lt;</span>/a<span style="color: #ddbb00;">&amp;gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como puedes observar, el atributo <em>href</em> hace referencia a un archivo distinto que el atributo <em>rel</em>, a continuación pongo el Javascript necesario para que funcione con AJAX</p>
<div class="igBar"><span id="ljavascript-5"><a href="#" onclick="javascript:showPlainTxt('javascript-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-5">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#prev a"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">livequery</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'click'</span>, <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#calendario .sidebarcontent"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">rel</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Acabo de caer en que no he explicado livequery, y es un plugin realmente importante, así que voy a explicarlo ahora, de momento, del código anterior sólamente fijate en las líneas que hay dentro de <em>function</em>.<br />
En la primera puedes ver el funcionamiento de <em>load</em>, que lo único que hace es pedir al servidor el fichero que se encuentra donde especifica el atributo rel del elemento que lo ha llamado, y lo mete dentro de <strong>"#calendario .sidebarcontent"</strong>.<br />
En la segunda se devuelve <strong>false</strong>, de este modo el navegador no se dirigirá hacia donde apunta el atributo <em>href</em>.</p>
<h3>Pequeña pausa para explicar LiveQuery</h3>
<p>Si estás realizando una página web con AJAX, puede que te aya surgido el problema de que cargas una parte de la página con AJAX, y que de repente todos las acciones que tendrían que realizarse a través de JavaScript dentro de la parte que has cargado por AJAX no funcionan, eso es debido a que el JavaScript se aplica sobre la página una vez cargada, y al cargar nuevos elementos, no se les aplica el tratamiento JavaScript y por lo tanto no funciona.<br />
Para solucionarlo tenemos el plugin <a href="http://plugins.jquery.com/project/livequery/">LiveQuery</a>. Se instala igual que todos, y su funcionamiento es muy simple, tan sólo tienes que llamar a la función <em>livequery</em> que toma dos atributos, el primero el el "disparador", en el ejemplo anterior, era <em>click</em>, que es como si se hubiera puesto <strong>.click(function(){</strong>, pero eso no hubiera funcionado bien. El segundo atributo es la función que se va a realizar.</p>
<h3>ajax()</h3>
<p>Una vez vista la función <em>load</em>, vamos a ver como enviar un formulario a través de AJAX, ahora con la función <em>ajax()</em>, valga la redundancia.<br />
El código HTML es el que uso en <a href="http://www.sinpastaenelbolsillo.com/empresas/1.html">Sinpasta</a>, no lo voy a poner porque es muy largo y es un formulario normal, sólo que cada input tiene una <em>id</em> para acceder a él a través de los selectores de JQuery.</p>
<p>El código Javascript es el siguiente:</p>
<div class="igBar"><span id="ljavascript-6"><a href="#" onclick="javascript:showPlainTxt('javascript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-6">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#comentario_button"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">livequery</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'click'</span>, <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> noticia = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#noticia"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"value"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> autor = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#autor"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"value"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> correo = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#correo"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"value"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> url = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#url"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"value"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> comentario = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#comentario"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"value"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> dataString = <span style="color: #3366CC;">'autor='</span>+ autor + <span style="color: #3366CC;">'&amp;amp;correo='</span> + correo + <span style="color: #3366CC;">'&amp;amp;url='</span> + url + <span style="color: #3366CC;">'&amp;amp;comentario='</span> + comentario + <span style="color: #3366CC;">'&amp;amp;noticia='</span> + noticia;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#comentarios'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">empty</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#comentarios'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#formulario'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">empty</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#formulario'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$.<span style="color: #006600;">ajax</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">type: <span style="color: #3366CC;">"POST"</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">url: <span style="color: #3366CC;">"/ajax.php?var=includes/content/formulario.php&amp;amp;noticia="</span> + noticia,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">data: dataString,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">dataType: <span style="color: #3366CC;">"html"</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">success: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>respuesta<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#formulario'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>respuesta<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#comentarios'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"/ajax.php?var=includes/content/comentarios.php&amp;amp;noticia="</span> + noticia, <span style="color: #003366; font-weight: bold;">null</span>, <span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#formulario'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">fadeIn</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"1500"</span>, <span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#comentarios'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">fadeIn</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"1500"</span>, <span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como puedes observar, he usado livequery, ya que el formulario va dentro de una parte de la página que se carga con AJAX, lo siguiente es meter en variables los campos que rellena el navegante.<br />
Después genero una String que será la que se pase en forma de petición POST al servidor, con la funcion <em>ajax()</em>, pero antes elimino todo el html que tiene el <strong>#formulario</strong> y <strong>#comentarios</strong> y los oculto.<br />
Lo que voy a comentar ahora linea a linea es lo que hay dentro de la funcion <em>ajax()</em>, que es lo más interesante:</p>
<ol>
<li>Lo primero que hago es definir el tipo de petición que es, en este caso, al enviar el formulario, prefiero que sea POST.</li>
<li>La url a donde ha de ir la petición, como siempre, a través de ajax.php.</li>
<li><strong>data</strong> hace referencia a los datos que hay que pasar, en este caso la url pasada antes.</li>
<li>El <strong>datatype</strong> indica que los datos van en HTML.</li>
<li>En esta línea indico la función que quiero que se realize, pasando como parámetro la respuesta a la petición POST.</li>
<li>Cargo el HTML de la respuesta en <strong>#formulario</strong> y en <strong>#comentarios</strong> cargo todos los comentarios de esa entrada.</li>
<li>Para acabar hago que tanto <strong>#formulario</strong> como<strong> #comentarios</strong> aparezcan con un efecto <em>fadeIn()</em>.</li>
</ol>
<p>He quitado las comprobaciones del formulario, que el correo sea válido, que todos los campos esten completados etc... para que no sea muy largo el código.</p>
<p>Existen otras muchas funciones para utilizar AJAX con JQuery, entre ellas una de las que más uso yo es getJSON, pero es un poco más avanzada, y al menos para lo básico de AJAX con lo puesto aquí es suficiente. Si te interesa el tema del JSON espero poder publicar en breves una entrada hablando sólo de él, te invito a pasarte de vez en cuando, o a suscribirte al <a href="http://feeds.feedburner.com/Cuadernodeapuntes">feed</a> para estar al tanto de su publicación.</p>
<p>Espero que te haya gustado, y sobretodo que te haya sido útil y te haya dado ideas para mejorar tu web. Siento no haber puesto fotos, se que hacen la entrada mas amena, pero en este caso no creo que fuera necesario.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 1699px; width: 1px; height: 1px;">$("#comentario_button").livequery('click', function() {<br />
var noticia = $("#noticia").attr("value");<br />
var autor = $("#autor").attr("value");<br />
var correo = $("#correo").attr("value");<br />
var url = $("#url").attr("value");<br />
var comentario = $("#comentario").attr("value");</p>
<p>if (autor == "") {<br />
$("#autor_error").show();<br />
$("#autor").focus();<br />
return false;<br />
}</p>
<p>if (correo == "") {<br />
$("#correo_error").show();<br />
$("#correo").focus();<br />
return false;<br />
}</p>
<p>if (comentario == "") {<br />
$("#comentario_error").show();<br />
$("#comentario").focus();<br />
return false;<br />
}</p>
<p>var dataString = 'autor='+ autor + '&amp;correo=' + correo + '&amp;url=' + url + '&amp;comentario=' + comentario + '&amp;noticia=' + noticia;</p>
<p>$('#comentarios').empty();<br />
$('#comentarios').hide();<br />
$('#formulario').empty();<br />
$('#formulario').hide();</p>
<p>$.ajax({<br />
type: "POST",<br />
url: "/ajax.php?var=includes/content/formulario.php&amp;noticia=" + noticia,<br />
data: dataString,<br />
dataType: "html",<br />
success: function(respuesta) {<br />
$('#formulario').html(respuesta);<br />
$('#comentarios').load("/ajax.php?var=includes/content/comentarios.php&amp;noticia=" + noticia, null, null);<br />
$('#formulario').fadeIn("1500", null);<br />
$('#comentarios').fadeIn("1500", null);<br />
}<br />
});</p>
<p>return false;<br />
});</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2010/01/ajax-con-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Menú animado con Lavalavamp</title>
		<link>http://www.cuadernodeapuntes.es/2009/12/menu-animado-con-lavalavamp/</link>
		<comments>http://www.cuadernodeapuntes.es/2009/12/menu-animado-con-lavalavamp/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 13:21:47 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Memorias]]></category>
		<category><![CDATA[TEWC]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Sinpastaenelbolsillo.com]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=163</guid>
		<description><![CDATA[
			
				
			
		
Llevo un tiempo alejado del blog por motivos navideños, pero bueno, hoy te traigo un tutorial sobre cómo personalizar un menú animado usando el plugin Lavalamp.

Conociendo lavalamp:
Lavalamp es un plugin para realizar menús mas llamativos para tu web.
Viene con tres ejemplos, que son los siguientes:
Con imagen:

Home
Plant a tree
Travel
Ride an elephant

Sin imagen

Home
Plant a tree
Travel
Ride an elephant

Subrayado

Home
Plant ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Fmenu-animado-con-lavalavamp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Fmenu-animado-con-lavalavamp%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Llevo un tiempo alejado del blog por motivos navideños, pero bueno, hoy te traigo un tutorial sobre cómo personalizar un menú animado usando el plugin <a href="http://plugins.jquery.com/project/lavalamp2">Lavalamp</a>.</p>
<p><span id="more-163"></span></p>
<h2>Conociendo lavalamp:</h2>
<p>Lavalamp es un plugin para realizar menús mas llamativos para tu web.<br />
Viene con tres ejemplos, que son los siguientes:</p>
<h3>Con imagen:</h3>
<ul id="1" class="lavaLampWithImage">
<li><a href="#">Home</a></li>
<li><a href="#">Plant a tree</a></li>
<li><a href="#">Travel</a></li>
<li><a href="#">Ride an elephant</a></li>
</ul>
<h3>Sin imagen</h3>
<ul id="2" class="lavaLampNoImage">
<li><a href="#">Home</a></li>
<li><a href="#">Plant a tree</a></li>
<li><a href="#">Travel</a></li>
<li><a href="#">Ride an elephant</a></li>
</ul>
<h3>Subrayado</h3>
<ul id="3" class="lavaLampBottomStyle">
<li><a href="#">Home</a></li>
<li><a href="#">Plant a tree</a></li>
<li><a href="#">Travel</a></li>
<li><a href="#">Ride an elephant</a></li>
</ul>
<p>Nosotros nos vamos a fijar en el primero, el de la imagen, que es el que utilizaremos para editar.</p>
<h2>Preparando el HTML</h2>
<p>Si te fijas en el menú que hay en <a href="http://www.sinpastaenelbolsillo.com/">mi web para ganar dinero</a>, entre cada elemento del menú hay un separador, y al pasar el selector por el, desaparece como pasando por debajo, a parte de tener el primer elemento y el último redondeados.<br />
Voy a explicar cómo lo hice, pero primero pongo el código HTML y lo comento:</p>
<div class="igBar"><span id="lhtml-20"><a href="#" onclick="javascript:showPlainTxt('html-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-20">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"menu"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"l"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"first"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"central"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"current"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"/"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Home<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://blog.sinpastaenelbolsillo.com"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Blog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://foro.sinpastaenelbolsillo.com"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Foro<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sinpastaenelbolsillo.com/faqs.php"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>F.A.Q's<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sinpastaenelbolsillo.com/contact_us.php"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Contacto<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"last"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Comento por lineas, que es mejor:</p>
<ol>
<li>Esto simplemente es el <strong>div</strong> que engloba todo el menú.</li>
<li>Este primer <strong>ul</strong> es para el lateral izquierdo redondeado, por eso su...</li>
<li>...único <strong>li</strong> no tiene texto, solo <em>&amp;nbsp;</em>, que es un espacio en blanco...</li>
<li>...y cierre del <strong>ul</strong>.</li>
<li>Aquí está la "chicha" del menú, como puedes observar, después de abrir el <strong>ul</strong>...</li>
<li>...lo primero que hay es un <strong>li</strong> con clase <em>spacer</em>, que no es mas que un separador.</li>
<li>Este elemento tiene la clase <em>current</em> que quiere decir que es el elemento sobre el que "descansa" la sombra.</li>
<li>Otro <em>spacer</em>.</li>
<li>Enlace hacia el blog.</li>
<li><em>Spacer</em>.</li>
<li>Enlace hacia el foro.</li>
<li><em>Spacer</em>.</li>
<li>Enlace a preguntas frecuentes.</li>
<li><em>Spacer</em>.</li>
<li>Último elemento con enlace hacia Contacto.</li>
<li><em>Spacer</em>.</li>
<li>Cierre del <strong>ul</strong>.</li>
<li>De aquí en adelante un <strong>ul</strong> para hacer el  lateral derecho al igual que el izquierdo, y cierre del <strong>div</strong>.</li>
</ol>
<p>Ahora que ya tenemos el html, vamos con el CSS...</p>
<h2>Dando un poco de estilo con CSS</h2>
<p>Como son bastantes selectores, voy a ir comentandolos de uno en uno</p>
<h3>El primer elemento es el que hace referencia al menú entero, el <strong>div</strong> con <em>menu</em> como id</h3>
<div class="igBar"><span id="lcss-21"><a href="#" onclick="javascript:showPlainTxt('css-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-21">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#menu <span style="color: #66cc66;">&#123;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span>: 940px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 55px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<ol>
<li>Selector.</li>
<li>Un ancho excesivo, pero así me aseguro que no se caerá ningún elemento.</li>
<li>La altura.</li>
<li>Al principio no se muestra, pero se mostrará con JQuery poniéndole un efecto.</li>
<li>Margen a 0.</li>
</ol>
<h3>El primer <strong>ul</strong> del menú</h3>
<div class="igBar"><span id="lcss-22"><a href="#" onclick="javascript:showPlainTxt('css-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-22">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.l </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Simplemente se alinea a la izquierda.</p>
<h3>Ahora el elemento <em>central</em> del menú</h3>
<div class="igBar"><span id="lcss-23"><a href="#" onclick="javascript:showPlainTxt('css-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-23">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu <span style="color: #6666ff;">.central </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">overflow</span>: <span style="color: #993333;">hidden</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<ol>
<li>Selector.</li>
<li>El <strong>position</strong> <em>relative</em> es necesario para que no haga cosas extrañas la "sombra".</li>
<li>La propiedad <strong>overflow</strong> con el valor <em>hidden</em> hace que cuando algo se vaya a mostrar fuera de su espacio reservado, lo que se escapa no se muestre.</li>
<li>El <strong>float</strong> <em>left</em> es necesario para que no se descuelgue el último <strong>ul</strong>.</li>
</ol>
<h3>Características generales de ul y li</h3>
<p><span style="float: left"></p>
<div class="igBar"><span id="lcss-24"><a href="#" onclick="javascript:showPlainTxt('css-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-24">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu ul <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">list-style</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;line-<span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #993333;">normal</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
</span><br />
<span style="float: right"></p>
<div class="igBar"><span id="lcss-25"><a href="#" onclick="javascript:showPlainTxt('css-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-25">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu li <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 55px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span>images/menu.gif<span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
</span></p>
<div style="clear: both;">Son sencillas y como esta quedando un tutorial demasiado largo, voy a obviar su explicación.</div>
<h3>Ahora vamos a empezar a editar el CSS que afecta a la sombra de LavaLamp</h3>
<div class="igBar"><span id="lcss-26"><a href="#" onclick="javascript:showPlainTxt('css-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-26">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu li<span style="color: #6666ff;">.back </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">z-index</span>: <span style="color: #cc66cc;color:#800000;">8</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 55px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"images/menuhover.gif"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<ol>
<li>Selector dado por LavaLamp.</li>
<li>La propiedad <strong>z-index</strong> se utiliza para traer al frente este elemento, por encima de todos aquellos que tengan un <strong>z-index</strong> menor a <em>8</em>.</li>
<li><strong>Display</strong> <em>block</em><strong> </strong>muestra el inicio de la sombra como un elemento que forma parte del bloque.</li>
<li>La altura.</li>
<li>La imagen de fondo.</li>
<li><strong>z-index</strong> sólo se aplica a elementos posicionados, asi que toca posicionar este.</li>
<li>Le quitamos el borde.</li>
</ol>
<div class="igBar"><span id="lcss-27"><a href="#" onclick="javascript:showPlainTxt('css-27'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-27">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu li<span style="color: #6666ff;">.back </span><span style="color: #6666ff;">.<span style="color: #000000; font-weight: bold;">left</span> </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"images/menuhover.gif"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 55px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin-right</span>: 0px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<ol>
<li>Selector dado por LavaLamp.</li>
<li>Ponemos la misma imagen que antes, pero ahora si que la repetimos a lo largo del eje x.</li>
<li>Mismo <strong>display</strong> que el elemento anterior.</li>
<li>Misma altura.</li>
<li>Le quitamos el margen de la izquierda.</li>
<li>Le quitamos el borde.</li>
</ol>
<h2>Vamos a por los <em>spacers</em></h2>
<div class="igBar"><span id="lcss-28"><a href="#" onclick="javascript:showPlainTxt('css-28'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-28">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu <span style="color: #6666ff;">.spacer </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span>: 2px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span>:<span style="color: #993333;">none</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'images/spacer2.gif'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">z-index</span>: <span style="color: #cc66cc;color:#800000;">10</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border-right</span>: 1px <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border-left</span>: 1px <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 55px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Este elemento realmente no tiene mucha explicación, solamente se ponen los bordes laterales, y un <strong>z-index</strong> de valor <em>10</em>, que hace que se muestre por encima de la "sombra" y asi parece que pasa "por debajo".<br />
La imagen de fondo no es más que una tira con sombra, que era de una variación que hice del primer diseño, ahora habría que poner algo transparente pero entonces no quedaría tan bien.</p>
<h3>Ya casi está todo, vamos con los enlaces del menú</h3>
<div class="igBar"><span id="lcss-29"><a href="#" onclick="javascript:showPlainTxt('css-29'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-29">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu a <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 25px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin-top</span>: 5px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">padding</span>: 13px 30px 5px 30px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">font-family</span>: Arial, Helvetica, <span style="color: #993333;">sans-serif</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">font-size</span>: 14px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">font-weight</span>: <span style="color: #993333;">bold</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">color</span>: #FFFFFF;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">z-index</span>:<span style="color: #cc66cc;color:#800000;">10</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>:<span style="color: #993333;">relative</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Mencionar solo el atriburo <strong>padding</strong>, que hace que la zona de click sea mayor, el <strong>z-index</strong> que hace que se muestren las letras por encima de todo, la alineación centrada y el <strong>float</strong> <em>left</em>, el resto es, como gustan decir en mi escuela, trivial.</p>
<h3>Para terminar, los laterales redondeados</h3>
<p><span style="float: left"></p>
<div class="igBar"><span id="lcss-30"><a href="#" onclick="javascript:showPlainTxt('css-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-30">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu <span style="color: #6666ff;">.first </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span>images/menufirst.gif<span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span>: 9px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
</span><br />
<span style="float: right"></p>
<div class="igBar"><span id="lcss-31"><a href="#" onclick="javascript:showPlainTxt('css-31'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-31">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#menu <span style="color: #6666ff;">.last </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span>images/menulast.gif<span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span>: 9px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></span></p>
<div style="clear: both;">Simplemente, es poner un ancho igual al de la imagen de fondo y eliminar los bordes.</div>
<h2 style="clear: both; text-align: left;">Instalando LavaLamp.</h2>
<p>Ahora viene lo más sencillo, como casi todo con <a href="http://jquery.com/">JQuery</a>.<br />
Te recomiendo, que le eches un ojo a la <a href="http://www.cuadernodeapuntes.es/2009/12/introduccion-a-jquery/">introducción a JQuery</a> de este blog, para ir más rápido todavía.</p>
<p>Lo primero que tienes que hacer es descargarte el plugin, si esque no lo has hecho ya, <a href="http://www.gmarwaha.com/jquery/lavalamp/zip/lavalamp_0.1.0.zip">comprimido en un zip</a>, o directamente en <a href="http://www.gmarwaha.com/jquery/lavalamp/js/jquery.lavalamp.js">*.js</a>, todo desde <a href="http://www.gmarwaha.com/blog/2007/08/23/lavalamp-for-jquery-lovers/">este enlace</a>, en el cual explican en inglés como funciona.</p>
<p>Ahora, tal como lo explico en la <a href="../2009/12/introduccion-a-jquery/">introducción a JQuery</a>, tienes que enlazar los ficheros <em>*.js</em> dentro del <em>head</em> de tu página.</p>
<p>Una vez echo esto, con la siguiente función, activarás el LavaLamp sobre el elemento central del menú:</p>
<div class="igBar"><span id="ljavascript-32"><a href="#" onclick="javascript:showPlainTxt('javascript-32'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-32">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#menu .central"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">lavaLamp</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; fx: <span style="color: #3366CC;">"backout"</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; speed: <span style="color: #CC0000;color:#800000;">700</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y el resultado final... puedes verlo en <a href="http://www.sinpastaenelbolsillo.com">Sinpastaenelbolsillo.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2009/12/menu-animado-con-lavalavamp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Batería de Acer Aspire One ZA3 y Ubuntu Remix</title>
		<link>http://www.cuadernodeapuntes.es/2009/12/bateria-de-acer-aspire-one-za3-y-ubuntu-remix/</link>
		<comments>http://www.cuadernodeapuntes.es/2009/12/bateria-de-acer-aspire-one-za3-y-ubuntu-remix/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 21:20:12 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[Acer Aspire One]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=179</guid>
		<description><![CDATA[
			
				
			
		
Debo de haberme portado muy bien este año, porque Papá Noel me ha traido un Acer Aspire One ZA3 para la universidad, y, aunque tiene unas características que considero geniales, la versión de Ubuntu Remix me ha parecido un poco mala, pero arreglando dos cositas parece ser que va mucho mejor...

Lo primero era un problema ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Fbateria-de-acer-aspire-one-za3-y-ubuntu-remix%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Fbateria-de-acer-aspire-one-za3-y-ubuntu-remix%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Debo de haberme portado muy bien este año, porque Papá Noel me ha traido un Acer Aspire One ZA3 para la universidad, y, aunque tiene unas características que considero geniales, la versión de Ubuntu Remix me ha parecido un poco mala, pero arreglando dos cositas parece ser que va mucho mejor...</p>
<p><span id="more-179"></span></p>
<p>Lo primero era un problema con la pantalla, y esque iba muy muy lento, pero tiene solución, aunque ahora no encuentro el tutorial que seguí, si tienes el mismo problema y buscas en Google lo encontrarás, aunque cuando lo encuentre prometo hacer una entrada.</p>
<p>Este post, que estoy haciendo de manera rápida y precipitada a la espera de que termine el que estoy haciendo de editar un menú con JQuery y LavaLamp, es para contar como ver el estado de la batería, ya que cuando inicio, el ordenador se cree que está conectado a la corriente, aunque no sea así.</p>
<p>El truco para ver el estado de la batería lo encontré en <a href="http://clinuxera.org/gulp/?p=1404">GULP - Clinuxera</a>, y es un comando muy simple, tan sólo hay que introducir lo siguiente en el terminal:</p>
<div class="igBar"><span id="lcode-34"><a href="#" onclick="javascript:showPlainTxt('code-34'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-34">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$ cat /proc/acpi/battery/BAT1/info </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><img class="alignleft size-medium wp-image-182" title="Agregar aplicacion al inicio" src="http://www.cuadernodeapuntes.es/wp-content/uploads/2009/12/screenshot_001-300x199.png" alt="Agregar aplicacion al inicio" width="300" height="199" />Y te saldrá la información de la batería en la consola, y misteriosamente, al menos a mi, ya me detecta la batería como debería hacerlo desde un principio, así que, si quieres que te la detecte siempre, vas a <em>Sistema -&gt; Aplicaciones al inicio</em>, y agregas una nueva con la linea que has metido en la consola en donde pone <em>orden</em>.</p>
<p>Una vez hecho, le das a guardar, y cerrar, y se acabó el problema con la batería.</p>
<p><img src="http://www.cuadernodeapuntes.es/wp-content/uploads/2009/12/screenshot_002.png" alt="Estado de la batería" title="Estado de la batería" width="379" height="355" class="aligncenter size-full wp-image-183" /></p>
<p>Prometo hacer dentro de poco una entrada contándolo todo de mi nuevo pequeñín, pero esque estas navidades voy pillado.</p>
<p>Si alguien encuentra como hacer que el firefox recupere el sonido que me avise por favor!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2009/12/bateria-de-acer-aspire-one-za3-y-ubuntu-remix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Efecto &#8220;cortinilla&#8221; vertical con JQuery</title>
		<link>http://www.cuadernodeapuntes.es/2009/12/efecto-cortinilla-vertical-con-jquery/</link>
		<comments>http://www.cuadernodeapuntes.es/2009/12/efecto-cortinilla-vertical-con-jquery/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 10:02:39 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Memorias]]></category>
		<category><![CDATA[Sinpastaenelbolsillo.com]]></category>
		<category><![CDATA[TEWC]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=141</guid>
		<description><![CDATA[
			
				
			
		
He pensado que para empezar a poner ejemplos de JQuery lo mejor es empezar por algo sencillo, y lo más sencillo que tengo hecho en la página, a parte de los bordes redondeados que ya explicaré, es la posibilidad de crear un efecto de contracción y expansión de los elementos del sidebar, no preguntes la ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Fefecto-cortinilla-vertical-con-jquery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Fefecto-cortinilla-vertical-con-jquery%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>He pensado que para empezar a poner ejemplos de JQuery lo mejor es empezar por algo sencillo, y lo más sencillo que tengo hecho en la página, a parte de los bordes redondeados que ya explicaré, es la posibilidad de crear un efecto de contracción y expansión de los elementos del sidebar, no preguntes la utilizad, simplemente me pareció bien implementarlo <img src='http://www.cuadernodeapuntes.es/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-141"></span></p>
<p>Si has ido siguiendo este blog, y has estructurado el sidebar como expliqué en <a href="http://www.cuadernodeapuntes.es/2009/12/memorias-de-un-webmaster-cssi/">esta entrada</a> simplemente tendrá que copiar y pegar la siguiente función en el documento <em>ready.js</em>, sino, tienes dos posibles caminos, entender el código y adaptarlo, cosa que no es muy difícil, o ir a la entrada en cuestión y estructurar tu sidebar así, lo más recomendable.</p>
<p>Primero pongo el código, y después lo explico:</p>
<div class="igBar"><span id="ljavascript-36"><a href="#" onclick="javascript:showPlainTxt('javascript-36'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-36">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'.sidebartop'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">next</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">":hidden"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">next</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">slideDown</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">next</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">slideUp</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Parece más complejo de lo que realmente es, pero no te preocupes, traduciré por lineas:</p>
<ol>
<li>"Al hacer <strong>click</strong> en un elemento <em>.sidebartop</em>..."</li>
<li>"...si el <span title=".next()">elemento siguiente</span> a <span title="$(this)">éste (en el que he hecho click)</span> <span title=".is()">está</span> <span title="(':hidden')">oculto</span>..."</li>
<li>"...<span title=".slideDown()">desplegar hacia abajo</span> el <span title=".next()">elemento siguiente</span> a <span title="$(this)">éste</span>..."</li>
<li>"...<span title="else">en caso contrario</span>..."</li>
<li>"...<span title=".slideUp()">contraer</span> el <span title=".next()">elemento siguiente</span> a <span title="$(this)">éste</span>..."</li>
<li>Esta linea y siguientes sólo acaban de cerrar la función.</li>
</ol>
<p>Puedes dejar el ratón encima de algo que no entiendas para que aparezca un texto que te diga que parte del código es la que realiza cada cosa.</p>
<p>Como puedes observar es muy sencillo realizar un <strong>efecto "cortinilla" con JQuery</strong>.</p>
<p>Para terminar, te recomiendo echarle un ojo a las funciones <a href="http://docs.jquery.com/Effects/slideUp#speedcallback">slideUp()</a> y <a href="http://docs.jquery.com/Effects/slideDown#speedcallback">slideDown()</a>, ya que aceptan como pará metros la velocidad del efecto y funciones a realizar al terminarlo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2009/12/efecto-cortinilla-vertical-con-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducción a JQuery</title>
		<link>http://www.cuadernodeapuntes.es/2009/12/introduccion-a-jquery/</link>
		<comments>http://www.cuadernodeapuntes.es/2009/12/introduccion-a-jquery/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 14:49:35 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Memorias]]></category>
		<category><![CDATA[TEWC]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=75</guid>
		<description><![CDATA[
			
				
			
		
Llevo unos días sin publicar ningún tutorial o memoria, y como hoy no tengo demasiado tiempo, he decidido publicar una introducción a JQuery, utilizada en mi web de ganar dinero para conseguir efectos como el contraer y expandir los elementos del sidebar (hacer click en el título de cada uno), tener bordes redondeados, utilizar Ajax ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Fintroduccion-a-jquery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Fintroduccion-a-jquery%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Llevo unos días sin publicar ningún tutorial o memoria, y como hoy no tengo demasiado tiempo, he decidido publicar una introducción a JQuery, utilizada en mi web de ganar dinero para conseguir efectos como el contraer y expandir los elementos del sidebar (hacer click en el título de cada uno), tener bordes redondeados, utilizar Ajax + Json para optimizar el tráfico y un sinfín más de cosas que puedes hacer de la manera mas sencilla que puedas imaginar.</p>
<p><span id="more-75"></span></p>
<h2>¿Qué es JQuery?</h2>
<p><a href="http://es.wikipedia.org/wiki/JQuery">JQuery</a> es un <a href="http://es.wikipedia.org/wiki/Framework">framework</a> de <a href="http://es.wikipedia.org/wiki/Javascript">Javascript</a>, que permite interactuar fácilmente con los elementos HTML, manipular el arbol <a href="http://es.wikipedia.org/wiki/DOM">DOM</a>, manejar eventos y animaciones e integrar la tecnología <a href="http://es.wikipedia.org/wiki/AJAX">AJAX</a> de manera fácil y cómoda.<br />
He puesto enlaces a la wikipedia en todas las palabras que considero que es recomendable conocer, y decir que la definición la he basado en la de la wikipedia.</p>
<h2>¿Cómo se instala?</h2>
<p>De la forma mas sencilla que puedas imaginarte, simplemente accede a la <a href="http://jquery.com/">página oficial de JQuery</a> y descárgatelo en la carpeta donde tengas la página web, en mi caso uso la versión 1.3.2 en su versión completa, así que tengo un fichero llamado <strong>jquery-1.3.2.js</strong>.</p>
<p>Ahora tienes que ir al fichero <strong>index.html</strong> y añadir la siguiente linea a la cabecera (dentro de las etiquetas <em>&lt;head&gt;&lt;/head&gt;</em>)</p>
<div class="igBar"><span id="lhtml-43"><a href="#" onclick="javascript:showPlainTxt('html-43'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-43">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"jquery-1.3.2.js"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y ya está listo para ser usado.</p>
<h2>¿Cómo empiezo a hacer cosas con JQuery?</h2>
<p>Este fin de semana empezaré a publicar entradas con todo lo que he hecho con JQuery en <a href="http://www.sinpastaenelbolsillo.com/empresas/1.html">Sinpastaenelbolsillo</a>, pero si no puedes esperar hasta entonces, vamos a hablar un poco de los selectores, algunas funciones básicas y de los plugins</p>
<h3>Selectores:</h3>
<p>El primer paso para poder hacer cosas con JQuery es saber como seleccionar cada elemento, y para eso está la función $(String), que devuelve el elemento (o elementos) que están definidos como se indica en la String, pongo unos ejemplos</p>
<div class="igBar"><span id="ljavascript-44"><a href="#" onclick="javascript:showPlainTxt('javascript-44'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-44">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"body"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #009900; font-style: italic;">//Devuelve el body</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#menu"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #009900; font-style: italic;">//Devuelve el menú</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">".sidebarcontent"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #009900; font-style: italic;">//Devuelve los sidebarcontents</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">".post p"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #009900; font-style: italic;">//Devuelve los párrafos dentro de post </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como puedes observar, la String que hay que pasar como parámetros, son los selectores que usas normalmente en el CSS.</p>
<h3>Funciones básicas y/o más comunes:</h3>
<p><a href="http://docs.jquery.com/Attributes/addClass#class"><strong>addClass(</strong><em>String</em></a><strong><a href="http://docs.jquery.com/Attributes/addClass#class">)</a>/<a href="http://docs.jquery.com/Attributes/removeClass#class">removeClass(</a></strong><a href="http://docs.jquery.com/Attributes/removeClass#class"><em>String</em></a><strong><a href="http://docs.jquery.com/Attributes/removeClass#class">)</a> </strong>-<strong> </strong>Estos dos métodos sirven para añadir o eliminar clases a los elementos html seleccionados, de manera que puedes cambiar el estilo de cualquier cosa de manera dinámica.</p>
<p>Ejemplo:</p>
<div class="igBar"><span id="ljavascript-45"><a href="#" onclick="javascript:showPlainTxt('javascript-45'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-45">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"body"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addClass</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"fondoNegro"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lcss-46"><a href="#" onclick="javascript:showPlainTxt('css-46'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-46">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.fondoNegro </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background-color</span>: #000000;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>En el ejemplo, al ejecutarse JQuery, le añadirá la clase fondoNegro al body, y el fondo de la página será negro.</p>
<p><a href="http://docs.jquery.com/Attributes/html"><strong>html(</strong><em>String</em></a><strong><a href="http://docs.jquery.com/Attributes/html">)</a> </strong>- Con este método cambiaremos el html que haya dentro de un elemento por el pasado como String.<br />
Si no pasas ningún atributo, es decir, lo dejas en <a href="http://docs.jquery.com/Attributes/html"><strong>html()</strong></a> te devuelve el html que haya dentro del elemento seleccionado.</p>
<p>Ejemplo:</p>
<div class="igBar"><span id="ljavascript-47"><a href="#" onclick="javascript:showPlainTxt('javascript-47'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-47">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"body"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #3366CC;">&nbsp; &nbsp; &nbsp;&lt;h1&gt;Hola!!&lt;/h1&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #3366CC;">"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora, al ejecutarse, cambiará el contenido del body por "&lt;h1&gt;Hola!!&lt;/h1&gt;".</p>
<p><strong><a href="http://docs.jquery.com/Effects/show">show()</a>/<a href="http://docs.jquery.com/Effects/hide">hide()</a></strong> - Muestra/oculta los elementos seleccionados. Ambos tienen una <a href="http://docs.jquery.com/Effects">variante</a> con paŕametos que sirven para modificar la velocidad a la que muesta/oculta los elementos seleccionados.</p>
<h3>Plugins:</h3>
<p>Existen multitud de <a href="http://plugins.jquery.com/">plugins</a> para JQuery creados por la comunidad, con infinita variedad de efectos, desde menús animados, como el que tengo en mi <a href="http://www.sinpastaenelbolsillo.com/empresas/1.html">web para ganar dinero</a>, redondear elementos o widgets para añadir a tu web.</p>
<p>Instalarlos suele ser sencillo, por regla general viene un fichero README en el cual indican la instalación, que no suele ser mas complicada que extraer los ficheros dentro del servidor y enlazarlos dentro de <em>&lt;head&gt;&lt;/head&gt;</em> al igual que hiciste con JQuery.</p>
<p>Para finalizar, y en previsión de siguientes tutoriales, te recomiendo crear un documento <strong>*.js</strong> llamado <strong>ready</strong>, es decir, un fichero llamado <em>ready.js</em>, y enlazarlo como si fuera un plugin.<br />
En este documento irá todo lo que se tiene que ejecutar cuando la página esté cargada, para ello escribe lo siguiente dentro del fichero y dejalo asi:</p>
<div class="igBar"><span id="ljavascript-48"><a href="#" onclick="javascript:showPlainTxt('javascript-48'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-48">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2009/12/introduccion-a-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial &#8211; Texto 2.0 con Gimp</title>
		<link>http://www.cuadernodeapuntes.es/2009/12/tutorial-texto-2-0-con-gimp/</link>
		<comments>http://www.cuadernodeapuntes.es/2009/12/tutorial-texto-2-0-con-gimp/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 11:58:25 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[Gimp]]></category>
		<category><![CDATA[Memorias]]></category>
		<category><![CDATA[Sinpastaenelbolsillo.com]]></category>
		<category><![CDATA[TEWC]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Diseño Gráfico]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=94</guid>
		<description><![CDATA[
			
				
			
		
Algo que toda página web necesita en un buen logo, y últimamente en las páginas web se están poniendo de moda los logos con letras redonditas, reflejos y pocos colores, así que voy a intentar explicar como hacer un logo tipo Sinpastaenelbolsillo para tu web

Primer paso - Eligiendo la fuente.
Puede que este sea el primer ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Ftutorial-texto-2-0-con-gimp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Ftutorial-texto-2-0-con-gimp%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Algo que toda página web necesita en un buen logo, y últimamente en las páginas web se están poniendo de moda los logos con letras redonditas, reflejos y pocos colores, así que voy a intentar explicar como hacer un logo tipo <a href="http://www.sinpastaenelbolsillo.com">Sinpastaenelbolsillo</a> para tu web</p>
<p><span id="more-94"></span></p>
<h2>Primer paso - Eligiendo la fuente.</h2>
<p>Puede que este sea el primer obstáculo con el que te encuentres al diseñar tu logo, puesto que hay cientos de fuentes, y muchas se parecen sospechosamente, pero si te sirve de ayuda, he encontrado en <a href="http://www.zonamasters.com/">Zonamasters</a> una <a href="http://www.zonamasters.com/2007/10/31/coleccion-de-fuentes-para-web-20/">recopilación de fuentes 2.0</a>, un poco pasada (2007) pero que sirve perfectamente.</p>
<p>Para instalarte las fuentes, descárgate el archivo y extrae las fuentes dentro de la carpeta <em>fonts</em> del gimp, en mi caso, al usar Ubuntu y tener la versión 2.6, la ruta es "<em>/home/javier/.gimp-2.6/fonts</em>".</p>
<p>Ahora abre el Gimp y ya tienes instaladas las fuentes, "simplemente" tienes que escoger una para tu logo.</p>
<h2>Segundo paso - Crear la imagen.</h2>
<div class="wp-caption alignleft" style="width: 260px"><a href="/images/pantallazos/firefox/logo02.png"><img class="  " title="Combinar capas hacia abajo" src="/images/pantallazos/firefox/logo02.png" alt="Combinar capas hacia abajo" width="250" height="200" /></a><p class="wp-caption-text">Combinar capas hacia abajo</p></div>
<p>Antes de seguir voy a puntualizar que no voy a poner ninguna imagen en el logo, simplemente texto, pero he de reconocer que una imagen en un logo puede quedar bastante bien.<br />
Ahora vamos a crear una imagen nueva con el Gimp, como el texto que voy a poner es bastante ancho, la voy a hacer de 700x70 px, pero tampoco se trata de que te sobre espacio por todos lados, y por supuesto, ponle fondo transparente.</p>
<p>Una vez tenemos la imagen sobre la que vamos a trabajar cogemos la herramienta de texto, y, en blanco, escribimos el texto que queramos, poniéndolo lo más grande que podamos.</p>
<p>Una vez tengamos el texto bien puesto y centrado, creamos una capa nueva, también transparente y la arrastramos en el diálogo de capas hasta ponerla por debajo por las que hayas puesto de texto, pinchamos sobre las capas de texto y las <strong>Combinamos hacia abajo</strong>.</p>
<p>Una vez combinadas procederemos a añadirle unos cuantos efectos.</p>
<h2>Tercer paso - Añadiendo borde a las letras.</h2>
<p>Este paso es muy sencillo si lo haces correctamente, sino te puedes volver loco intentando cuadrar letras.<br />
Vamos a crear una capa nueva, también transparente y la vamos a poner por debajo de la capa en la que tenemos el texto, una vez hecho esto, sobre la capa en la que tenemos el texto, cogemos la <strong>herramienta de selección por color</strong> <a href="/images/pantallazos/firefox/logo03.png"><img title="Herramienta de selección por color" src="/images/pantallazos/firefox/logo03.png" alt="Herramienta de selección por color" width="29" height="30" /></a> y seleccionamos las letras.</p>
<p>Ahora, sobre la capa nueva, hacemos click en <em>Seleccionar -&gt; Agrandar</em> y seleccionamos 5px, verás como la selección se ha agrandado, ya sólo queda coger la <strong>herramienta de relleno</strong> y rellenar toda la selección, en la capa que está vacía, de negro, y así conseguimos unas letras blancas, con un borde negro.</p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="/images/pantallazos/firefox/logo04.png"><img class="  " title="Una vez agrandada la selección" src="/images/pantallazos/firefox/logo04.png" alt="Una vez agrandada la selección" width="500" height="56" /></a><p class="wp-caption-text">Una vez agrandada la selección</p></div>
<h2>Cuarto paso - Agregar relieve a las letras.</h2>
<p>Una vez tenemos las letras con el borde, vamos a crear un poco de relieve, así que necesitamos una nueva capa, también transparente.<br />
Ahora con la <strong>herramienta de selección rectangular</strong> cogemos un rectángulo que contenga todas las letras, cogidas desde la mitad hasta abajo y seleccionamos la capa en la que tenemos las letras en blanco y con la <strong>herramienta de selección por color</strong>, vamos a seleccionar la intersección entre la selección que ya tenemos realizada y el blanco de las letras, así que presionamos <strong>Ctrl + Shift</strong> y sin soltar hacemos click sobre el blanco de las letras.</p>
<p>Toca hacer un degradado sobre la capa nueva, con la selección que tenemos hecha, así que, hacemos click sobre la capa nueva y con la <strong>herramienta de mezcla</strong>, seleccionando el degradado frente a transparencia, hacemos el degradado vertialmente y haciendo que quede el negro debajo.</p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="/images/pantallazos/firefox/logo05.png"><img class="  " title="Resultado del texto con borde y relieve" src="/images/pantallazos/firefox/logo05.png" alt="Resultado del texto con borde y relieve" width="500" height="56" /></a><p class="wp-caption-text">Resultado del texto con borde y relieve</p></div>
<h2>Quinto paso - Rallado.</h2>
<p>He de decir que hay mucha gente a la que este paso no le convence demasiado, puesto que hace que las letras se lean algo peor, pero si te interesa puedes aplicarlo, a mi al menos me gusta mucho.</p>
<p>Vamos, cómo no, a crear una capa nueva, y a desactivar la vista de la capa que tiene el degradado haciendo click en el ojo que tiene la capa (en el diálogo de capas).</p>
<p>Ahora, sobre la capa de las letras en blanco, con la <strong>herramienta de selección por color</strong>, volvemos a seleccionar las letras, y sobre la capa nueva vamos a rellenar toda la selección con el patrón que tiene lineas negras y amarillas a 45º.<br />
Una vez tengamos la capa nueva con las letras a base del relleno, seleccionamos, otra vez con la <strong>herramienta de selección por color</strong>, el amarillo y lo suprimimos (botón Del o Supr).</p>
<p>Ahora vamos a seleccionar el negro, y también lo borramos, pero no tocamos la selección que se nos quedará, puesto que ahí vamos a aplicar otra vez un degradado, en mi caso verde, también de color a transparencia.</p>
<p>Volvemos a mostrar la capa con el degradado negro, y si te queda demasiado oscuro juega con la opacidad de la capa.</p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="/images/pantallazos/firefox/logo07.png"><img class=" " title="Ya con el efecto rallado" src="/images/pantallazos/firefox/logo07.png" alt="Ya con el efecto rallado" width="500" height="67" /></a><p class="wp-caption-text">Ya con el efecto rallado</p></div>
<h2>Sexto paso - Reflejo.</h2>
<p>Para el reflejo, he seguido este <a href="http://benja316.shekalug.org/2009/03/01/como-efecto-reflejo-texto-imagen-gimp/">tutorial sobre reflejos en Gimp</a>, en el cual puedes aprender a hacer mas tipos de reflejos.</p>
<p>Bueno, lo primero que he necesitado es agrandar el tamaño del lienzo, así que vamos a <em>Imagen -&gt; Tamaño del lienzo</em> y lo he agrandado verticalmente otros 70px (me he pasado un poco, pero no pasa nada).</p>
<p>Ahora vamos a mostrar todas las capas y seleccionar un rectángulo en el que se vean las letras, y utilizamos <em>Editar -&gt; Copiar visible</em>, y ajustamos todas las capas al tamaño del lienzo haciendo click en cada capa y dándole a <em>Capa -&gt; Capa a tamaño de imagen</em>.</p>
<p>Crea una capa nueva, y pega lo que has copiado antes sobre ella, pero no la ancles, antes de eso dale a <em>Capa -&gt; Transformar -&gt; Voltear verticalmente</em>, y sitúa la capa como si fuera el reflejo de las letras y ánclala sobre la capa nueva.</p>
<p>Ahora, trabajando sobre el reflejo, vamos a <em>Capa -&gt; Máscaras -&gt; Añadir máscara de capa</em> e iniciamos la máscara a <strong>Blanco (opacidad total)</strong>.<br />
Simplemente tenemos que hacer ahora un degradado, de Negro a Blanco, como hemos hecho antes, de abajo a arriba y verticalmente y verás cómo se transparenta a modo de reflejo.</p>
<p>Si quieres puedes añadirle un efecto de desenfoque, pero eso ya te dejo que lo veas en el <a href="http://benja316.shekalug.org/2009/03/01/como-efecto-reflejo-texto-imagen-gimp/">tutorial de reflejos</a>.</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 510px"><a href="/images/pantallazos/firefox/logo08.png"><img class=" " title="Resultado final" src="/images/pantallazos/firefox/logo08.png" alt="Resultado final" width="500" height="112" /></a><p class="wp-caption-text">Resultado final</p></div>
<p>Espero que te haya gustado el tutorial y que te sirva para algo, recuerda guardar la imagen como *.xcf para poder volver a editarla y como *.png para que al mostrarlo en internet se guarden las transparencias.</p>
<p>Puedes descargar mi *.xcf desde <a href="/images/logo-sinpasta.xcf">aquí</a> y si realizas algún logo con esto, <strong>Coméntalo!!</strong></p>
<p>Por cierto, si usas Photoshop, tal vez te interese <a href="http://artegami.com/tutorial-logo-estilo-web-20/">esta entrada</a> sobre tutoriales de logos con estilo Web 2.0, que, aunque ya no está el tutorial en Zona PhotoShop, tienes otros enlaces muy interesantes. O <a href="http://www.hongkiat.com/blog/revealing-methods-of-drawing-web-20-logos/">este otro en inglés</a>, también sobre crear Logos 2.0</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2009/12/tutorial-texto-2-0-con-gimp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial para crear calendario de entrada &#8211; CSS(III)</title>
		<link>http://www.cuadernodeapuntes.es/2009/12/tutorial-para-crear-calendario-de-entrada-cssiii/</link>
		<comments>http://www.cuadernodeapuntes.es/2009/12/tutorial-para-crear-calendario-de-entrada-cssiii/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 18:59:48 +0000</pubDate>
		<dc:creator>Jrt_1990</dc:creator>
				<category><![CDATA[Memorias]]></category>
		<category><![CDATA[Sinpastaenelbolsillo.com]]></category>
		<category><![CDATA[TEWC]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.cuadernodeapuntes.es/?p=76</guid>
		<description><![CDATA[
			
				
			
		
Esta será la última entrada referente al CSS de Sinpastaenelbolsillo.com que realize, al menos de momento, la siguiente será una introducción a JQuery, pero eso será más adelante, ahora vamos a ver como realizar un calendario que muestre el día y el mes, por ejemplo, de cuando fué escrita una noticia.

Crear un calendario para mostrar ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Ftutorial-para-crear-calendario-de-entrada-cssiii%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.cuadernodeapuntes.es%2F2009%2F12%2Ftutorial-para-crear-calendario-de-entrada-cssiii%2F&amp;source=capuntes&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Esta será la última entrada referente al CSS de Sinpastaenelbolsillo.com que realize, al menos de momento, la siguiente será una introducción a JQuery, pero eso será más adelante, ahora vamos a ver como realizar un calendario que muestre el día y el mes, por ejemplo, de cuando fué escrita una noticia.<br />
<span id="more-76"></span></p>
<h2>Crear un calendario para mostrar un día y su mes correspondiente.</h2>
<p>La idea de este tutorial consiste en crear una hoja del calendario como la que puedes ver en esta misma entrada, arriba a la izquierda, que te dice el día y el mes en el que se escribió la entrada.</p>
<p>Vamos a trabajar sobre la plantilla que bajamos de <a href="http://www.freecsstemplates.org">Freecsstemplates.org</a>.</p>
<h3>Primer paso - Editar el código html.</h3>
<p>Lo primero que tenemos que hacer es editar el código html, de forma que dentro de cada elemento post se cambie el orden del elemento title y el elemento meta:</p>
<p>Original:</p>
<div class="igBar"><span id="lcss-54"><a href="#" onclick="javascript:showPlainTxt('css-54'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-54">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div class=<span style="color: #ff0000;">"post"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;h2 class=<span style="color: #ff0000;">"title"</span>&gt;&lt;a href=<span style="color: #ff0000;">"#"</span>&gt;<span style="color: #66cc66;">&#123;</span>Titulo<span style="color: #66cc66;">&#125;</span>&lt;/a&gt;&lt;/h2&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;p class=<span style="color: #ff0000;">"meta"</span>&gt;&lt;em&gt;<span style="color: #66cc66;">&#123;</span>Fecha<span style="color: #66cc66;">&#125;</span> Posted by &lt;a href=<span style="color: #ff0000;">"#"</span>&gt;<span style="color: #66cc66;">&#123;</span>Autor<span style="color: #66cc66;">&#125;</span>&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;div class=<span style="color: #ff0000;">"entry"</span>&gt;<span style="color: #66cc66;">&#123;</span>Entrada<span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;div&gt;&lt;a class=<span style="color: #ff0000;">"links"</span> href=<span style="color: #ff0000;">"#"</span>&gt;Full Story&lt;/a&gt;&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Cambiado:</p>
<div class="igBar"><span id="lcss-55"><a href="#" onclick="javascript:showPlainTxt('css-55'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-55">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div class=<span style="color: #ff0000;">"post"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;p class=<span style="color: #ff0000;">"meta"</span>&gt;&lt;span&gt;<span style="color: #66cc66;">&#123;</span>Mes<span style="color: #66cc66;">&#125;</span>&lt;/span&gt;&lt;strong&gt;<span style="color: #66cc66;">&#123;</span>Día<span style="color: #66cc66;">&#125;</span>&lt;/strong&gt;&lt;/p&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;h2 class=<span style="color: #ff0000;">"title"</span>&gt;&lt;a href=<span style="color: #ff0000;">"#"</span>&gt;<span style="color: #66cc66;">&#123;</span>Título<span style="color: #66cc66;">&#125;</span>&lt;/a&gt;&lt;/h2&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;div class=<span style="color: #ff0000;">"entry"</span>&gt;<span style="color: #66cc66;">&#123;</span>Entrada<span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;div&gt;&lt;a class=<span style="color: #ff0000;">"links"</span> href=<span style="color: #ff0000;">"#"</span>&gt;Full Story&lt;/a&gt;&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Date cuenta de que el mes hay que ponerlo con su abreviatura, ya que si no se nos saldrá de los límites, y el día con número.</p>
<h3>Segundo paso - La imagen para el calendario.</h3>
<p>Este paso es más labor de búsqueda en internet que otra cosa, se trata de encontrar una imagen que nos sirva para nuestro cometido, como la que tiene este blog o la que puedes encontrar en mi <a href="http://www.sinpastaenelbolsillo.com">web de ganar dinero</a> en <a href="http://www.sinpastaenelbolsillo.com/images/calendario.gif">este enlace</a>.<br />
Yo la encontré en un tutorial en inglés que explicaba lo mismo, pero que ahora no se donde está, si lo encuentro lo colgaré.</p>
<p>Solamente tienes que subir la imagen al servidor, y ahora trabajaremos con ella a través del CSS</p>
<h3>Tercer paso - El CSS.</h3>
<p>Ahora solo nos queda poner cada cosa en su sitio, así que vamos a hacer que el <strong>.meta</strong> tenga de imagen de fondo la que hemos cogido del apartado anterior, que se alinee a la izquierda del título de la entrada, ponerle un margen lateral y que el texto se alinee al centro:</p>
<div class="igBar"><span id="lcss-56"><a href="#" onclick="javascript:showPlainTxt('css-56'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-56">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.post </span><span style="color: #6666ff;">.meta </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #cc66cc;color:#800000;">0</span> 10px <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span>: 36px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 40px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">font-family</span>: Arial, Helvetica, <span style="color: #993333;">sans-serif</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">font-size</span>: 12px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">color</span>: #66665E;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/images/calendario.gif'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Eso es para el fondo, ahora vamos con el mes:</p>
<div class="igBar"><span id="lcss-57"><a href="#" onclick="javascript:showPlainTxt('css-57'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-57">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.post </span><span style="color: #6666ff;">.meta </span>span <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">color</span>: #FFFFFF;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">top</span>: -5px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como puedes observar, he tenido que subirlo con el atributo <em>position</em>, y ponerle el <em>display: block;</em> para que el número del día aparezca debajo.</p>
<p>Para terminar modificaremos un poco el día:</p>
<div class="igBar"><span id="lcss-58"><a href="#" onclick="javascript:showPlainTxt('css-58'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-58">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.post </span><span style="color: #6666ff;">.meta </span>b <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">font-size</span>: 16px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">top</span>: -17px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como puedes observar, también he tenido que subirlo un poco con el <em>position</em>, y el código total es bastante sencillo y muy personalizable, así que si utilizas otra imagen y no salen a una altura correcta el día o el mes, sólo tienes que cambiar los atributos <em>top</em>.</p>
<p>Para terminar con el apartado de CSS dejo unos enlaces que pueden resultar interesantes</p>
<ul>
<li><a href="http://www.csszengarden.com/">Zen Garden - Ejemplo de la potencia del CSS</a></li>
<li><a href="http://webdesignfromscratch.com/web-design/web-2.0-design-style-guide.php">Guía de estilo de la web 2.0</a></li>
<li><a href="http://gimp-tutorials.net/30-Ultimate-Web-20+Layer-Styles-for+-Gimp">30 Gradientes 2.0 para el Gimp</a></li>
<li><a href="http://koivi.com/">Menús desplegables con CSS</a></li>
<li><a href="http://www.camaleoncss.com/53/p1/camaleon.html">Camaleón - Como Zen Garden, pero en Español</a></li>
</ul>
<p>Todos los enlaces los he sacado del Moodle de la asignatura Tecnologías Web de Ciente  de la ETSIT de la UPM, impartida por Carlos A. Iglesias.</p>
<p>En la siguiente entrada empezaremos con JQuery.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuadernodeapuntes.es/2009/12/tutorial-para-crear-calendario-de-entrada-cssiii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
