<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">

<channel>
	<title>giancarlospot - desarrollo web</title>
	
	<link>http://www.giancarlospot.com</link>
	<description />
	<lastBuildDate>Fri, 02 Jul 2010 18:16:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/giancarlospot-desarrolloweb" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="giancarlospot-desarrolloweb" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:explicit>no</itunes:explicit><itunes:subtitle></itunes:subtitle><item>
		<title>Un “auto height” cuando se usa float en css</title>
		<link>http://www.giancarlospot.com/css/un-auto-height-cuando-se-usa-un-float-con-css.html</link>
		<comments>http://www.giancarlospot.com/css/un-auto-height-cuando-se-usa-un-float-con-css.html#comments</comments>
		<pubDate>Mon, 31 May 2010 18:15:26 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[capas]]></category>
		<category><![CDATA[contenedor]]></category>
		<category><![CDATA[float]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=335</guid>
		<description><![CDATA[Existen problemas cuando se está armando con capas y css una web, ya que muchas veces necesitamos tener una columna a la izquierda de la otra. Para lograr esto, necesitamos poner los tamaños de anchos exactos para que no se mueva para abajo la capa que debe estar al costado, pero también se debe trabajar [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/T7urUoPlYoXSsspWlhj4ka3YeGE/0/da"><img src="http://feedads.g.doubleclick.net/~a/T7urUoPlYoXSsspWlhj4ka3YeGE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/T7urUoPlYoXSsspWlhj4ka3YeGE/1/da"><img src="http://feedads.g.doubleclick.net/~a/T7urUoPlYoXSsspWlhj4ka3YeGE/1/di" border="0" ismap="true"></img></a></p><p>Existen problemas cuando se está armando con capas y css una web, ya que muchas veces necesitamos tener una columna a la izquierda de la otra. Para lograr esto, necesitamos poner los tamaños de anchos exactos para que no se mueva para abajo la capa que debe estar al costado, pero también se debe trabajar con una capa contenedora y esto es lo que a muchos les trae problemas cuando el alto de la capa  (height) es dinámico.<br />
<span id="more-335"></span>Para solucionar este inconveniente siempre debemos tener una capa contenedora, pero como no sabemos el alto que ésta debe tener, le debemos de poner</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
div.contenedor<span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Así, la capa crecerá en base a las capas que estén adentro, aunque estas tengan la propiedad &#8220;float&#8221;. Veamos un ejemplo</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
div.contenedor<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">450px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.contenedor</span> div.izquierda<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FF0000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">:;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.contenedor</span> div.centro<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">280px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0000FF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Por cierto, ven que utiizo herencia de capas, si no están muy familiarizados con el armado de CSS vean este link para <a href="http://www.giancarlospot.com/css/armado-web-con-capas-div-y-css-sin-tablas.html">armar sus página webs con CSS y DIVs</a></p>

<div class="wp_syntax"><div class="code"><pre class="xhtml" style="font-family:monospace;">&lt;div class=&quot;contenedor&quot;&gt;
     &lt;div class=&quot;izquierda&quot;&gt;
     &lt;p&gt;Izquierda&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;/div&gt;
     &lt;div class=&quot;centro&quot;&gt;
     &lt;p&gt;Centro&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
     &lt;/div&gt;
&lt;/div&gt;</pre></div></div>

<p>Al final van a ver que obtendrán este resultado, el cual no quieren:</p>
<div class="text-align: center;"><img src="http://www.giancarlospot.com/wp-content/uploads/2010/05/float1.jpg" alt="" title="Float 1" width="468" height="391" class="size-full wp-image-337" /></div>
<p>Pero si le agregan el atributo display al estilo &#8220;contenedor&#8221;, tendrán justamente lo que necesitan, que la capa contenedor crezca verticalmente como las que están dentro de él:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
div.contenedor<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">450px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Aquí está lo que quieren</p>
<div class="text-align: center;"><img src="http://www.giancarlospot.com/wp-content/uploads/2010/05/float2.jpg" alt="" title="Float 2" width="468" height="391" class="alignnone size-full wp-image-338" /></div>
<p>¿Qué les pareció? ¿Les sirvió?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/css/un-auto-height-cuando-se-usa-un-float-con-css.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Todos los paises del mundo en un arreglo de PHP</title>
		<link>http://www.giancarlospot.com/php/todos-los-paises-del-mundo-en-un-arreglo-de-php.html</link>
		<comments>http://www.giancarlospot.com/php/todos-los-paises-del-mundo-en-un-arreglo-de-php.html#comments</comments>
		<pubDate>Wed, 12 May 2010 23:57:04 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=330</guid>
		<description><![CDATA[Este arreglo que les doy, les puede servir para ponerlo directamente en un combobox o meterlo en la base de datos, ya ustedes hacen el bucle y el insert. Espero les sirva. Por cierto, estos paises los saqué de Wikipedia el 12 de mayo de 2010. array&#40;'Afganistán' , 'Albania' , 'Alemania' , 'Andorra' , 'Angola' [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/zu6DUF0Y9qqsJ0qtxzLhyYmZmVQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/zu6DUF0Y9qqsJ0qtxzLhyYmZmVQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zu6DUF0Y9qqsJ0qtxzLhyYmZmVQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/zu6DUF0Y9qqsJ0qtxzLhyYmZmVQ/1/di" border="0" ismap="true"></img></a></p><p>Este arreglo que les doy, les puede servir para ponerlo directamente en un combobox o meterlo en la base de datos, ya ustedes hacen el bucle y el insert. Espero les sirva. Por cierto, estos paises los saqué de <a href="http://enciclopedia.us.es/index.php/Pa%C3%ADses_del_mundo_A-Z" target="_blank">Wikipedia </a>el 12 de mayo de 2010.<br />
<span id="more-330"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">array<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Afganistán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Albania'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Alemania'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Andorra'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Angola'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Antigua y Barbuda'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Antillas Holandesas'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Arabia Saudí'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Argelia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Argentina'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Armenia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Aruba'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Australia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Austria'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Azerbaiyán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bahamas'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bahrein'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bangladesh'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Barbados'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bélgica'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Belice'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Benín'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bermudas'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bielorrusia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bolivia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Botswana'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bosnia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Brasil'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Brunei'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bulgaria'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'BurkinaFaso'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Burundi'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Bután'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Cabo Verde'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Camboya'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Camerún'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Canadá'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Chad'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Chile'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'China'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Chipre'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Colombia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Comoras'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Congo'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Corea del Norte'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Corea del Sur'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Costa de Marfil'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Costa Rica'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Croacia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Cuba'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Dinamarca'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Dominica'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Dubai'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Ecuador'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Egipto'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'El Salvador'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Emiratos Árabes Unidos'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Eritrea'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Eslovaquia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Eslovenia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'España'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Estados Unidos de América'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Estonia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Etiopía'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Fiyi'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Filipinas'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Finlandia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Francia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Gabón'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Gambia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Georgia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Ghana'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Grecia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Guam'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Guatemala'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Guayana Francesa'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Guinea-Bissau'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Guinea Ecuatorial'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Guinea'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Guyana'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Granada'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Haití'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Honduras'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'HongKong'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Hungría'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Holanda'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'India'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Indonesia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Irak'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Irán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Irlanda'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Islandia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Islas Caimán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Islas Marshall'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Islas Pitcairn'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Islas Salomón'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Israel'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Italia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Jamaica'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Japón'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Jordania'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Kazajstán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Kenia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Kirguistán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Kiribati'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Kósovo'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Kuwait'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Laos'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Lesotho'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Letonia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Líbano'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Liberia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Libia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Liechtenstein'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Lituania'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Luxemburgo'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Macedonia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Madagascar'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Malasia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Malawi'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Maldivas'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Malí'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Malta'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Marianas del Norte'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Marruecos'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Mauricio'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Mauritania'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'México'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Micronesia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Mónaco'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Moldavia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Mongolia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Montenegro'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Mozambique'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Myanmar'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Namibia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Nauru'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Nepal'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Nicaragua'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Níger'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Nigeria'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Noruega'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'NuevaZelanda'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Omán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'OrdendeMalta'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Países Bajos'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Pakistán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Palestina'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Palau'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Panamá'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Papúa Nueva Guinea'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Paraguay'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Perú'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Polonia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Portugal'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Puerto Rico'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Qatar'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Reino Unido'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'República Centro africana'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'República Checa'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'República del Congo'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'República Democrática del Congo'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'República Dominicana'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Ruanda'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Rumania'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Rusia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Sáhara Occidental'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'SaintKitts-Nevis'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Samoa Americana'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Samoa'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'San Marino'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Santa Lucía'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Santo Tomé y Príncipe'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'San Vicente y las Granadinas'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Senegal'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Serbia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Seychelles'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'SierraLeona'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Singapur'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Siria'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Somalia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'SriLanka'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Sudáfrica'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Sudán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Suecia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Suiza'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Suazilandia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Tailandia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Taiwán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Tanzania'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Tayikistán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Tíbet'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'TimorOriental'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Togo'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Tonga'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Trinidad y Tobago'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Túnez'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Turkmenistán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Turquía'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Tuvalu'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Ucrania'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Uganda'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Uruguay'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Uzbequistán'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Vanuatu'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Vaticano'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Venezuela'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Vietnam'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'WallisyFutuna'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Yemen'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Yibuti'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Zambia'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Zaire'</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Zimbabue'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/php/todos-los-paises-del-mundo-en-un-arreglo-de-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simular Internet Explorer 7 en Internet Explorer 8</title>
		<link>http://www.giancarlospot.com/freelancers/simular-internet-explorer-7-en-internet-explorer-8.html</link>
		<comments>http://www.giancarlospot.com/freelancers/simular-internet-explorer-7-en-internet-explorer-8.html#comments</comments>
		<pubDate>Fri, 26 Mar 2010 19:53:26 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[Freelancers]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie8]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=319</guid>
		<description><![CDATA[Hoy en día, tenemos que probar nuestras páginas webs en tantos navegadores que resulta tedioso, sobre todo cuando si funciona en firefox pero en internet explorer no. ¿Nunca les ha pasado que si funciona en firefox, pero en ie8 no, pero en ie7 si? Sobe todo cuando armas una página web con estilos y sin [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/UnHaXwFBlN7zcOivHS0Iu5T4QjI/0/da"><img src="http://feedads.g.doubleclick.net/~a/UnHaXwFBlN7zcOivHS0Iu5T4QjI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UnHaXwFBlN7zcOivHS0Iu5T4QjI/1/da"><img src="http://feedads.g.doubleclick.net/~a/UnHaXwFBlN7zcOivHS0Iu5T4QjI/1/di" border="0" ismap="true"></img></a></p><p>Hoy en día, tenemos que probar nuestras páginas webs en tantos navegadores que resulta tedioso, sobre todo cuando si funciona en firefox pero en internet explorer no. ¿Nunca les ha pasado que si funciona en firefox, pero en ie8 no, pero en ie7 si? Sobe todo <a href="http://www.giancarlospot.com/css/armado-web-con-capas-div-y-css-sin-tablas.html?preview=true&amp;preview_id=85&amp;preview_nonce=0f6adc9872" target="_self">cuando armas una página web con estilos y sin tablas</a>. Y es que Internet Explorer nos vuelve locos! Pero lo bueno, es que nuestros &#8220;amigos&#8221; de Microsoft han creado una forma para que una página que esté corriendo en Internet Explorer 8, simule que está corriendo en Internet Explorer 7. Solo debes de poner después de la etiqueta HEADER esta simple línea.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EmulateIE7&quot; /&gt;</pre></div></div>

<p>Listo, eso es todo!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/freelancers/simular-internet-explorer-7-en-internet-explorer-8.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Íconos para tu web gratis!</title>
		<link>http://www.giancarlospot.com/freelancers/iconos-para-tu-web-gratis.html</link>
		<comments>http://www.giancarlospot.com/freelancers/iconos-para-tu-web-gratis.html#comments</comments>
		<pubDate>Fri, 15 Jan 2010 21:10:31 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[Freelancers]]></category>
		<category><![CDATA[gratis]]></category>
		<category><![CDATA[iconos]]></category>
		<category><![CDATA[utilidades]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=304</guid>
		<description><![CDATA[Muchas veces he utilizado íconos para webs que he realizado, pero los íconos que a mi me gustan son los que tienen volúmen bastante color, se ven modernos. Aquí les dejo algunos links para que puedan descargar íconos para su web gratis: Free Icons Web Galería en CristalXP Stinky9 en Devianart Media Design en Devianart [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/fXvFBq5b_H2ecpQQqxv4jUQkshM/0/da"><img src="http://feedads.g.doubleclick.net/~a/fXvFBq5b_H2ecpQQqxv4jUQkshM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/fXvFBq5b_H2ecpQQqxv4jUQkshM/1/da"><img src="http://feedads.g.doubleclick.net/~a/fXvFBq5b_H2ecpQQqxv4jUQkshM/1/di" border="0" ismap="true"></img></a></p><p>Muchas veces he utilizado íconos para webs que he realizado, pero los íconos que a mi me gustan son los que tienen volúmen bastante color, se ven modernos. Aquí les dejo algunos links para que puedan descargar íconos para su web gratis:</p>
<ol>
<li><a href="http://www.freeiconsweb.com/" target="_blank">Free Icons Web</a></li>
<li><a href="http://www.crystalxp.net/galerie/es.html" target="_blank">Galería en CristalXP</a></li>
<li><a href="http://stinky9.deviantart.com/gallery/" target="_blank">Stinky9 en Devianart</a></li>
<li><a href="http://mediadesign.deviantart.com/gallery/" target="_blank">Media Design en Devianart</a></li>
<li><a href="http://www.iconspedia.com/" target="_blank">Iconspedia</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/freelancers/iconos-para-tu-web-gratis.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acordion con JQuery y con el plugin Jquery easing</title>
		<link>http://www.giancarlospot.com/javascript/acordion-con-jquery-y-con-el-plugin-jquery-easing.html</link>
		<comments>http://www.giancarlospot.com/javascript/acordion-con-jquery-y-con-el-plugin-jquery-easing.html#comments</comments>
		<pubDate>Mon, 11 Jan 2010 04:24:57 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[acordion]]></category>
		<category><![CDATA[easing]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=284</guid>
		<description><![CDATA[El uso del acordion en las páginas webs de ahora son muy usados y es más simple de lo que uno se puede imaginar, sobre todo si lo usas con JQuery. En realidad qué es? Puede ser un &#60;div&#62; oculto que los muestras cuando le das clic a otro DIV, bueno yo uso DIVS pero [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Qe65m7cM3VFtvmV5-RKbrabBu_c/0/da"><img src="http://feedads.g.doubleclick.net/~a/Qe65m7cM3VFtvmV5-RKbrabBu_c/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Qe65m7cM3VFtvmV5-RKbrabBu_c/1/da"><img src="http://feedads.g.doubleclick.net/~a/Qe65m7cM3VFtvmV5-RKbrabBu_c/1/di" border="0" ismap="true"></img></a></p><p>El uso del acordion en las páginas webs de ahora son muy usados y es más simple de lo que uno se puede imaginar, sobre todo si lo usas con <a href="http://jquery.com/" target="_blank">JQuery</a>. En realidad qué es? Puede ser un &lt;div&gt; oculto que los muestras cuando le das clic a otro DIV, bueno yo uso DIVS pero puedes usar un <a href="http://www.w3.org/MarkUp/HTMLPlus/htmlplus_11.html" target="_blank">&lt;p&gt;</a> u otra etiqueta.<br />
<span id="more-284"></span>Primero creamos los div con la información. Vamos a ponerle un número para poder identificar más rápido los títulos y la información en base a al div en el que se encuentran.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;acordion&quot;&gt;
&nbsp;
&lt;div id=&quot;item_1&quot; class=&quot;item&quot;&gt;
&nbsp;
&lt;div id=&quot;titulo_1&quot; class=&quot;titulo&quot;&gt;Título 1&lt;/div&gt;
&nbsp;
&nbsp;
&lt;div id=&quot;info_1&quot; class=&quot;info&quot;&gt;Información 1&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&nbsp;
&lt;div id=&quot;item_2&quot; class=&quot;item&quot;&gt;
&nbsp;
&lt;div id=&quot;titulo_2&quot; class=&quot;titulo&quot;&gt;Título 2&lt;/div&gt;
&nbsp;
&nbsp;
&lt;div id=&quot;info_2&quot; class=&quot;info&quot;&gt;Información 2&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&nbsp;
&lt;div id=&quot;item_3&quot; class=&quot;item&quot;&gt;
&nbsp;
&lt;div id=&quot;titulo_3&quot; class=&quot;titulo&quot;&gt;Título 3&lt;/div&gt;
&nbsp;
&nbsp;
&lt;div id=&quot;info_3&quot; class=&quot;info&quot;&gt;Información 3&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</pre></div></div>

<p>Hemos encerrado todo en un div con el estilo &#8220;acordion&#8221;, dentro hay grupos, agrupados por un div con el estilo &#8220;item&#8221; y dentro hay dos divs, el título (estilo &#8220;titulo&#8221;) y la información (estilo &#8220;info&#8221;). Vamos a darle estilo a estas capas.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div.acordion<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Palatino Linotype&quot;</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Book Antiqua&quot;</span><span style="color: #00AA00;">,</span> Palatino<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.item</span> div.titulo<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FF6</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">21px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.item</span> div.info<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#69F</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Le hemos dado tamaño, tipografía, colores, bordes, etc. Esto lo puedes cambiar en base a los colores que quieras utilizar o la tipografía, sin que esto percuta con el funcionamiento. Ahora lo que se debe hacer es ocultar la información, para que solo sea mostrada cuando se le de clic al título, esto lo hacemos en el estilo &#8220;info&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.item</span> div.info<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#69F</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora veamos el Javascript, yo llamo a los JS antes de cerrar la etiqueta BODY. Vamos a llamar al los JS jquery.js y jquery.easing.js. Además, cuando termine de cargar el documento vamos a hacer que el acordion funcione, para esto vamos a utilizar el método <a href="http://docs.jquery.com/Core/each">each</a> de Jquery. Esto lo utilizo para que se sepa cual es el título y la información de cada &#8220;item&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:0--&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.easing.js&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:1--&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">2</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Luego recuperamos el titulo y la información por cada &#8220;item&#8221;, aquí es donde usamos el número que le pusimos a los divs. Cuando le demos clic al título, su info respectiva se mostrará o se ocultará dependiendo del caso.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.acordion div.item&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> num <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;_&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//RECUPERAMOS EL NÚMERO</span>
		<span style="color: #003366; font-weight: bold;">var</span> titulo <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;div#titulo_&quot;</span><span style="color: #339933;">+</span>num<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> info <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;div#info_&quot;</span><span style="color: #339933;">+</span>num<span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span>titulo<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideToggle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Como ven, hasta ahí ya funciona el acordio, ahora pongámosle el easing y tiempo, el tiempo es en milisegundos, osea cada 1000 es 1 segundo.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> tiempoAbrir <span style="color: #339933;">=</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.acordion div.item&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> num <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;_&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> titulo <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;div#titulo_&quot;</span><span style="color: #339933;">+</span>num<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> info <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;div#info_&quot;</span><span style="color: #339933;">+</span>num<span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span>titulo<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideToggle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span> tiempoAbrir<span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;easeOutElastic&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Si prueban hasta este punto, van a ver que cuando se abre uno no se cierra el otro. Para que no estén dos abiertos lo que se debe hacer es que cuando se abra uno se guarda en una variable el que está abierto, entonces si se le da clic a otro se cierra primero éste y luego se abre el otro.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> abierto<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> tiempoAbrir <span style="color: #339933;">=</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> tiempoCerrar <span style="color: #339933;">=</span> <span style="color: #CC0000;">500</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.acordion div.item&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> num <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;_&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> titulo <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;div#titulo_&quot;</span><span style="color: #339933;">+</span>num<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> info <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;div#info_&quot;</span><span style="color: #339933;">+</span>num<span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span>titulo<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>abierto <span style="color: #339933;">==</span> info<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span> tiempoCerrar<span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;easeInElastic&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> abierto <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;undefined&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					$<span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span> tiempoAbrir<span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;easeOutElastic&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					abierto <span style="color: #339933;">=</span> info<span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
					$<span style="color: #009900;">&#40;</span>abierto<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span> tiempoCerrar<span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;easeInElastic&quot;</span><span style="color: #339933;">,</span> complete<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
						$<span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span> tiempoAbrir<span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;easeOutElastic&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						abierto <span style="color: #339933;">=</span> info<span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>El plugin jquery.easing.js tiene diferentes tipos de movimientos, los pueden ver en bajando el ejemplo</p>
<p><a href="http://www.giancarlospot.com/ejemplos/acordion-con-easing.html" target="_blank">Mira el ejemplo</a><br />
<a href="http://www.giancarlospot.com/descargas/acordion-con-easing.zip">Descarga el ejemplo</a></p>
<p>No olvides dejar tus comentarios</p>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/javascript/acordion-con-jquery-y-con-el-plugin-jquery-easing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<enclosure url="http://www.giancarlospot.com/descargas/acordion-con-easing.zip" length="23488" type="application/zip" /><media:content url="http://www.giancarlospot.com/descargas/acordion-con-easing.zip" fileSize="23488" type="application/zip" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>El uso del acordion en las páginas webs de ahora son muy usados y es más simple de lo que uno se puede imaginar, sobre todo si lo usas con JQuery. En realidad qué es? Puede ser un &amp;#60;div&amp;#62; oculto que los muestras cuando le das clic a otro DIV, bueno </itunes:subtitle><itunes:summary>El uso del acordion en las páginas webs de ahora son muy usados y es más simple de lo que uno se puede imaginar, sobre todo si lo usas con JQuery. En realidad qué es? Puede ser un &amp;#60;div&amp;#62; oculto que los muestras cuando le das clic a otro DIV, bueno yo uso DIVS pero [...]</itunes:summary><itunes:keywords>CSS, Javascript, acordion, easing, jquery</itunes:keywords></item>
		<item>
		<title>Thumb con PHP y si es necesario recortar la imagen</title>
		<link>http://www.giancarlospot.com/php/thumb-con-php-y-si-es-necesario-recortar-la-imagen.html</link>
		<comments>http://www.giancarlospot.com/php/thumb-con-php-y-si-es-necesario-recortar-la-imagen.html#comments</comments>
		<pubDate>Fri, 03 Apr 2009 01:28:15 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[GD]]></category>
		<category><![CDATA[Imágenes]]></category>
		<category><![CDATA[Recortar]]></category>
		<category><![CDATA[Thumbs]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=247</guid>
		<description><![CDATA[Con PHP y su librería GD podemos crear thumbnail de una imagen fácilmente. Vamos a crear una función que se llame CrearThumb y le mandaremos los siguientes parámetros: Imagen Original, Imagen de Destino, Ancho Original, Alto Original, Nuevo Ancho, Nuevo Alto y La Calidad de la Imagen. Al momento de llamar a esta funcion, en [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/0yXNPoNW9MdYNByyk8yv5W7ycDc/0/da"><img src="http://feedads.g.doubleclick.net/~a/0yXNPoNW9MdYNByyk8yv5W7ycDc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/0yXNPoNW9MdYNByyk8yv5W7ycDc/1/da"><img src="http://feedads.g.doubleclick.net/~a/0yXNPoNW9MdYNByyk8yv5W7ycDc/1/di" border="0" ismap="true"></img></a></p><p>Con <a href="http://www.php.net">PHP</a> y su librería <a href="http://www.php.net/manual/es/ref.image.php">GD</a> podemos crear thumbnail de una imagen fácilmente. Vamos a crear una función que se llame CrearThumb y le mandaremos los siguientes parámetros: Imagen Original, Imagen de Destino, Ancho Original, Alto Original, Nuevo Ancho, Nuevo Alto y La Calidad de la Imagen.<br />
<span id="more-247"></span></p>
<p>Al momento de llamar a esta funcion, en los dos primeros parámetros hay que dar el nombre de los archivos pero con la ruta absoluta del servidor.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> CreateThumb<span style="color: #009900;">&#40;</span>$pImageOrigen<span style="color: #339933;">,</span> $pImageDestino<span style="color: #339933;">,</span> $pWidth<span style="color: #339933;">,</span> $pHeight<span style="color: #339933;">,</span> $pMaxWidth<span style="color: #339933;">,</span> $pMaxHeight<span style="color: #339933;">,</span> $pCalidad<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">// SI WIDTH ES MAS ALTO, LO CORTO POR WIDTH Y VICEVERSA</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$pWidth <span style="color: #339933;">&gt;</span> $pHeight<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$_porcentaje <span style="color: #339933;">=</span> $pMaxHeight<span style="color: #339933;">*</span><span style="color: #CC0000;">100</span><span style="color: #339933;">/</span>$pHeight<span style="color: #339933;">;</span>
			$_height <span style="color: #339933;">=</span> $pMaxHeight<span style="color: #339933;">;</span>
			$_width <span style="color: #339933;">=</span> ceil<span style="color: #009900;">&#40;</span>$_porcentaje<span style="color: #339933;">*</span>$pWidth<span style="color: #339933;">/</span><span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
			$_porcentaje <span style="color: #339933;">=</span> $pMaxWidth<span style="color: #339933;">*</span><span style="color: #CC0000;">100</span><span style="color: #339933;">/</span>$pWidth<span style="color: #339933;">;</span>
			$_width <span style="color: #339933;">=</span> $pMaxWidth<span style="color: #339933;">;</span>
			$_height <span style="color: #339933;">=</span> ceil<span style="color: #009900;">&#40;</span>$_porcentaje<span style="color: #339933;">*</span>$pHeight<span style="color: #339933;">/</span><span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		$_pic <span style="color: #339933;">=</span> <span style="color: #339933;">@</span>imagecreatefromjpeg<span style="color: #009900;">&#40;</span>$pImageOrigen<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		$_tmp <span style="color: #339933;">=</span> imagecreatetruecolor<span style="color: #009900;">&#40;</span>$pMaxWidth<span style="color: #339933;">,</span> $pMaxHeight<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		imagecopyresized<span style="color: #009900;">&#40;</span>$_tmp<span style="color: #339933;">,</span> $_pic<span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> $_width<span style="color: #339933;">,</span> $_height<span style="color: #339933;">,</span> $pWidth<span style="color: #339933;">,</span> $pHeight<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		imagejpeg<span style="color: #009900;">&#40;</span>$_tmp<span style="color: #339933;">,</span> $pImageDestino<span style="color: #339933;">,</span> $pCalidad<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		imagedestroy<span style="color: #009900;">&#40;</span>$_pic<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		imagedestroy<span style="color: #009900;">&#40;</span>$_tmp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Con esta función se creará un thumb. Claro que si los tamaños originales de la imagen son proporcionales a los nuevos tamañas de la imagen, no cortará la imagen. Pero si ese no es el caso, la imagen será cortada luego de ser reducida lo máximo posible.</p>
<p>Hagan la prueba!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/php/thumb-con-php-y-si-es-necesario-recortar-la-imagen.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convertir video o audio a FLV con PHP y FFMPEG</title>
		<link>http://www.giancarlospot.com/php/convertir-video-o-audio-a-flv-con-php-y-ffmpeg.html</link>
		<comments>http://www.giancarlospot.com/php/convertir-video-o-audio-a-flv-con-php-y-ffmpeg.html#comments</comments>
		<pubDate>Sat, 21 Mar 2009 21:26:39 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[FLV]]></category>
		<category><![CDATA[FLVTool2]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=224</guid>
		<description><![CDATA[Igual que youtube, nosotros con unas pocas líneas de código en PHP podemos convertir nuestro videos o audios a formato FLV automáticamente con PHP. Con este artículo podrán hacer, por ejemplo, una administración de una galería de videos y/o audios para luego ser vistos o escuchados, respectivamente, en su web por un player hecho en [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/VycXFH8C781oVi-DT9St53bOVP0/0/da"><img src="http://feedads.g.doubleclick.net/~a/VycXFH8C781oVi-DT9St53bOVP0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VycXFH8C781oVi-DT9St53bOVP0/1/da"><img src="http://feedads.g.doubleclick.net/~a/VycXFH8C781oVi-DT9St53bOVP0/1/di" border="0" ismap="true"></img></a></p><p>Igual que <a href="http://www.youtube.com/" target="_blank">youtube</a>, nosotros con unas pocas líneas de código en <a href="http://www.php.net" target="_blank">PHP</a> podemos convertir nuestro videos o audios a formato <a href="http://www.cristalab.com/tutoriales/tutorial-de-flash-video-flv-para-flash-c84l/" target="_blank">FLV</a> automáticamente con PHP. Con este artículo podrán hacer, por ejemplo, una administración de una galería de videos y/o audios para luego ser vistos o escuchados, respectivamente, en su web por un player hecho en <a href="http://www.adobe.com/products/flash/" target="_blank">Adobe Flash</a>.</p>
<p>El FFMPEG puede ser utilizado en <a href="http://www.ffmpeg.org/download.html" target="_blank">Linux</a> como en <a href="http://www.videohelp.com/tools/ffmpeg" target="_blank">Windows</a>. Además con el <a href="http://osflash.org/flvtool2" target="_blank">FLVTool2</a> podemos manipular el FLV para que tenga lo necesario para poder correr nuestro FLV en un player hecho en Flash.</p>
<p>Veamos sencillamente cómo convertir un WMV a FLV con el FFMPEG</p>
<p><span id="more-224"></span>Este ejemplo lo vamos a hacer en Windows pero recuerden que es igual en Linux, solo que no vamos a tener los ejecutables  en la misma carpeta como en Windows, el FFMPEG y FLVTool2 se instalan en Linux. Para este caso copiamos nuestros ejecutables del FFMPEG y FLTool2 en la carpeta &#8220;C:\videos&#8221;. Yo voy a tener el archivo mivideo.wmv en &#8220;C:\videos&#8221; para no tener que escribir otras rutas en la línea de comando.</p>
<p>Así estaría la carpeta</p>
<p><img class="aligncenter size-full wp-image-230" title="Carpeta de videos, FFMPEG y FLVTool2" src="http://www.giancarlospot.com/wp-content/uploads/2009/03/ffmpeg_videos.jpg" alt="Carpeta de videos, FFMPEG y FLVTool2" width="450" height="280" /></p>
<p>Abrimos Command</p>
<p><img class="aligncenter size-full wp-image-229" title="Command Windows" src="http://www.giancarlospot.com/wp-content/uploads/2009/03/cmd.jpg" alt="Command Windows" width="450" height="225" /></p>
<p>Ahora escribimos el línea básica para convertir mi video mivideo.wmv a mivideo.flv. <strong>&#8220;ffmpeg -y -i mivideo.wmv -f flv -vcodec flv -acodec mp3 -s 320&#215;240 -ar 22050 mivideo.flv&#8221;</strong></p>
<p><img class="aligncenter size-full wp-image-231" title="Command FFMPEG" src="http://www.giancarlospot.com/wp-content/uploads/2009/03/cmd_ffmpeg.jpg" alt="Command FFMPEG" width="450" height="224" />Lo que indica, en rasgos generales, en esa línea es que con mivideo.wmv vamos a crear el mismo video pero en formato FLV y su nombre será mivideo.flv, aunque este archivo exista vamos a reemplazarlo, el tamaño será de 320&#215;240 px.  y tendrá un 22050 Hz. Utilizaremos el codec MP3, para audio y el codec MPEG para video.</p>
<p>Si queremos convertir un audio a FLV, sería la misma línea solo que no ponemos el codec de video ni las dimensiones, por obvias razones.</p>
<p>Si escriben &#8220;ffmpeg&#8221; en la línea de comandos aparecerán todas las alternativas que pueden utilizar.</p>
<p><a class="thickbox" title="Opciones del FFMPEG" href="http://www.giancarlospot.com/html_ajax/opciones_ffmpeg.html?height=450&amp;width=900">Opciones del FFMPEG</a></p>
<p>Ahora veamos el FLVTool2, es sencillo también. Solo escribimos <strong>&#8220;flvtool2 -UPx mivideo.flv&#8221;</strong>. Luego de escribir esto verán, en el Command, un formato XML, éste te muestra las propiedades que recuperó del video o audio que formateamos. Con este XML podemos recuperar información valiosa como la duración del video por ejemplo. Podemos guardar este XML de esta manera <strong>&#8220;flvtool2 -UPx mivideo.flv &gt; mivideo.xml&#8221;</strong>.</p>
<p>Algo valioso del FFMPEG es que podemos tomar un frame del video y guardarlo en JPEG. Fácilmente con <strong>&#8220;ffmpeg -i mivideo.flv -vframes 70 -s 120&#215;90 -f image2 -y mivideo.jpg&#8221;</strong><br />
Estamos diciendo que cogemos el frame 70 y guardamos la imagen con las dimensiones 120&#215;90 px.</p>
<p>Ok, y donde entra el PHP? Bueno simple, nosotros con el comando &#8220;<a href="http://www.php.net/manual/es/function.exec.php" target="_blank">exec</a>&#8221; podemos correr lineas de comando con PHP. Esto quiere decir que si en PHP podemos utilizar cualquiera de las líneas que he comentado, por ejemplo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/php/convertir-video-o-audio-a-flv-con-php-y-ffmpeg.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cómo explayarte en una entrevista de trabajo</title>
		<link>http://www.giancarlospot.com/freelancers/como-explayarte-en-una-entrevista-de-trabajo.html</link>
		<comments>http://www.giancarlospot.com/freelancers/como-explayarte-en-una-entrevista-de-trabajo.html#comments</comments>
		<pubDate>Thu, 12 Mar 2009 17:10:56 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[Freelancers]]></category>
		<category><![CDATA[entrevistas]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=218</guid>
		<description><![CDATA[Muchos que se dedican a Web empiezan con trabajos pequeños como &#8220;Freelancer&#8221; pero poco a poco van tomando más &#8220;cancha&#8221; y comienzan a hacer trabajos más grandes y van aprendiendo más. Para hacer estos trabajos tuvieron reuniones con el cliente y sacaron el proyecto excelentemente. Pero nunca han tenido una entrevista de trabajo real. ¿Cómo [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/cplV5p385DryfFx6vHc0wfUnSZs/0/da"><img src="http://feedads.g.doubleclick.net/~a/cplV5p385DryfFx6vHc0wfUnSZs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cplV5p385DryfFx6vHc0wfUnSZs/1/da"><img src="http://feedads.g.doubleclick.net/~a/cplV5p385DryfFx6vHc0wfUnSZs/1/di" border="0" ismap="true"></img></a></p><p>Muchos que se dedican a Web empiezan con trabajos pequeños como &#8220;<a href="http://es.wikipedia.org/wiki/Freelance">Freelancer</a>&#8221; pero poco a poco van tomando más &#8220;cancha&#8221; y comienzan a hacer trabajos más grandes y van aprendiendo más. Para hacer estos trabajos tuvieron reuniones con el cliente y sacaron el proyecto excelentemente. Pero nunca han tenido una entrevista de trabajo real. ¿Cómo son estas entevistas? Por intuición sabemos algunas cosas, pero qué es lo que nos preguntan las grandes empresas?</p>
<p><span id="more-218"></span>En mi antiguo trabajo entrevisté a muchas personas y me di con muchas sorpresas. Muchos de ellos sabían, pero no sabían cómo explicarlo, se callaban y esperaban que les preguntara todo. Otros hablan mucho pero redundaban en lo mismo y la entrevista caia pesada. Me decían muchas cosas que hacían pero se los tenía que sacar por cucharita y en otros casos no llevaban el hilo de la conversación.</p>
<p>Recuerden siempre que vayan a una entrevista de trabajo, ustedes son los que están buscando ese trabajo, deben de dar a entender que son los mejores para ese puesto y que son capaces de trabajar en esa empresa. Demuestren que saben pero sin &#8220;aires de superioridad&#8221;. Expliquen a detalle sus trabajos, soluciones que han dado a diferentes problemas, trabajo en equipo (esto es muy importante), experiencia relacionada a la empresa entrevistadora, etc.</p>
<p>Traten de averiguar lo máximo posible sobre esa empresa y traten de buscar algún desarrollo que hayan hecho que le pueda beneficiar a la empresa o que esté dentro del ramo de la misma. Den ideas nuevas pero no den a entender que esa empresa no funciona. NUNCA, NUNCA hablen mal de otras empresas donde hayan trabajo o malas experiencias con clientes ni de sus antiguos jefes porque pueden parecer soberbios. Recuerden que ellos no han estado ahí y jamás van a entender, como ustedes, lo que vivieron.</p>
<p>Recuerden que los conocimientos técnicos no son todo en la vida, deben dar a conocer que ustedes son buenas personas, que trabajan en equipo, que apoyan a los demás, que pueden enseñar nuevas cosas, que tienen buenas ideas y pueden aprender de ellos.</p>
<p>Aquí algunos links que también hablan del tema.</p>
<p><a href="http://www.gipe.ua.es/formacion/entrevista.htm" target="_blank">Consejos para superar una entrevista de trabajo</a><br />
<a href="http://www.slideshare.net/cristellp/10-claves-para-tu-entrevista-de-trabajo" target="_blank">10 claves para tu entrevista de trabajo</a></p>
<div style="text-align: center;"><object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/C-IrKbqq_dQ&#038;hl=en&#038;fs=1&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/C-IrKbqq_dQ&#038;hl=en&#038;fs=1&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/freelancers/como-explayarte-en-una-entrevista-de-trabajo.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<enclosure url="http://www.youtube.com/v/C-IrKbqq_dQ&amp;#038;hl=en&amp;#038;fs=1&amp;#038;color1=0x3a3a3a&amp;#038;color2=0x999999&amp;#038;border=1" length="2655" type="application/x-shockwave-flash" /><media:content url="http://www.youtube.com/v/C-IrKbqq_dQ&amp;#038;hl=en&amp;#038;fs=1&amp;#038;color1=0x3a3a3a&amp;#038;color2=0x999999&amp;#038;border=1" fileSize="2655" type="application/x-shockwave-flash" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>Muchos que se dedican a Web empiezan con trabajos pequeños como &amp;#8220;Freelancer&amp;#8221; pero poco a poco van tomando más &amp;#8220;cancha&amp;#8221; y comienzan a hacer trabajos más grandes y van aprendiendo más. Para hacer estos trabajos tuvieron reuniones con</itunes:subtitle><itunes:summary>Muchos que se dedican a Web empiezan con trabajos pequeños como &amp;#8220;Freelancer&amp;#8221; pero poco a poco van tomando más &amp;#8220;cancha&amp;#8221; y comienzan a hacer trabajos más grandes y van aprendiendo más. Para hacer estos trabajos tuvieron reuniones con el cliente y sacaron el proyecto excelentemente. Pero nunca han tenido una entrevista de trabajo real. ¿Cómo [...]</itunes:summary><itunes:keywords>Freelancers, entrevistas</itunes:keywords></item>
		<item>
		<title>Extensión de Extjs para Dreamweaver</title>
		<link>http://www.giancarlospot.com/javascript/extension-de-extjs-para-dreamweaver.html</link>
		<comments>http://www.giancarlospot.com/javascript/extension-de-extjs-para-dreamweaver.html#comments</comments>
		<pubDate>Thu, 12 Mar 2009 16:15:06 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[extjs]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=209</guid>
		<description><![CDATA[Así es. Podemos instalar una extensión de la famosa librería Extjs a nuestro Dreamweaver desde la versión MX 2004 en adelante. Así como cuando escribimos código HTML o CSS en el Dreamweaver y aparece una ventanita mostrándonos el &#8220;código&#8221; que puede ir con la palabra que estamos escribiendo, esta extensión funciona de la misma forma [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/z3sTSFUaeG-wNQlwWODIgNk0qc4/0/da"><img src="http://feedads.g.doubleclick.net/~a/z3sTSFUaeG-wNQlwWODIgNk0qc4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/z3sTSFUaeG-wNQlwWODIgNk0qc4/1/da"><img src="http://feedads.g.doubleclick.net/~a/z3sTSFUaeG-wNQlwWODIgNk0qc4/1/di" border="0" ismap="true"></img></a></p><p>Así es. Podemos instalar una extensión de la famosa librería Extjs a nuestro Dreamweaver desde la versión MX 2004 en adelante. Así como cuando escribimos código HTML o CSS en el Dreamweaver y aparece una ventanita mostrándonos el &#8220;código&#8221; que puede ir con la palabra que estamos escribiendo, esta extensión funciona de la misma forma con el &#8220;código&#8221; del Extjs. <a href="http://www.spket.com/dreamweaver-extension.html" target="_blank">Pueden entrar a esta página para ver más detalles y descargar la extensión</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/javascript/extension-de-extjs-para-dreamweaver.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Llenar combo con Ajax y PHP</title>
		<link>http://www.giancarlospot.com/javascript/llenar-combo-con-ajax-y-php.html</link>
		<comments>http://www.giancarlospot.com/javascript/llenar-combo-con-ajax-y-php.html#comments</comments>
		<pubDate>Tue, 10 Mar 2009 14:04:16 +0000</pubDate>
		<dc:creator>giancarlo</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[combo]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.giancarlospot.com/?p=192</guid>
		<description><![CDATA[He visto muchas preguntas en foros de cómo poder modificar un combo según el valor que el visitante selecciona de otro. Esto es más sencillo de lo que muchos creen. Con este video vamos a ver cómo poder modificar un combo utilizando Ajax. En mi caso uso JQuery pero no es necesario, ya lo verán. [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/GDVQ0WS6Kcluvp4tvUM_KMEBp9c/0/da"><img src="http://feedads.g.doubleclick.net/~a/GDVQ0WS6Kcluvp4tvUM_KMEBp9c/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GDVQ0WS6Kcluvp4tvUM_KMEBp9c/1/da"><img src="http://feedads.g.doubleclick.net/~a/GDVQ0WS6Kcluvp4tvUM_KMEBp9c/1/di" border="0" ismap="true"></img></a></p><p>He visto muchas preguntas en foros de cómo poder modificar un combo según el valor que el visitante selecciona de otro. Esto es más sencillo de lo que muchos creen. Con este video vamos a ver cómo poder modificar un combo utilizando Ajax. En mi caso uso JQuery pero no es necesario, ya lo verán.</p>
<p><span id="more-192"></span></p>
<div id="video_flash" style="text-align: center;"></div>
<p><a href="http://www.giancarlospot.com/descargas/combo_ajax.zip">Descargar Ejemplo</a></p>
<p><a href="http://www.giancarlospot.com/javascript/empezando-con-jqueryempezando-con-jquery.html">Conocer más de JQuery</a><br />
<a href="http://www.giancarlospot.com/php/json-php-y-javascriptjson-php-y-javascript.html">Conocer más de JSON</a><br />
<a href="http://getfirebug.com/">Descarga el Add-on Firebug que utilizo en el tutorial</a><br />
<a href="http://www.php.net/manual/es/function.sleep.php">Acerca de la función Sleep en PHP</a><br />
<script type="text/javascript" src="/js/swfobject.js"></script><br />
 <script type="text/javascript">
var so = new SWFObject('/swf/player.swf','player','449','386','8');
so.useExpressInstall('/swf/expressinstall.swf');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('flashvars','file=/videos/llenar_combo_con_ajax_y_php.flv&#038;image=/images/videos/llenar_combo_ajax_php.jpg');
so.addParam("wmode", "opaque");
so.write('video_flash');
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.giancarlospot.com/javascript/llenar-combo-con-ajax-y-php.html/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		<enclosure url="http://www.giancarlospot.com/descargas/combo_ajax.zip" length="26145" type="application/zip" /><media:content url="http://www.giancarlospot.com/descargas/combo_ajax.zip" fileSize="26145" type="application/zip" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>He visto muchas preguntas en foros de cómo poder modificar un combo según el valor que el visitante selecciona de otro. Esto es más sencillo de lo que muchos creen. Con este video vamos a ver cómo poder modificar un combo utilizando Ajax. En mi caso uso J</itunes:subtitle><itunes:summary>He visto muchas preguntas en foros de cómo poder modificar un combo según el valor que el visitante selecciona de otro. Esto es más sencillo de lo que muchos creen. Con este video vamos a ver cómo poder modificar un combo utilizando Ajax. En mi caso uso JQuery pero no es necesario, ya lo verán. [...]</itunes:summary><itunes:keywords>Javascript, ajax, combo, jquery, PHP</itunes:keywords></item>
	<media:rating>nonadult</media:rating></channel>
</rss>
