<?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>Blooging &#187; Scripts</title>
	<atom:link href="http://www.blooging.net/category/scripts/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blooging.net</link>
	<description>Desarrollo Web y WordPress</description>
	<lastBuildDate>Fri, 12 Mar 2010 01:14:11 +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>Romper Iframes [Script]</title>
		<link>http://www.blooging.net/romper-iframes-script.html</link>
		<comments>http://www.blooging.net/romper-iframes-script.html#comments</comments>
		<pubDate>Sun, 20 Sep 2009 19:29:19 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Iframes]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1220</guid>
		<description><![CDATA[Mientras me daba una vuelta por ForoBeta me encontré con un script que nos permite eliminar cualquier iframe, como por ejemplo, en los resultados de busqueda en las imágenes de google. Al entrar a una imágen se muestra una barra blanca, con el enlace hacia la imágen, pero aunque se cargue nuestro sitio, no nos [...]]]></description>
			<content:encoded><![CDATA[<p>Mientras me daba una vuelta por <strong>ForoBeta</strong> me encontré con un <a title="Retener usuario que vienen de Google Images" href="http://forobeta.com/plugins/3664-retener-usuario-que-vienen-de-google-images.html#post49504">script que nos permite eliminar cualquier iframe</a>, como por ejemplo, en los resultados de busqueda en las imágenes de google. Al entrar a una imágen se muestra una barra blanca, con el enlace hacia la imágen, pero aunque se cargue nuestro sitio, no nos envía visitas.</p>
<p style="text-align: center;"><a href="http://www.blooging.net/wp-content/uploads/2009/09/bloquear-iframe.png"><img class="alignnone size-full wp-image-1221" title="Bloquear Iframes [Script]" src="http://www.blooging.net/wp-content/uploads/2009/09/bloquear-iframe.png" alt="Bloquear Iframes [Script]" width="1366" height="100" /></a></p>
<p>Para arreglar esto podemos implementar un script que nos elimine ese iframe, de tal forma que las visitas se vean obligadas a entrar a nuestro sitio.</p>
<p>Este código lo agregaremos dentro de las etiquetas <strong>&lt;head&gt; &lt;/head&gt;</strong> (según los usuarios de ForoBeta deberíamos agregarlo justo debajo de &lt;body&gt;, pero al hacerlo se demora más en cargar el script y es una molestia para los usuarios. Ya probé que  funciona perfectamente dentro de &lt;head&gt;, no se preocupen)</p>
<div class="igBar"><span id="ljavascript-2"><a href="#" onclick="javascript:showPlainTxt('javascript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="javascript-2">
<div class="javascript">&lt;!--Romper Iframes--&gt;<br />
&nbsp; &nbsp;&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;&lt;!--<br />
&nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>top.<span style="color: #006600;">location</span>!=<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">location</span><span style="color: #66cc66;">&#41;</span> top.<span style="color: #006600;">location</span>=<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">location</span>;<br />
&nbsp; &nbsp;<span style="color: #009900; font-style: italic;">//--&gt;&lt;/script&gt; </span></div>
</div>
</div>
<p></p>
<p>Podrán sacarle mucho provecho si reciben hartas visitas desde Google Images, ya que ahora todas las visitas entrarán a nuestro sitio por obligación <img src='http://www.blooging.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Espero que les sea igual de útil que a mí.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/romper-iframes-script.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Browser Shooter, guerra de navegadores web</title>
		<link>http://www.blooging.net/browser-shooter-guerra-navegadores-web.html</link>
		<comments>http://www.blooging.net/browser-shooter-guerra-navegadores-web.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 13:37:24 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Navegador]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1186</guid>
		<description><![CDATA[
Se trata de un simple juego,al estilo de Puzzle Bobble, en el cual debes unir 2 mas navegadores del mismo tipo para que no pierdas.
Funciona con jQuery y muchos elementos JavaScript.
¿Qué esperas? Entra y juega la guerra de los navegadores.
Vía: aNieto2k
Enlace: Browser Shooter, dispara navegadores con Javascript.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone" title="Browser Shooter" src="http://i82.servimg.com/u/f82/13/32/71/45/browse10.jpg" alt="" width="491" height="336" /></p>
<p style="text-align: justify;">Se trata de un simple juego,al estilo de <a title="Información en Inglés" href="http://en.wikipedia.org/wiki/Puzzle_Bobble">Puzzle Bobble</a>, en el cual debes unir 2 mas navegadores del mismo tipo para que no pierdas.</p>
<p style="text-align: justify;">Funciona con jQuery y muchos elementos JavaScript.</p>
<p style="text-align: justify;"><strong>¿Qué esperas?</strong> <a title="Browser Shooter" href="http://valums.com/demos/game/">Entra y juega la guerra de los navegadores</a>.</p>
<p style="text-align: justify;"><strong>Vía:</strong> <a href="http://www.anieto2k.com/">aNieto2k</a></p>
<p style="text-align: justify;"><strong>Enlace:</strong> <a href="http://www.anieto2k.com/2009/08/29/browser-shooter-dispara-navegadores-con-javascript/">Browser Shooter, dispara navegadores con Javascript</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/browser-shooter-guerra-navegadores-web.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listar Archivos .php con PHP</title>
		<link>http://www.blooging.net/listar-archivos-php-con-php.html</link>
		<comments>http://www.blooging.net/listar-archivos-php-con-php.html#comments</comments>
		<pubDate>Sat, 16 May 2009 23:01:23 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[lista]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1126</guid>
		<description><![CDATA[De hace unos días que estoy alejado del blog, un poco de flojera y otro porque estoy trabajando en una página hecha en PHP.
Mientras lo estaba haciendo se me ocurrió tener una página que mostrara todos los archivos de ese directorio, en este caso son letras de  canciones. La idea es mostrar todas las canciones [...]]]></description>
			<content:encoded><![CDATA[<p>De hace unos días que estoy alejado del blog, un poco de flojera y otro porque estoy trabajando en una página hecha en PHP.</p>
<p>Mientras lo estaba haciendo se me ocurrió tener una página que mostrara todos los archivos de ese directorio, en este caso son letras de  canciones. La idea es mostrar todas las canciones dentro del directorio en forma de lista, usando un título legible con un enlace hacia la canción. Es una especie de <a title="Crear un Mapa de Web [WordPress]" href="http://www.blooging.net/crear-mapa-de-web.html">mapa de web</a> automático.</p>
<p>Esta lista se encuentra ordenada alfabéticamente utilizando como nombre la url del archivo, ejemplo:</p>
<p style="padding-left: 30px;">http://www.mipagina.com/mi-página-personal.php</p>
<p>Este script generará automáticamente un título sin guiones, ya que los reemplaza por espacios automáticamente. En la lista se mostraría de esta forma:</p>
<ul>
<li>Mi Pagina Personal</li>
</ul>
<p>Automáticamente cada palabra empezará con mayúscula.</p>
<p>El código utilizado lo conseguí gracias a la página oficial de <a title="Página Oficial PHP" href="http://php.net">php</a>, utilizando la variable <a title="Manual opendir" href="http://www.blooging.net/crear-mapa-de-web.html">opendir()</a>.</p>
<p>Este es el código utilizado:<br />
<span id="more-1126"></span></p>
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showPlainTxt('php-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="php-4">
<div class="php"><span style="color:#000000; font-weight:bold;">&lt;?php</span><br />
&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// read all php file in the current directory</span><br />
&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dh</span> = <a href="http://www.php.net/opendir"><span style="color:#000066;">opendir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'./'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$files</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">while</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$file</span> = <a href="http://www.php.net/readdir"><span style="color:#000066;">readdir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dh</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> !== <span style="color:#000000; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$file</span>, <a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span> - <span style="color:#CC66CC;">4</span><span style="color:#006600; font-weight:bold;">&#41;</span> == <span style="color:#FF0000;">'.php'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_push"><span style="color:#000066;">array_push</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$files</span>, <span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/closedir"><span style="color:#000066;">closedir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dh</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></p>
<p>&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Sort the files and display</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/sort"><span style="color:#000066;">sort</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$files</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;ul&gt;<span style="color:#000099; font-weight:bold;">\n</span>"</span>;<br />
&nbsp; &nbsp; <span style="color:#616100;">foreach</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$files</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$title</span> = Title<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;li&gt;&lt;a href=<span style="color:#000099; font-weight:bold;">\"</span>$file<span style="color:#000099; font-weight:bold;">\"</span> title=<span style="color:#000099; font-weight:bold;">\"</span>$title<span style="color:#000099; font-weight:bold;">\"</span>&gt;$title&lt;/a&gt;&lt;/li&gt;<span style="color:#000099; font-weight:bold;">\n</span>"</span>;<br />
&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;/ul&gt;<span style="color:#000099; font-weight:bold;">\n</span>"</span>;</p>
<p>&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Function to get a human readable title from the filename</span><br />
&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> Title<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$filename</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$title</span> = <a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$filename</span>, <span style="color:#CC66CC;">0</span>, <a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$filename</span><span style="color:#006600; font-weight:bold;">&#41;</span> - <span style="color:#CC66CC;">4</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$title</span> = <a href="http://www.php.net/str_replace"><span style="color:#000066;">str_replace</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'-'</span>, <span style="color:#FF0000;">' '</span>, <span style="color:#0000FF;">$title</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$title</span> = <a href="http://www.php.net/ucwords"><span style="color:#000066;">ucwords</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$title</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$title</span>;<br />
&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><br />
<span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</div>
</div>
<p>
No tengo como mostrarles una demo por el momento, pero les aseguro que funciona, el único problema, según yo, es que en la lista también se muestra un link hacia el archivo que contiene este código, pero es lo de menos <img src='http://www.blooging.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Espero que me haya quedado entendible <strong>:B</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/listar-archivos-php-con-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mostrar Navegador y Sistema Operativo con JavaScript</title>
		<link>http://www.blooging.net/mostrar-navegador-y-sistema-operativo-con-javascript.html</link>
		<comments>http://www.blooging.net/mostrar-navegador-y-sistema-operativo-con-javascript.html#comments</comments>
		<pubDate>Sun, 10 May 2009 04:52:25 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Navegador]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1119</guid>
		<description><![CDATA[Algo muy útil y un poco divertido para quien lo ve, es mostrar, a través de texto el navegador y sistema operativo de nuestros visitantes.
Para hacer esto utilizaremos un "pequeño" código JavaScript, que podemos insertar directamente en nuestro archivo dentro de las etiquetas &#60;head&#62;&#60;/head&#62; o insertar dentro de un archivo .js.
Este es el script:
(Es muy [...]]]></description>
			<content:encoded><![CDATA[<p>Algo muy útil y un poco divertido para quien lo ve, es mostrar, a través de texto el <a title="Obtener navegador y sistema operativo con javascript" href="http://emilio.aesinformatica.com/2008/10/31/obtener-navegador-y-sistema-operativo-con-javascript/">navegador y sistema operativo de nuestros visitantes</a>.</p>
<p>Para hacer esto utilizaremos un "pequeño" código <a title="Posts con etiqueta &quot;JavaScript&quot;" href="http://www.blooging.net/tag/javascript">JavaScript</a>, que podemos insertar directamente en nuestro archivo dentro de las etiquetas &lt;head&gt;&lt;/head&gt; o insertar dentro de un archivo .js.</p>
<p>Este es el script:</p>
<p>(Es muy largo, seguir luego del salto)<br />
<span id="more-1119"></span></p>
<div class="igBar"><span id="ljavascript-7"><a href="#" onclick="javascript:showPlainTxt('javascript-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="javascript-7">
<div class="javascript"><span style="color: #003366; font-weight: bold;">var</span> BrowserDetect = <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; init: <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><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">browser</span> = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">searchString</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">dataBrowser</span><span style="color: #66cc66;">&#41;</span> || <span style="color: #3366CC;">"An unknown browser"</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">version</span> = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">searchVersion</span><span style="color: #66cc66;">&#40;</span>navigator.<span style="color: #006600;">userAgent</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; || <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">searchVersion</span><span style="color: #66cc66;">&#40;</span>navigator.<span style="color: #006600;">appVersion</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; || <span style="color: #3366CC;">"an unknown version"</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">OS</span> = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">searchString</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">dataOS</span><span style="color: #66cc66;">&#41;</span> || <span style="color: #3366CC;">"an unknown OS"</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; searchString: <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i=<span style="color: #CC0000;">0</span>;i&lt;data.<span style="color: #006600;">length</span>;i++<span style="color: #66cc66;">&#41;</span>&nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> dataString = data<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">string</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> dataProp = data<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">prop</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">versionSearchString</span> = data<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">versionSearch</span> || data<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">identity</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>dataString<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>dataString.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">subString</span><span style="color: #66cc66;">&#41;</span> != -<span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> data<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">identity</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>dataProp<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> data<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">identity</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; searchVersion: <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span>dataString<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> index = dataString.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">versionSearchString</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>index == -<span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> parseFloat<span style="color: #66cc66;">&#40;</span>dataString.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span>index+<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">versionSearchString</span>.<span style="color: #006600;">length</span>+<span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; dataBrowser: <span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">userAgent</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Chrome"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Chrome"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span> &nbsp; string: navigator.<span style="color: #006600;">userAgent</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"OmniWeb"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; versionSearch: <span style="color: #3366CC;">"OmniWeb/"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"OmniWeb"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">vendor</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Apple"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Safari"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; prop: window.<span style="color: #006600;">opera</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Opera"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">vendor</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"iCab"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"iCab"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">vendor</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"KDE"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Konqueror"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">userAgent</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Firefox"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Firefox"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">vendor</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Camino"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Camino"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #009900; font-style: italic;">// for newer Netscapes (6+)</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">userAgent</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Netscape"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Netscape"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">userAgent</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"MSIE"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Explorer"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; versionSearch: <span style="color: #3366CC;">"MSIE"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">userAgent</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Gecko"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Mozilla"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; versionSearch: <span style="color: #3366CC;">"rv"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span> &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// for older Netscapes (4-)</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">userAgent</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Mozilla"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Netscape"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; versionSearch: <span style="color: #3366CC;">"Mozilla"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span>,<br />
&nbsp; &nbsp; dataOS : <span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">platform</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Win"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Windows"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">platform</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Mac"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Mac"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string: navigator.<span style="color: #006600;">platform</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subString: <span style="color: #3366CC;">"Linux"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity: <span style="color: #3366CC;">"Linux"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span></p>
<p><span style="color: #66cc66;">&#125;</span>;<br />
BrowserDetect.<span style="color: #006600;">init</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</p>
<p><span style="color: #003366; font-weight: bold;">var</span> espacio = document.<span style="color: #006600;">createTextNode</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"<span style="color: #000099; font-weight: bold;">\u</span>00a0"</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
<p></p>
<p>Y para mostrarlo usamos lo siguiente:</p>
<div class="igBar"><span id="ljavascript-8"><a href="#" onclick="javascript:showPlainTxt('javascript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="javascript-8">
<div class="javascript">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;<br />
document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'Estás usando '</span> + BrowserDetect.<span style="color: #006600;">browser</span> + <span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\u</span>00a0'</span> + BrowserDetect.<span style="color: #006600;">version</span> + <span style="color: #3366CC;">' en '</span> + BrowserDetect.<span style="color: #006600;">OS</span><span style="color: #66cc66;">&#41;</span>;<br />
&lt;/script&gt;</div>
</div>
</div>
<p>
<strong><br />
<a title="Navegador y Sistema Operativo" href="http://www.blooging.net/ejemplos/navegador.php">Ejemplo</a></strong></p>
<p><strong>¿Utilidad de esto?</strong> no mucha, pero es divertido, como ya dije <strong>:B</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/mostrar-navegador-y-sistema-operativo-con-javascript.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>URL Corta para tus Posts</title>
		<link>http://www.blooging.net/url-corta-para-tus-posts.html</link>
		<comments>http://www.blooging.net/url-corta-para-tus-posts.html#comments</comments>
		<pubDate>Tue, 05 May 2009 01:15:30 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1105</guid>
		<description><![CDATA[
Algo que es muy usado ahora en la web, especialmente en servicios web, como Twitter, es compartir tus post. Es algo muy simple, sólo debes entregarle la url de tu post a alguien y que lo vea, tan simple como eso, pero a veces nos encontramos con algún inconveniente y es que al enviar una [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-medium wp-image-1106" title="Url Corta" src="http://www.blooging.net/wp-content/uploads/2009/05/url-300x197.jpg" alt="Url Corta" width="300" height="197" /></p>
<p style="text-align: justify;">Algo que es muy usado ahora en la web, especialmente en servicios web, como <a title="Entradas con la tag Twitter" href="http://www.blooging.net/tag/twitter">Twitter</a>, es compartir tus post. Es algo muy simple, sólo debes entregarle la url de tu post a alguien y que lo vea, tan simple como eso, pero a veces nos encontramos con algún inconveniente y es que al enviar una url esta ocupa muchos caracteres y normalmente estos estan limitados.</p>
<p style="text-align: justify;">Siempre podemos utilizar servicios externos, como <a title="TinyURL" href="http://tinyurl.com/">TinyURL</a>, pero que mejor si podemos hacerlo con nuestro propio blog.</p>
<p style="text-align: justify;">Para hacer esto, utilizaremos la <a title="Posicionando nuestro WordPress" href="http://www.blooging.net/posicionando-nuestro-wordpress.html">estructura de permalinks predeterminada</a>, que es la siguiente:</p>
<div class="igBar"><span id="lhtml-14"><a href="#" onclick="javascript:showPlainTxt('html-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="html-14">
<div class="html">http://www.tublog.com/?p=1012</div>
</div>
</div>
<p></p>
<p style="text-align: justify;">Ahora nosotros queremos mostrar una url como esta, que nos redireccione automáticamente a nuestra url actual, en mi caso es esta:</p>
<div class="igBar"><span id="lhtml-15"><a href="#" onclick="javascript:showPlainTxt('html-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="html-15">
<div class="html">http://www.blooging.net/nombre-del-post.html</div>
</div>
</div>
<p></p>
<p style="text-align: justify;">Para mostrar esta url, automáticamente en cada post, incluíremos un código en nuestro archivo <strong>single.php</strong> en el lugar que más se adecue a tu diseño.</p>
<p style="text-align: justify;">El código es el siguiente:</p>
<div class="igBar"><span id="lphp-16"><a href="#" onclick="javascript:showPlainTxt('php-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="php-16">
<div class="php"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> get_bloginfo<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'url'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#FF0000;">"/?p="</span>.<span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</div>
</div>
<p></p>
<p style="text-align: justify;">Ahora, podemos mejorar visualmente este link con un poco de <a title="¿Qué es CSS?" href="http://www.blooging.net/que-es-css.html">CSS</a> dentro de un <strong>textarea</strong> y JavaScript.</p>
<div class="igBar"><span id="ljavascript-17"><a href="#" onclick="javascript:showPlainTxt('javascript-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="javascript-17">
<div class="javascript">&lt;textarea <span style="color: #003366; font-weight: bold;">class</span>=textareaid readonly=<span style="color: #3366CC;">"true"</span> <span style="color: #000066;">onFocus</span>=<span style="color: #3366CC;">"this.select()"</span>&gt;&lt;?php echo get_bloginfo<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'url'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #3366CC;">"/?p="</span>.$post-&gt;ID; ?&gt;&lt;/textarea&gt;</div>
</div>
</div>
<p></p>
<p style="text-align: justify;">En mi caso usó, en el css, este código (personalizable):</p>
<div class="igBar"><span id="lcss-18"><a href="#" onclick="javascript:showPlainTxt('css-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="css-18">
<div class="css"><span style="color: #6666ff;">.textareaid </span><span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span>: 250px; <span style="color: #000000; font-weight: bold;">height</span>: 15px;<br />
<span style="color: #000000; font-weight: bold;">font-size</span>: 12px; <span style="color: #000000; font-weight: bold;">padding-left</span>: 5px<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p></p>
<p style="text-align: justify;">Al usar un textarea con unos arreglos con JavaScript podemos obtener un textarea bloqueado, es decir, que no pueden escribir nada dentro de él y con auto-selección que nos da un exelente efecto al presionar dentro del textarea.</p>
<p style="text-align: justify;">Espero que les sea útl <strong>:B</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/url-corta-para-tus-posts.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Últimos Comentarios con Iconos en Blogger</title>
		<link>http://www.blooging.net/ultimos-comentarios-con-iconos-en-blogger.html</link>
		<comments>http://www.blooging.net/ultimos-comentarios-con-iconos-en-blogger.html#comments</comments>
		<pubDate>Sat, 18 Apr 2009 00:43:22 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Comentarios]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1098</guid>
		<description><![CDATA[En el Escaparate nos muestran un exelente tutorial sobre como mostrar los últimos  comentarios de tu blog con un icono especial a través de un pequeño script. Este icono varía según el rango que tiene cada comentarista.
]]></description>
			<content:encoded><![CDATA[<p>En el <strong>Escaparate</strong> nos muestran un exelente tutorial sobre como mostrar los <a title="Ultimos comentarios con un icono" href="http://elescaparatederosa.blogspot.com/2009/04/ultimos-comentarios-personalizados-con.html">últimos  comentarios de tu blog con un icono especial</a> a través de un pequeño script. Este icono varía según el rango que tiene cada comentarista.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/ultimos-comentarios-con-iconos-en-blogger.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problemas con Scripts de Blogger</title>
		<link>http://www.blooging.net/problemas-con-scripts-de-blogger.html</link>
		<comments>http://www.blooging.net/problemas-con-scripts-de-blogger.html#comments</comments>
		<pubDate>Thu, 26 Mar 2009 18:36:16 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SkyDrive]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1076</guid>
		<description><![CDATA[A través de Vagabundia y El Escaparate me entero de que los scripts alojados en SkyDrive, muy usado por los usuarios de Blogger, está teniendo problemas.  Esperamos que se solucionen luego  
]]></description>
			<content:encoded><![CDATA[<p>A través de <a title="Problemas con scripts y SkyDrive" href="http://vagabundia.blogspot.com/2009/03/problemas-con-scripts-y-skydrive.html">Vagabundia</a> y <a title="Problemas con los scripts alojados en SkyDrive" href="http://elescaparatederosa.blogspot.com/2009/03/problemas-con-los-scripts-alojados-en.html">El Escaparate</a> me entero de que los <a title="Usando SkyDrive para alojar scripts y otras cosas" href="http://vagabundia.blogspot.com/2008/08/usando-skydrive-para-alojar-scripts-y.html">scripts alojados en SkyDrive</a>, muy usado por los usuarios de Blogger, está teniendo problemas.  Esperamos que se solucionen luego <img src='http://www.blooging.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/problemas-con-scripts-de-blogger.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Posts Aleatorios en WordPress</title>
		<link>http://www.blooging.net/posts-aleatorios-en-wordpress.html</link>
		<comments>http://www.blooging.net/posts-aleatorios-en-wordpress.html#comments</comments>
		<pubDate>Wed, 25 Mar 2009 20:09:16 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Truco]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1071</guid>
		<description><![CDATA[
Haciendo modificaciones al diseño del blog, se me ocurrió mostrar posts aleatorios en la sidebar, pero de todos los que probé ninguno me funcionó.
Luego de unos 15 minutos trabajando logré crear un código que muestra post aleatorios, lo logré crear leyendo claramente los Template Tags en el  Codex de WordPress.
El código es el siguiente:
PLAIN TEXT


&#60;h4&#62;Posts [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone" title="Post Aleatorios" src="http://i82.servimg.com/u/f82/13/32/71/45/random10.jpg" alt="" width="421" height="335" /></p>
<p style="text-align: justify;">Haciendo modificaciones al diseño del blog, se me ocurrió mostrar posts aleatorios en la sidebar, pero de todos los que probé ninguno me funcionó.</p>
<p style="text-align: justify;">Luego de unos 15 minutos trabajando logré crear un código que muestra post aleatorios, lo logré crear leyendo claramente los <a title="Template Tags" href="http://codex.wordpress.org/Template_Tags">Template Tags</a> en el  <a title="Codex de WordPress" href="http://codex.wordpress.org/">Codex de WordPress</a>.</p>
<p style="text-align: justify;">El código es el siguiente:</p>
<div class="igBar"><span id="lphp-21"><a href="#" onclick="javascript:showPlainTxt('php-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="php-21">
<div class="php">&lt;h4&gt;Posts Aleatorios&lt;/h4&gt;<br />
<span style="color:#000000; font-weight:bold;">&lt;?php</span><br />
&nbsp;<span style="color:#0000FF;">$postslist</span> = get_posts<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'numberposts=7&amp;order=ASC&amp;orderby=rand'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp;<span style="color:#616100;">foreach</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$postslist</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$post</span><span style="color:#006600; font-weight:bold;">&#41;</span> :<br />
&nbsp; &nbsp; setup_postdata<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp;<span style="color:#000000; font-weight:bold;">?&gt;</span><br />
&nbsp;&lt;div&gt;<br />
&nbsp;&lt;li&gt;&lt;a href=<span style="color:#FF0000;">"&lt;?php the_permalink(); ?&gt;"</span>&gt;&lt;?php the_title<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;&lt;/div&gt;<br />
&nbsp;<span style="color:#000000; font-weight:bold;">&lt;?php</span> endforeach; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</div>
</div>
<p></p>
<p style="text-align: justify;">El numero de posts se puede cambiar modificando la siguiente línea: <strong>numberpost=7</strong></p>
<p style="text-align: justify;">Si quisieran que aparecieran todos los post menos los de una categoría en concreto, usen el siguiente código:</p>
<div class="igBar"><span id="lphp-22"><a href="#" onclick="javascript:showPlainTxt('php-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="php-22">
<div class="php">&lt;h4&gt;Posts Aleatorios&lt;/h4&gt;<br />
&nbsp;<span style="color:#000000; font-weight:bold;">&lt;?php</span><br />
&nbsp;<span style="color:#0000FF;">$postslist</span> = get_posts<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'numberposts=7&amp;order=ASC&amp;orderby=rand&amp;category=-142'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp;<span style="color:#616100;">foreach</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$postslist</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$post</span><span style="color:#006600; font-weight:bold;">&#41;</span> :<br />
&nbsp; &nbsp; setup_postdata<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp;<span style="color:#000000; font-weight:bold;">?&gt;</span><br />
&nbsp;&lt;div&gt;<br />
&nbsp;&lt;li&gt;&lt;a href=<span style="color:#FF0000;">"&lt;?php the_permalink(); ?&gt;"</span>&gt;&lt;?php the_title<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;&lt;/div&gt;<br />
&nbsp;<span style="color:#000000; font-weight:bold;">&lt;?php</span> endforeach; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</div>
</div>
<p></p>
<p style="text-align: justify;">El único cambio en este código es: <strong>category=-142</strong>, que significa que se mostrarán todas las entradas, menos las de la categoría Asides, osea la que tiene la <strong>ID 142</strong>. Recuerda que en tu blog la ID será distinta.</p>
<p style="text-align: justify;">Deben pegarlo en el lugar que más les convenga, que normalmente sería en la sidebar.</p>
<p style="text-align: justify;">Pueden ver en funcionamiento este script en mi sidebar, en "Posts Aleatorios".</p>
<p style="text-align: justify;">Espero les sirva <img src='http://www.blooging.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/posts-aleatorios-en-wordpress.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Chatino: un chat de solo 7 kb</title>
		<link>http://www.blooging.net/chatino-un-chat-de-solo-7-kb.html</link>
		<comments>http://www.blooging.net/chatino-un-chat-de-solo-7-kb.html#comments</comments>
		<pubDate>Wed, 11 Mar 2009 17:02:51 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Chat]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1027</guid>
		<description><![CDATA[A través de ANieto2K me entero que han creado un chat de tan sólo 7 kb de peso. Este chat, llamado "Chatino", utiliza AJAX y Pseudo Comet. Esta aplicación fue creada por Diseño Centell.
]]></description>
			<content:encoded><![CDATA[<p>A través de <a title="Chatino: chat de solo 7 kb de peso con pseudo comet" href="http://www.anieto2k.com/2009/03/11/chatino-chat-de-tan-solo-7kb-con-pseudo-comet/"><strong>ANieto2K</strong></a> me entero que han creado un chat de<a title="Chatino: AJAX con Pseudo Comet" href="http://www.disegnocentell.com.ar/notas2.php?id=240"> tan sólo 7 kb de peso</a>. Este chat, llamado "<a title="Chatino: AJAX sin polling" href="http://www.disegnocentell.com.ar/notas2.php?id=240"><strong>Chatino</strong></a>", utiliza <strong>AJAX</strong> y <strong>Pseudo Comet</strong>. Esta aplicación fue creada por <a title="Diseño Centell php diseño" href="http://www.disegnocentell.com.ar">Diseño Centell</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/chatino-un-chat-de-solo-7-kb.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Contenido especial para visitantes de los Buscadores</title>
		<link>http://www.blooging.net/contenido-especial-para-visitantes-de-buscadores.html</link>
		<comments>http://www.blooging.net/contenido-especial-para-visitantes-de-buscadores.html#comments</comments>
		<pubDate>Sat, 07 Mar 2009 21:14:04 +0000</pubDate>
		<dc:creator>JuanK</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.blooging.net/?p=1016</guid>
		<description><![CDATA[
Este es un simple código en PHP que nos permite mostrar contenido especial a aquellos usuarios que llegan a través de los buscadores.
El código es muy sencillo y nos permite incluso insertar publicidad, aunque tu puedes ut¡lizarlo para lo que quieras.
El código es el siguiente:
PLAIN TEXT


&#60;?php if &#40;preg_match&#40;'/q=&#124;search/', $_SERVER&#91;'HTTP_REFERER'&#93;&#41; &#41; &#123; ?&#62;
Aquí va tu publicidad [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1018 aligncenter" title="Usuarios de Buscadores" src="http://www.blooging.net/wp-content/uploads/2009/03/buscadores.jpg" alt="Usuarios de Buscadores" width="372" height="415" /></p>
<p style="text-align: justify;">Este es un simple <strong>código en PHP</strong> que nos permite mostrar contenido especial a aquellos usuarios que llegan a través de los buscadores.</p>
<p style="text-align: justify;">El código es muy sencillo y nos permite incluso insertar publicidad, aunque tu puedes ut¡lizarlo para lo que quieras.</p>
<p style="text-align: justify;">El código es el siguiente:</p>
<div class="igBar"><span id="lphp-24"><a href="#" onclick="javascript:showPlainTxt('php-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="php-24">
<div class="php"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color:#000066;">preg_match</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'/q=|search/'</span>, <span style="color:#0000FF;">$_SERVER</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'HTTP_REFERER'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span><br />
Aquí va tu publicidad o cualquier contenido que quieras agregar.<br />
<span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</div>
</div>
<p></p>
<p style="text-align: justify;">Debes agregarlo en el lugar que estimes conveniente de tu blog o web y listo.</p>
<p style="text-align: justify;"><strong>Nota:</strong> este pequeño código fue probado por mí y funciona a la perfección <strong>:B</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blooging.net/contenido-especial-para-visitantes-de-buscadores.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
